2001-11-06 18:25:36

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: __FD_SETSIZE question

Hi

I heard the __FD_SETSIZE setting limits the number of open files to a
process... Is this the fact? What happens if I double it?

Thanks

roy
--
from /usr/src/linux/include/linux/posix_types.h

#define __FD_SETSIZE 1024
--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.



2001-11-06 18:38:08

by Alan

[permalink] [raw]
Subject: Re: __FD_SETSIZE question

> I heard the __FD_SETSIZE setting limits the number of open files to a
> process... Is this the fact? What happens if I double it?

It did long ago. Nowdays its limited by proc tunable variables - you do
however want to use poll() not select()

2001-11-06 18:39:38

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: __FD_SETSIZE question

> It did long ago. Nowdays its limited by proc tunable variables - you do
> however want to use poll() not select()

ok... thanks. That someone mentioned in a discussion about Tux - may I
guess he was mistaken?

roy
--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.

2001-11-06 19:05:19

by Richard B. Johnson

[permalink] [raw]
Subject: Re: __FD_SETSIZE question

On Tue, 6 Nov 2001, Roy Sigurd Karlsbakk wrote:

> Hi
>
> I heard the __FD_SETSIZE setting limits the number of open files to a
> process... Is this the fact? What happens if I double it?
>
> Thanks
>
> roy

This just limits the number of fds you can use with select().
Use poll() instead.



Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.