9.5.0-P2 and socket: too many open file descriptors

David Sparks dave at ca.sophos.com
Thu Aug 14 18:05:26 UTC 2008


JINMEI Tatuya / 神明達哉 wrote:
> At Wed, 13 Aug 2008 17:06:36 -0700,
> "David Sparks" <dave at ca.sophos.com> wrote:
> 
>>> Also, don't forget the world is not just Linux.  Solaris requires a
>>> compile time change to FD_SETSIZE, so it's very difficult to increase
>>> the limitation 100% run-time.
>> Why not add a configure script to determine/configure maximum values for select()?
> 
> It's not that easy.  Sometimes the run-time maximum value depends on
> the user credential (i.e., whether the process is run by the super
> user), while the user who builds bind may (often) not have the
> privilege.

You could add a cmdline option to configure to override the "calculated" 
value.  ie:

./configure --max-fd=256

My main concern is that right now it is highly unlikely that distro binaries 
will contain the increased FD_SETSIZE forcing anyone running into this problem 
to compile a custom named.  While compiling a new binary is not a problem for 
me I cannot get a junior admin to upgrade named, which is a problem.

Thanks for your comments and help, I really appreciate it.  And I'd like to 
give a big "Thank You" to all the people who worked on BIND over the years.

Cheers,

ds


More information about the bind-users mailing list