Whamcloud - gitweb
LU-14676 lnet: improve hash distribution across CPTs
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Thu, 20 Jan 2022 16:40:28 +0000 (08:40 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 31 Mar 2022 04:20:10 +0000 (04:20 +0000)
commit62345611b2dd8e018a8cfa896f8c12fb45a5e6b2
tree55530e7370c58a1a78b43112ee5989d3ce86e03e
parentf311ce214a55d1899f612c4ef87a126ddef467b3
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.

Lustre-change: https://review.whamcloud.com/46233
Lustre-commit: 9b6e27755507b9bb47a1d7b4aede6302a876a14d

Test-parameters: trivial testlist=sanity-lnet

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