Messages in this thread | | | From | "Stephen C. Tweedie" <> | Date | Thu, 1 Apr 1999 01:28:40 +0100 (BST) | Subject | Re: Opening 5000 file descriptors in linux?? |
| |
Hi,
On Tue, 30 Mar 1999 16:00:55 +0200, Gerold Jury <gjury@grips.com> said:
> 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/...)
Two things: first of all, the default rlimit for open files is still 1024, so you need to raise that to use more in one process. From bash, that's
ulimit -Hn 100000; ulimit -n 100000
or use the setrlimit() kernel call.
Secondly, the default FD_SET type only has space for 1024 fds in the bitmap, so either make sure you are using poll, or define your own, sufficiently large, FD_SET if you need to use select.
Other than that, all should work.
--Stephen
- 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/
| |