At 12:09 PM -0500 2/8/99, Nelson Minar wrote:
>A bit more info on thread limits.. Linux 2.0 defines NR_TASKS in
>/usr/src/linux/include/linux/tasks.h. The default is 512, but then
>there's MAX_TASKS_PER_USER which is defined as NR_TASKS/2. So if I
>understand right, that means that a Java process using native threads
>is limited to 256 threads in the default kernel. It's possible that
>boosting NR_TASKS up and recompiling the kernel will Just Work, but I
>don't know. I also don't know the implications on kernel memory used
>or scheduler performance.
In Linux 2.2.1, NR_TASKS is 512 and the comment said "On x86 Max 4092,
or 4090 w/APM configured." So i suppose up to 4092 tasks, assume you have
enough memory, is just a recompile away.
Cheers,
Paul