Hi Stefan,

I haven't looked at the code to see exactly what it does, but what you
see could easily be explained by rounding.

For example, in the line above the one you mark, usr and sys are both 1, with
idl being 97.  That doesn't add up to 100, either.  But suppose usr and sys
are both 1.3, which would each round down to 1.  idl would be 100-2.6 or 97.4
which would round to 97.  On your line, usr and sys might both be 1.6, each
rounding up to 2.  But idl would be 100 - 3.2 or 96.8 which rounds up to 97.

Regards,

Dave Miller

Stefan Parvu wrote, On 01/28/09 09:36:
> 
> CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
>   0   84   0    0   392  192  706  101    0    0    1  3414   10   3   0  86
>   0    5   0    0   308  108  230    9    0    0    0   422    1   1   0  97
>   0    0   0    0   308  108  232    9    0    0    0   416    1   1   0  97
>   0    1   0    0   311  111  239   10    0    0    0   470    2   2   0  97
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   0    0   0    0   307  107  234    9    0    0    0   413    1   2   0  97
>   0    0   0    0   347  147  444   14    0    0    0  1104    2   2   0  96
>   0    0   0    0   346  146  290    9    0    0    0   451    1   2   0  97
> 
> It seems this happens as well on mpstat. Hmmm, could be something wider
> broken ?
> 
> My system:
>                   Solaris Express Community Edition snv_103 X86
>            Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
>                         Use is subject to license terms.
>                            Assembled 17 November 2008
> 
> System Configuration: Acer, inc. Ferrari 4000    
> BIOS Configuration: Acer    3A27 03/20/06
> 
> Thanks,
> stefan
> 
> _______________________________________________
> perf-discuss mailing list
> perf-discuss@opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to