> Just grab the nsec values. As I recall, the others are just
> lower precision
> numbers derived from them.

using cpu::sys:cpu_nsec_user,kernel,idle
does not fix the problem. I think this is more
an issue about printing the output in Perl using
print or printf and rounding the values. 

Example using: loadstat.pl:
Idle   Kernel User
93      4       1
98      0       1
98      0       1
96      1       2
89      7       2
93      5       1
98      0       1
98      0       1
97      0       1
98      0       1
92      5       2
97      0       1
96      1       2
91      4       4
90      6       3
92      5       2
34      1       64
0       0       99
0       0       99
86      1       12


If you change the output from print to printf and have a format 
output we get closer but not enough :) There are sometimes
samples which dont match User+Sys+Idle=100. But more accurate.

Stefan


[1] - 
http://opensolaris.org/os/project/onnv/onnv_build/faster_builds/tools/scripts/loadstat.pl


_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to