Threaded bind on CentOS

Jack Tavares j.tavares at F5.com
Thu Feb 24 20:13:23 UTC 2011



> -----Original Message-----
> From: bind-users-bounces+j.tavares=f5.com at lists.isc.org [mailto:bind-
> users-bounces+j.tavares=f5.com at lists.isc.org] On Behalf Of Eivind Olsen
> Sent: Thursday, February 24, 2011 11:46 AM
> To: bind-users at lists.isc.org
> Subject: Re: Threaded bind on CentOS
> 
> > I am using bind 9.7.3 and I have tried running it with
> > various -n values and it appears that I will always get
> > n+3 threads.
> 
> I haven't tried this myself on CentOS, but.. How do you verify the
> amount
> of threads? Checking with ps / top? What does BIND log when it starts
> up?
> Normally it should log how many threads it's using.
> 
> Regards
> Eivind Olsen
> 

I verified is by using the "H" flag to ps like so:

without the "H" flag
ps ax|grep named
27716 pts/0    Sl     0:00 named -f -g -n 1
27729 pts/0    S+     0:00 grep named

with the "H" flag
ps axH|grep named
27716 pts/0    Sl     0:00 named -f -g -n 1
27716 pts/0    Sl     0:00 named -f -g -n 1
27716 pts/0    Sl     0:00 named -f -g -n 1
27716 pts/0    Sl     0:00 named -f -g -n 1
27737 pts/0    S+     0:00 grep named

And named logs how many _worker_ threads it is starting, which always
matches the "-n N" input


24-Feb-2011 11:44:33.669 found 2 CPUs, using 1 worker thread
24-Feb-2011 11:44:33.669 using up to 4096 sockets






More information about the bind-users mailing list