Whamcloud - gitweb
LU-14391 lnet: optimize the Netlink packet size for routes 44/54844/12
authorJames Simmons <jsimmons@infradead.org>
Fri, 26 Apr 2024 17:15:02 +0000 (13:15 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:39:49 +0000 (18:39 +0000)
commitd26f2a53b66efdb0dfe374da5e25a99489b55add
treebbf78f8f714c833c5a64d7f156762da9166c209c
parente35bafc3089776629de75f506ef0f73f90d92b53
LU-14391 lnet: optimize the Netlink packet size for routes

Currently Netlink by default sets its maximum packet size
to send back to user land to 64K. Some sites setup many
routes, above ~430, which exceed this limit. We can avoid
this limitation by calculate about the actually size of
the netlink packet and setting cb->min_dump_alloc. The
new max is then 4GB which should be plenty (27K of routes)

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: Ica01f0cf290992a5d27b8ac2d09508d0a6e8151a
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54844
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lustre/tests/sanity-lnet.sh