summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-28 15:48:58 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-28 16:41:58 +0200
commitdd45734e322a03287d34d8af9b7da7b35cfddb8e (patch)
tree368647bd8c34ea5d1ea1f3cfa74ef52fb3271e67 /manual
parentfef400a2f976d1fd6a4639e6980f6c50ee13fbf5 (diff)
downloadglibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.tar.gz
glibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.tar.xz
glibc-dd45734e322a03287d34d8af9b7da7b35cfddb8e.zip
nptl: Add glibc.pthread.stack_cache_size tunable
The valgrind/helgrind test suite needs a way to make stack dealloction
more prompt, and this feature seems to be generally useful.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'manual')
-rw-r--r--manual/tunables.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/manual/tunables.texi b/manual/tunables.texi
index fe7c1313cc..d5d957fb5b 100644
--- a/manual/tunables.texi
+++ b/manual/tunables.texi
@@ -402,6 +402,15 @@ is acquired.
 The default value of this tunable is @samp{100}.
 @end deftp
 
+@deftp Tunable glibc.pthread.stack_cache_size
+This tunable configures the maximum size of the stack cache.  Once the
+stack cache exceeds this size, unused thread stacks are returned to
+the kernel, to bring the cache size below this limit.
+
+The value is measured in bytes.  The default is @samp{41943040}
+(fourty mibibytes).
+@end deftp
+
 @node Hardware Capability Tunables
 @section Hardware Capability Tunables
 @cindex hardware capability tunables