I used ' top -bn 1 -u myaccount' to monitor the summary of all the cpu usage of my account.
But sometimes my log shows that the summary adds up to 160% plus.
I'm quite confused, does anybody know why?
my top version is 3.2.3
here's my top of my toprc:
RCfile for "top with windows" # shameless braggin'
Id:a, Mode_altscr=0, Mode_irixps=0, Delay_time=3.000, Curwin=0
========
Irix mode on:
PID %CPU
18119 4.3 162:36.22 java
Irix mode off:
PID %CPU (8 cores machine)
18119 0.6 162:36.22 java
I mean in the second condition , all my process's cpu usage sometimes may add up to 160%
Best Answer
jørgensen explained the CPU usage higher than 100%. Basically, CPU usage is scaled to be 100% at full use of one core. The IRIX mode for top just changes the way the CPU usage is calculated.
The IRIX mode is explained on the man page, which says:
and
Here is some additional information on top: Analyzing thread CPU usage on Linux.