[S] Change in ...nfs-ganesha[next]: threads: set appropriate thread stack size for fridge and ntirpc workers
Kaleb KEITHLEY has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1168839?usp=email ) Change subject: threads: set appropriate thread stack size for fridge and ntirpc workers ...................................................................... threads: set appropriate thread stack size for fridge and ntirpc workers See https://github.com/nfs-ganesha/ntirpc/pull/280 glibc's default thread stack size is 8M. N.B. This can be overridden across the whole process by setting the stack size with ulimit; by default threads will inherit the same size for their thread stack. Empirical testing shows that ganesha works fine with a thread stack size as small as 16K (the glibc minimum). For a margin of safety this will set the size to 32K. The same testing shows that ganesha works fine with ntirpc worker thread stack size of 32K. For a similar safety margin this will set the ntirpc worker thread stack size to 64K. Change-Id: Id6c7c4332f06ff6811f75c24c97f60481fb7c4ac Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> --- M src/MainNFSD/nfs_init.c M src/MainNFSD/nfs_rpc_dispatcher_thread.c M src/include/common_utils.h M src/support/delayed_exec.c M src/support/fridgethr.c M src/tools/multilock/ml_cephfs_client.c M src/tools/multilock/ml_glusterfs_client.c M src/tools/multilock/ml_posix_client.c 8 files changed, 36 insertions(+), 11 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/39/1168839/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1168839?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: Id6c7c4332f06ff6811f75c24c97f60481fb7c4ac Gerrit-Change-Number: 1168839 Gerrit-PatchSet: 1 Gerrit-Owner: Kaleb KEITHLEY <kaleb@redhat.com> Gerrit-MessageType: newchange
participants (1)
-
Kaleb KEITHLEY (GerritHub)