socket: too many open file descriptors

JINMEI Tatuya / 神明達哉 Jinmei_Tatuya at isc.org
Thu Nov 20 19:09:45 UTC 2008


At Thu, 20 Nov 2008 04:30:00 -0800 (PST),
pollex <andres.vidoz at gmail.com> wrote:

> > "9.3.4-P1.1" still seems to be a Debian specific version, but if this
> > is featurewise equivalent to 9.3.5-P1, you should at least upgrade to
> > 9.3.5-P2 (and build it with a large value of ISC_SOCKET_MAXSOCKETS).
> > In fact, I'd rather more strongly recommend 9.3.6.

First off, there was a typo in my previous response:
ISC_SOCKET_MAXSOCKETS should have been ISC_SOCKET_FDSETSIZE.

> how is the exact command line to compile with 4096 FDs?
> ./configure --ISC_SOCKET_MAXSOCKETS='4096'?

Replacing the macro name with the correct one, and assuming you're
using a bsh variant such as zsh and bash:

% STD_CDEFINES='-DISC_SOCKET_FDSETSIZE=4096' ./configure

But again, I'd rather strongly recommend 9.3.6.  Then you won't have
to care about ISC_SOCKET_MAXSOCKETS or any other annoying details
about FD consumption in the first place.  There should be no reason
for someone considering an upgrade to 9.3.5-P2 not to rather use
9.3.6.

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.



More information about the bind-users mailing list