[macosx-unix] getting system utilization..

George Georgalis george at galis.org
Tue Mar 27 23:03:35 EDT 2007


I'm looking for some metric OS X system utilization... on NetBSD,
I use "sysctl kern.cp_time" and get the cpu clock cycles of
various states.

 geo at run:/home/geo/ sysctl kern.cp_time 
kern.cp_time: user = 516224, nice = 0, sys = 235061, intr = 14374, idle = 24752345
 geo at run:/home/geo/ sysctl kern.cp_time 
kern.cp_time: user = 516224, nice = 0, sys = 235061, intr = 14374, idle = 24752415
 geo at run:/home/geo/ sysctl kern.cp_time 
kern.cp_time: user = 516225, nice = 0, sys = 235061, intr = 14374, idle = 24752763

as you can see, using the command 3 times, the idle command was
mostly incremented but also the user clock. How can I get similar
info from OS X? I don't see anything resembling _that_ in the
mac "sysctl -a" listing.

// George



-- 
George Georgalis, systems architect, administrator <IXOYE><


More information about the macosx-unix mailing list