lkml.org 
[lkml]   [2000]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: FAQ followup: changes in open fd/proc in 2.4.x?
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/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.061 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site