lkml.org 
[lkml]   [1998]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: max file descriptors
Date
> > 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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.042 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site