Re: Opening 5000 file descriptors in linux??

Gerold Jury (gjury@grips.com)
Wed, 31 Mar 1999 18:19:25 +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.
>

Thank you very very much.

i did not know that ulimit is in effect without turning something on.

Now i can open as much sockets as i want.

Gerold

-
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/