Re: NR_TASKS=4096

Andrew E. Mileski (
Tue, 22 Apr 1997 10:29:04 -0400 (EDT)

> Should I run into problems with NR_TASKS above 1024? I got a locked
> system at 4096, it locks right after decompressing the kernel before it
> does anything else. This is a ppro and 2.0.30. It's running fine now at
> 1024 now, but it needs far more (lots of light weight 80k processes).

The maximum is determined by the GDT, which can only hold 8192 descriptors,
and you need 1 descriptors per task. The first is the CPU null descriptor,
and the next 7 are reserved by the kernel. If APM is enabled, that takes
the last 3 descriptors. So the maximum for NR_TASKS is 4092/4090 with/without

Andrew E. Mileski
Linux Plug-and-Play Hardware Support
XFree86 Matrox Team