Whamcloud - gitweb
LU-56 lnet: tuning wildcard portals rotor
authorLiang Zhen <liang@whamcloud.com>
Wed, 27 Jun 2012 01:49:48 +0000 (09:49 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Jun 2012 22:18:15 +0000 (18:18 -0400)
commit913c8e22cfc4fc5f52c4f0d6d3f0b4b86a7ac58c
tree0e25387f49937a8cd025ded24fd0f22d6463a78e
parent52c95d51f1906d4d838dec3419e39457a8e17824
LU-56 lnet: tuning wildcard portals rotor

By default, PUT messages arrived on wildcard Portals always prefer
to match buffers on current CPT, this patch added a few more
options for dispatching message match which's called portals rotor:

- OFF: Turn off message rotor
- ON: round-robin dispatch all PUT messages to different CPTS
- RR_RT: round-robin dispatch routed PUT message to different CPTs
- HASH_RT: dispatch routed PUT message to CPTs by hashing source NID

User can change portals rotor by /proc interface at runtime.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: Ie2f03255d9b00b005ca5365315fff350d45a6933
Reviewed-on: http://review.whamcloud.com/3193
Reviewed-by: Doug Oucharek <doug@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/lib-ptl.c
lnet/lnet/router_proc.c