CPU usage

Hi,

i need to know the cpu usage for user, system, idle and nice for _each_ CPU. How can i get this information?

wiht sysctl hw.ncpu i get the number of cpus
and with sysctl kern.cp_time the sum for all cpus

I need a list separated by cpu

Any idea?

greets
 
Code:
dev.cpu.0.cx_usage
dev.cpu.1.cx_usage
etc.

Use [cmd=]sysctl -n[/cmd] on those to get the values by themselves.
 
Back
Top