Whamcloud - gitweb
LU-14676 lnet: improve hash distribution across CPTs 33/46233/6
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Thu, 20 Jan 2022 16:40:28 +0000 (08:40 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Jan 2022 01:35:28 +0000 (01:35 +0000)
commit9b6e27755507b9bb47a1d7b4aede6302a876a14d
tree30d93f353cee7bea253dae7f0c7af19c20f87573
parentc12378fba7f0aa2f25de2b295ee110e2932f2a39
LU-14676 lnet: improve hash distribution across CPTs

Change the nid-to-cpt allocation function to use
(sum-by-multiplication of nid bytes) mod (number of CPTs)
to match nid to a CPT. This patch only addresses IPV4 nids.

Make the matching change for the nid-to-cpt function
used by the 'lnetctl cpt-of-nid' utility.

Test-parameters: trivial testlist=sanity-lnet

Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I1052414947c4cae8c63993ffa21f67cb389bb463
Reviewed-on: https://review.whamcloud.com/46233
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c