Re: Opening 5000 file descriptors in linux??

Gerold Jury (gjury@grips.com)
Tue, 30 Mar 1999 16:00:55 +0200


Mike Shaver wrote:

> 2.2.x with the large-fdset patches can handle > 10^5 descriptors, last I
> heard from our server guys.
>
> Mike
>

Unfortunately there seems to be another problem somewhere else.
Maby its a limitation of libc/glibc.

I wrote an application that tries to open as many sockets as possible
to simulate a big amount of clients to a server.

The first version used select/poll to check for data on the sockets, but i
found, that the overhead of setting up these syscalls was to large.

The next version used threads for each socket with was another type of
big load for the machine. (i had to increase NR_TASKS in linux/include/linux/tasks.h)

At last i used a combination of the two, so each thread works with about 20
socket descriptors, and this works amazingly well. (thanks to all you linux hackers).

The only problem i have now is, i cannot open more than aproximately 1000 sockets
even with the Alan Series. (and fiddling with echo xxx > /proc/...)

maby i have to recompile the glibc

Gerold

:.˛mkabzwmb˛mbz_^nrzh&zvy杶ii