aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zgenhostid/Makefile.am
diff options
context:
space:
mode:
authorAlan Somers <[email protected]>2021-01-21 13:55:54 -0700
committerGitHub <[email protected]>2021-01-21 12:55:54 -0800
commit2d8f72d76c8b928c51d38d50a3f4f75144db3f85 (patch)
treede54d568d62a965e347b22772c24ef59a06b2db9 /cmd/zgenhostid/Makefile.am
parente50b5217e7a85f1466edf88d5f3ea5aed0c2fd22 (diff)
zpool: speed up importing large pools (#11469)
The ZFS_IOC_POOL_TRYIMPORT ioctl returns an nvlist from the kernel to a preallocated buffer in userland. Userland must guess how large the buffer should be. If it undersizes it, it must reallocate and try again. That can cost a lot of time for large pools. OpenZFS commit 28b40c8a6e3 set the guess at "zc.zc_nvlist_conf_size * 4" without explanation. On my system, that is too small. From experiment, x 32 is a better multiplier. But I don't know how to calculate it theoretically. Sponsored by: Axcient Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alek Pinchuk <[email protected]> Signed-off-by: Alan Somers <[email protected]> Closes #11469
Diffstat (limited to 'cmd/zgenhostid/Makefile.am')
0 files changed, 0 insertions, 0 deletions