On Mon, 29 Dec 2008, Jeremy C. Reed wrote:
On Mon, 29 Dec 2008, Mike Diggins wrote:
When I start BIND on my Solaris 10 SPARC dual CPU (V210) system 9.4.2-P2,
I don't get the message "using 2 CPUs", but that's what I want. I
compiled it with './configure --prefix=/usr/local/bind --enable-threads'
and start it with '/usr/local/bind/sbin/named -n 2 -c /etc/named.conf'.
How do I know it's actually using the two SPARC CPUs?
It is only logged if ISC_PLATFORM_USETHREADS. I see you configured with
--enable-threads, but also verify that is defined in
lib/isc/include/isc/platform.h. Also make sure that you are testing the
same named that you built and installed from source.
And make sure your logging for the "general" category and "info" level is
really logged and look at the correct destination for it.
By the way, 9.6.0 rndc status will report the details, for example:
CPUs found: 2
worker threads: 2
My logging configuration is:
logging {
channel my_syslog {
syslog local4;
severity debug;
};
category "default" { "my_syslog"; };
category "update" { "null"; };
category "update-security" { "null"; };
category "lame-servers" { "null"; };
};
BIND is compiled with:
./configure --prefix=/usr/local/bind --enable-threads
and configure reports:
checking whether to build with threads... yes
and platform.h contains:
/*! \brief
* Defined if we are using threads.
*/
#define ISC_PLATFORM_USETHREADS 1
Starting the newly compiled named:
digg...@newblack<bin/named># ls -ltr
/usr/local/src/bind-9.4.2-P2/bin/named/named
-rwxr-xr-x 2 root staff 4916516 Dec 29 13:21
/usr/local/src/bind-9.4.2-P2/bin/named/named*
digg...@newblack<bin/named># ls -ltr /usr/local/bind/sbin/named
-rwxr-xr-x 2 root staff 4916516 Dec 29 13:29
/usr/local/bind/sbin/named*
When I start named, in /var/adm/messages I get:
Dec 29 13:32:46 newblack named[11891]: [ID 873579 daemon.notice] starting
BIND 9.4.2-P2 -n 2 -c /etc/named.conf
Dec 29 13:32:46 newblack named[11891]: [ID 873579 daemon.notice] command
channel listening on 127.0.0.1#953
in /var/log/named, I get:
Dec 29 13:41:16 newblack named[11933]: [ID 873579 local4.debug] now using
logging configuration from config file
Dec 29 13:41:16 newblack named[11933]: [ID 873579 local4.debug]
load_configuration: success
Dec 29 13:41:16 newblack named[11933]: [ID 873579 local4.debug] zone
0.in-addr.arpa/IN: starting load
etc..but no mention of CPU:
digg...@newblack<bin/named># grep -i cpu /var/log/named.info
digg...@newblack<bin/named>#
And finally, prtdiag reports:
digg...@newblack</etc># prtdiag -v
System Configuration: Sun Microsystems sun4u Sun Fire V210
System clock frequency: 167 MHZ
Memory size: 2GB
==================================== CPUs
====================================
E$ CPU CPU
CPU Freq Size Implementation Mask Status
Location
--- -------- ---------- --------------------- ----- ------
--------
0 1336 MHz 1MB SUNW,UltraSPARC-IIIi 3.4 on-line
MB/P0
1 1336 MHz 1MB SUNW,UltraSPARC-IIIi 3.4 on-line
MB/P1
What have I missed?
-Mike
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users