]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: better way to assign connections to specific lane
authorVu Pham <vu@mellanox.com>
Wed, 15 Apr 2015 23:33:38 +0000 (16:33 -0700)
committerVu Pham <vu@mellanox.com>
Thu, 21 May 2015 13:59:36 +0000 (06:59 -0700)
Better way to assign connections to a specific lane of a portal
Avoiding lane competition/hogging.
This change resolves the slow ramping up and spiky behaviors during
clients starting/running I/Os.

Signed-off-by: Vu Pham <vu@mellanox.com>
src/msg/xio/XioPortal.h

index 9d98548038c2d991b75247b345ee1c0f008250fa..090f451dfa81c8f44b0b671e25cf55d00d7edbda 100644 (file)
@@ -67,7 +67,7 @@ private:
 
     inline Lane* get_lane(XioConnection *xcon)
       {
-       return &qlane[((uint64_t) xcon) % nlanes];
+       return &qlane[(((uint64_t) xcon) / 16) % nlanes];
       }
 
     void enq(XioConnection *xcon, XioSubmit* xs)