A teammate had tried this: STD_CDEFINES="-DISC_SOCKET_FDSETSIZE=2048" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/opt/bind LDFLAGS="-Wl,-z,defs" --enable-threads --enable-largefile Perhaps hack for your environment and let us know what happens. Thanks.
----- Original Message ---- From: David Sparks <[EMAIL PROTECTED]> To: Bindlist <[email protected]> Sent: Wednesday, August 13, 2008 5:13:40 PM Subject: Re: 9.5.0-P2 and socket: too many open file descriptors > Apparently 16384 fd isn't sufficient? I restarted named and: > I doubt it ran out of fds ... either I compiled it wrong or there is > something > else going on. To answer my own question I recompiled named with some diagnostics and find out that 1024 is still the FD limit: 13-Aug-2008 14:07:03.480 general: error: too many open file descriptors: 1024 I followed the example and ran configure like this: STD_CDEFINES='-DFD_SETSIZE=8192' ./configure and found this in the log: config.log:STD_CDEFINES='-DFD_SETSIZE=8192' What am I doing wrong? Thanks, ds diff -ur bind-9.5.0-P2/lib/isc/unix/socket.c bind-9.5.0-P2.new/lib/isc/unix/socket.c --- bind-9.5.0-P2/lib/isc/unix/socket.c 2008-07-28 21:47:09.000000000 -0700 +++ bind-9.5.0-P2.new/lib/isc/unix/socket.c 2008-08-13 12:44:09.805793341 -0700 @@ -1559,7 +1559,7 @@ ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR, isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_TOOMANYFDS, - "%s: too many open file descriptors", "socket"); + "too many open file descriptors: %d", sock->fd); free_socket(&sock); return (ISC_R_NORESOURCES); } @@ -2131,7 +2131,7 @@ ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR, isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_TOOMANYFDS, - "%s: too many open file descriptors", + "too many open file descriptors: %d", sock->fd, err); goto soft_error; @@ -2190,7 +2190,7 @@ ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR, isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_TOOMANYFDS, - "%s: too many open file descriptors", + "too many open file descriptors: %d", sock->fd, "accept"); (void)close(fd); goto soft_error;
