[Unbound-users] FreeBSD + Unbound 1.0.2 error: too many file descriptors requested

Anton Yuzhaninov citrin at citrin.ru
Mon Aug 11 22:26:50 UTC 2008

On 12.08.2008 00:07, Dmitriy Demidov wrote:
> Hi Wouter. Thanks for you answer!
> On Monday 11 August 2008, you wrote:
>> Hi Dmitriy,
>> Unbound 1.0.2 calculates the maximum number of open files.  And checks
>> if that is going to work. So that it does not start OK, but later on,
>> when it is busy, fails.  This error is because the select system call
>> has a hardcoded limit of 1024 (limited by the system).
> Sorry. Can you please explain it more detailed - "hardcoded limit of 1024" - 
> is it FreeBSD limit or Unbound limit? Unbound 1.0.2 now checks for that, but 
> earlier versions didn't performed that checks?

limit on number of descriptors for select is FD_SETSIZE

/usr/include/sys/select.h:#define       FD_SETSIZE      1024U

If you need more than 1024 descriptors better to build Unbound with libevent.

Other option is use one thread - for not heavy loaded server it will be enough.

  Anton Yuzhaninov

More information about the Unbound-users mailing list