Re: FAQ followup: changes in open fd/proc in 2.4.x?

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Fri Nov 17 2000 - 11:13:33 EST


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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:13 EST