Dan Kegel wrote:

The -Xss100k helps because each thread stack immediately occupies
its full range of address space (discontiguous stacks not being supported).
If the OS defaults to a limit of 1GB address space for user processes,
at 100KB per stack, that's a hard limit of 10,000 threads.
I never got anywhere near 1gb of memory usage.
Thus to get over 8190 threads, you'll probably need to both
raise threads-max and rebuild your kernel to allow 2GB or 3GB
of address space for user processes.

(See also http://www.kegel.com/c10k.html )
That points to http://www.volano.com/linux.html which doesn't exist anymore. The wayback machine has a verion from Oct 31 2001 that doesn't say how to recompile the kernel to increase the limit. It does point me to /etc/security/limits.conf, but I don't have anything set there.



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to