Re: Opening 5000 file descriptors in linux??

Arie Rudich (arie@chessdev.com)
Mon, 13 Sep 1999 18:38:44 +0200


"Christopher E. Brown" wrote:

> The default limit is 1024 fh. ulimit -n will reset this. *note*,
> a normal user CANNOT increase their own fh limit.
>
> After
>
> echo 32768 > /proc/sys/fs/file-max # increase default system wide from
4096
> echo 131072 > /proc/sys/fs/inode-max # boost system wide inodes too
>
> ulimit -n 32768 #change roots fh limit
>
> I get 32285 opened...
>
> Whatever script calls your program should increase the default fh
limit
> before it starts the program as a normal user.
>
This works great.

Is there any way to set the 'ulimit' in advance once for the system
(like the 'echo's that can be put in the rc.local ) so that no 'root
script' is needed?

Thanks,

Arie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/