[nSLUG] No CPU use stat from ps running bind in chroot
budman85 at eastlink.ca
Wed Jul 26 11:55:51 ADT 2006
On Tue, 2006-07-25 at 23:51 -0300, D G Teed wrote:
> I think there is a misunderstanding here. The name servers
> are both working fine. The only aspect I'm curious about
> is how to get ps to report something about the time load
> on the named which is bind chrooted.
> Here is a sample from ps -uwwp
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> bind 28356 0.0 1.8 44548 16944 ? Ss 10:02
> 0:00 /usr/sbin/named -u bind -t /var/lib/named
> As it is, TIME always appears to be idle, while I know it is the
> primary domain server on a well visited domain. My name server
> at home, running Debian with same release of bind9
> shows a few seconds of CPU time consumed for
> light traffic.
The only thing I can think of is, when you use chroot it is spawning a
child process. Check the ppid to see if there are any child processes.
This would explain the zero usage percentage.
More information about the nSLUG