Re: Linux 2.0.x kernel tuning questions (some answers)

Oskar Pearson (oskar@is.co.za)
Fri, 5 Dec 1997 15:48:00 +0200


Hi

> I am not sure how many people have run into limitations of the 2.0.x
> kernel (based on defaults in the distribution) but I know I have.
yep

> Thus (not being a kernel hacker by a long shot) I set down with a
> friend of mine Ed to figure out how to answer the following 3 questions:

> Q. How to increase the maximum number of processes available for a user?
no idea

> Q. How to increase a maximum number of file descriptors available to a
> process?
http://www.linux.org.za/filehandle.patch.linux is a patch that
increases up to 3000 fd's per process - with kmalloc...

> Q. How to increate the system wide maximum number of file descriptors?
To do this you just need to make a change to your startup scripts...

put this in your rc.local (for example)
echo 32768 > /proc/sys/kernel/inode-max
echo 8192 > /proc/sys/kernel/file-max

Keep the numbers in the same ratio...