[Unbound-users] error when threading enabled on local_unbound on FreeBSD 10.x

lst_hoe02 at kwsoft.de lst_hoe02 at kwsoft.de
Mon Jul 20 07:06:36 UTC 2015

Zitat von unbound at fongaboo.com:

> I was setting up local_unbound (the built-in instance of unbound in  
> FreeBSD 10.x). However, I had a conf file that I had a much more  
> customized from a previous install of the stock unbound I had on  
> earlier box.
> When I tried to transplant the more elaborate conf and have  
> local_unbound run it, I got the following errors:
>> [1437336832] unbound[69115:0] warning: too many file descriptors  
>> requested. The builtin mini-event cannot handle more than 1024.  
>> Config for less fds or compile with libevent
>> [1437336832] unbound[69115:0] warning: continuing with less udp ports: 211
>> [1437336832] unbound[69115:0] debug: switching log to syslog
> I bit-by-bit added on section at a time to unbound.conf until I  
> found the offender was this entry:
>   # number of threads to create. 1 disables threading. This should  
> equal the number
>   # of CPU cores in the machine. Our example machine has 4 CPU cores.
>   num-threads: 4
> Why would threading cause these errors? What is the default setting  
> when the entry is commented out?

To my knowledge the number of threads is 1 by default. For the  
relation of file descriptors with threads and other settings have a  
look here: http://www.unbound.net/documentation/howto_optimise.html



More information about the Unbound-users mailing list