On Thu, 4 Jan 2001, Joseph Shraibman wrote:
> >From README.linux to the 1.2.2 distrib:
> * If you get OutOfMemory errors when you try create more than xxx
> threads you'll have to increase the number of tasks supported by
> kernel (the default is 256 per user). Change NR_TASKS in
> /usr/src/linux/include/linux/tasks.h and recompile the kernel, or
> upgrade to a 2.4 kernel.
>
>
> So can I assume a 2.4 kernel has no limits on threads?
2.4 allows you to set the maximum number of threads/processes via the /proc
file /proc/sys/kernel/threads-max. From poking around in the kernel source,
the default limit is such that the maximum amount of memory consumed by all
of the in-kernel thread structures would be half of physical memory (not
virtual). As an example, on my 192M x86 machine that translates into a
default maximum of 12288 threads (12288 * 8K/thread = 96M).
Scott
--
=============================================================================
Scott Murray email: [EMAIL PROTECTED]
http://www.interlog.com/~scottm ICQ: 10602428
-----------------------------------------------------------------------------
"Good, bad ... I'm the guy with the gun." - Ash, "Army of Darkness"
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]