On 17 Nov 2000, Doug Alcorn wrote:

> I am working on a project to port a commercial app to Linux.  Our app
> is essentially a dataserver with approximately two files per database
> table.  I did a search of this mailing lists archive on the subject
> and found a discussion back in the 2.0.x days when the limit was 256.
> Basically the discussion went like this:
> 

The default is now 1024 fds (try it):

main()
{
    int fd;
    for(;;)
    {
        fd = open("/dev/null", 0);
        printf("%d\n", fd);
        if(fd < 0) exit(0);

    }
}

Something in /proc/sys/fs is supposed to increase it even more, but
I don't know how.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.0 on an i686 machine (799.54 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to