threads problem with 9.3.2

Mark de Vries mark at asphyx.net
Mon Feb 27 09:53:29 UTC 2006


On Mon, 27 Feb 2006, Aleksandr Ivanov wrote:

> I have server with 2xXeon CPU's.
>
> $ uname -a
> Linux dns1-2 2.6.15-1-686-smp #2 SMP Thu Feb 23 05:47:57 CET 2006 i686 GNU/Linux
>
> "cat /proc/cpuinfo" show me 4 processors
>
> BIND 9.3.2 compiled with --enable-threads --prefix=/usr --enable-ipv6 --sysconfdir=/etc/bind
>
> When I run BIND, I see in log:
> Feb 27 10:54:37 dns1-2 named[20041]: starting BIND 9.3.2 -u bind -c /named/etc/named.conf
> Feb 27 10:54:37 dns1-2 named[20041]: found 4 CPUs, using 4 worker threads
> Feb 27 10:54:37 dns1-2 named[20041]: loading configuration from '/named/etc/named.conf'
> Feb 27 10:54:37 dns1-2 named[20041]: listening on IPv6 interfaces, port 53
> Feb 27 10:54:37 dns1-2 named[20041]: listening on IPv4 interface lo, 127.0.0.1#53
> Feb 27 10:54:37 dns1-2 named[20041]: listening on IPv4 interface eth0, xxx.xxx.xxx.xxx#53
> Feb 27 10:54:37 dns1-2 named[20041]: listening on IPv4 interface eth1, xxx.xxx.xxx.xxx#53
>
> BUT with "ps -aux" I see ONLY 1 thread:
> bind     20041 23.5  4.7 102184 49600 ?      Ssl  10:54   2:48 /usr/sbin/named -u bind -c /named/etc/named.conf
>

No, you see 1 _process_. Which may, or may not, have multiple threads.
"man ps" and scroll down to the 'THREAD DISPLAY" section....

# ps ax
 9353 ?        Ss   25462:16 /usr/sbin/named -u bind

# ps ax -L
 9353  9353 ?        Ss     0:00 /usr/sbin/named -u bind
 9353  9354 ?        Ss   5944:29 /usr/sbin/named -u bind
 9353  9355 ?        Ss   5962:13 /usr/sbin/named -u bind
 9353  9356 ?        Ss   5958:40 /usr/sbin/named -u bind
 9353  9357 ?        Ss   5949:14 /usr/sbin/named -u bind
 9353  9358 ?        Ss     0:20 /usr/sbin/named -u bind
 9353  9359 ?        Ss   1646:58 /usr/sbin/named -u bind

Regards,
Mark.



More information about the bind-users mailing list