aboutsummaryrefslogtreecommitdiffstats
path: root/man7/pthreads.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2006-09-12 06:38:38 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2006-09-12 06:38:38 +0000
commit5e8b726f68ce8f5cef42ba6102e56ec8fb9a894b (patch)
treec56a431d569b0ab9c9901bfaa594c0f9a1dc2757 /man7/pthreads.7
parent7fc594a121246b9d19c8034513d90108150ce046 (diff)
downloadman-pages-5e8b726f68ce8f5cef42ba6102e56ec8fb9a894b.tar.gz
Noted effect of RLIMIT_STACK resource limit for NPTL.
Diffstat (limited to 'man7/pthreads.7')
-rw-r--r--man7/pthreads.716
1 files changed, 16 insertions, 0 deletions
diff --git a/man7/pthreads.7 b/man7/pthreads.7
index f2d2e72284..02ad57a508 100644
--- a/man7/pthreads.7
+++ b/man7/pthreads.7
@@ -273,6 +273,22 @@ However, a new thread's alternate signal stack settings
are copied from the thread that created it, so that
the threads initially share an alternate signal stack
(fixed in kernel 2.6.16).
+.PP
+Note the following further points about the NPTL implementation:
+.IP \- 3
+If the stack size soft resource limit (see the description of
+.B RLIMIT_STACK
+in
+.BR setrlimit (2))
+is set to a value other than
+.IR unlimited ,
+then this value defines the default stack size for new threads.
+To be effective, this limit must be set before the program
+is executed, perhaps using the
+.I ulimit -s
+shell built-in command
+.RI ( "limit stacksize"
+in the C shell).
.SS "Determining the Threading Implementation"
Since glibc 2.3.2, the
.BR getconf (1)