SMP and 9.4.1-P1

SMP and 9.4.1-P1

Post by Pavel Urba » Wed, 31 Oct 2007 21:16:35


Hello,

I have a caching nameserver running 9.4.1-P1 (Sun Fire X4100, 2CPU,
RedHat Linux 4, x86_64 arch). I have a feeling that BIND is using only
one CPU, but I don't know how to confirm it. I've tried to run it
without '-n' or with '-n 2' but without visible difference. Maybe 'top'
is just lying...

top - 12:54:09 up 23 days, 22:28, 1 user, load average: 0.86, 0.93, 1.15
Tasks: 56 total, 3 running, 53 sleeping, 0 stopped, 0 zombie
Cpu0 : 69.3% us, 26.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.7% hi, 4.0% si
Cpu1 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi,
0.0% si
Mem: 5990192k total, 4165916k used, 1824276k free, 109744k buffers
Swap: 6289436k total, 0k used, 6289436k free, 331916k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3330 named 25 0 3558m 3.4g 1684 R 100 60.4 17904:45 named
1 root 16 0 4756 552 460 S 0 0.0 0:00.45 init
2 root RT 0 0 0 0 S 0 0.0 0:00.20 migration/0
3 root 35 19 0 0 0 S 0 0.0 0:09.75 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.23 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:21.27 ksoftirqd/1

--
***********************************************************************
Pavel Urban (pavel.urban (at) o2.com)
O2 system disaster
Telefonica O2 Czech Republic, a.s. - www.cz.o2.com
***********************************************************************
Vegetables should not operate electronic equipment.
Computer Stupidities, http://www.yqcomputer.com/
***********************************************************************
 
 
 

SMP and 9.4.1-P1

Post by Danny Maye » Thu, 01 Nov 2007 13:11:21


Whether it's going to be able to use multiple CPU's depends on whether
it's been built with threads enabled. If it's built single threaded it
cannot take advantage of the other CPU. See the README file on how to
build it with multithreading.

Danny