> > Maybe it would be good to lower the default threads-max to > about 10% or less of physical memory ? > And MIN_THREADS_FOR_ROOT should be reintroduced: the define is still there, but the actual code is missing. I've attached an older patch that: * reintroduces MIN_THREADS_FOR_ROOT (or remove the define) * adds lower and upper bounds for /proc/sys/kernel/threads-max. * bugfixes for get_pid(). This is the longest part of the patch, but it's only necessary if you have more than 10.000 threads running. If you have enough memory: launch a forkbomb. If ~ 32760 thread are running the kernel enters an endless loop in get_pid() (or around 11000 threads if they intentionally create additional sessions and process groups) I tested the patch with 2.4.0-test12, but not with newer kernels. -- Manfred