Re: Kernel: File Table Overflow

Perry Harrington (pedward@sun4.apsoft.com)
Mon, 2 Feb 1998 13:42:35 -0800 (PST)


Please ignore, I found what I needed. For those who are interested:

include/linux/fs.h
Changed NR_OPEN to 1024 from 256 (open number of files per process)
Changed NR_INODE to 16386 from 3072 (number of total inodes)
Changed NR_FILE to 4096 from 1024 (number of total file descriptors)

include/linux/limits.h
Changed NR_OPEN to 1024 from 256 (open number of files per process)
Changed NR_FILE to 1024 from 256 (number of file descriptors per process)

include/linux/tasks.h
Changed NR_TASKS to 2048 from 512 (max number of tasks)
Changed MIN_TASKS_LEFT_FOR_ROOT to 20 from 4 (enuff tasks to let root in, in a bad situation)

--Perry

>
> We have a *busy* mail server (PPro 200/128MB) running the 2.0.30 Kernel
> and are getting "File Table Overflow" periodically. I figure that we
> need to up the maximum file descriptors, so I grepped the source tree
> and did not find any defines like that (except UNIX_MAX_FD in net/).
> I wanted to tweak this for the 2.0.33 Kernel before putting it into
> production. What is the define for the maximum number of File descriptors,
> and where can I find more kernel tunables?
>
> Thanks,
> Perry
>
> --
> Perry Harrington Linux rules all OSes. APSoft ()
> email: perry@apsoft.com Think Blue. /\
>

-- 
Perry Harrington       Linux rules all OSes.    APSoft      ()
email: perry@apsoft.com 			Think Blue. /\