Timo Buhrmester wrote:
> On -current amd64 (GENERIC and GENERIC.MP), per-process CPU time
> accounting seems wrong to me, judging from watching top(1) and ps(1)
> while compiling stuff.
> 
> [...]
> 
> Occasionally the pertinent programs do show up, but with *very* little 
> apparent CPU usage:
> | load averages:  2.87,  2.00,  1.63                     flap.localdomain 
> 23:47:19
> | 38 processes: 36 idle, 2 on processor
> | CPU0 states: 60.0% user,  0.0% nice,  0.0% system,  0.0% interrupt, 40.0% 
> idle
> | CPU1 states: 42.3% user,  0.0% nice,  0.0% system,  0.0% interrupt, 57.7% 
> idle
> | Memory: Real: 49M/1139M act/tot Free: 2077M Cache: 643M Swap: 0K/2224M
> | 
> |   PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
> | 11425 root      64    0   19M   20M onproc    -         0:00  0.29% cc1
> | 14278 root      -6    0 4380K 5172K sleep     piperd    0:00  0.10% as
> |  7894 root      18    0 2268K 4388K sleep     pause     0:01  0.05% make
> | 19935 root      10    0  528K 1492K sleep     wait      0:00  0.05% cc

When building software, you usually have a lot of compiler processes
coming and going. The CPU utilization stats (in the header) are more
averaged than the process list stats. So, when building you're likely to
see a lot of CPU utilization in the per-CPU stats but no offending
process in the list.

Reply via email to