Re: max file descriptors
aem@netcom.ca
Thu, 8 Jan 1998 02:16:03 -0500 (EST)
> > And what about linux/include/linux/tasks.h:
> > #define NR_TASKS 512
> > #define NR_TASKS_PER_USER (NR_TASKS/2)
>
> Looks like that was the problem.. I increased NR_TASKS to 4096 and it
> solved the problem..
The max value for NR_TASKS is about 4092, as a task uses two
descriptors (TSS and LDT), and the kernel reserves 8, and APM
uses 3 if enabled. This also uses 64k for the GDT.
This only applies to x86 though.
--
Andrew E. Mileski mailto:aem@netcom.ca