How to find CPU IDLE Percentage on SMP (Dual processor Host)

Dominic Fandrey kamikaze at
Fri Feb 8 18:21:20 UTC 2008

Devanand SP wrote:
> Hi Everyone,
> I am using a FreeBSD version 4.11 for running my BIND. I am in a need of setting up an audit for the CPU Utilization on my resolvers and have a query about finding the CPU IDLE percentage on a DUAL processor hosts. As the BIND binary uses only the first processor, the second CPU most of the time not used by BIND. So in this case the in built system utilities like top or sar does average the CPU IDLE percentage by adding up the First CPU's IDLE % + Second CPU's IDLE % /2. This in turn will give me a wrong result. So can someone suggest me on how I can get the right CPU IDLE %?
> Thanks.

top -S

will list the idle processes for each CPU separately. I hope this is a valid 
statement for 4.x. I am not certain.

More information about the freebsd-questions mailing list