Top - 0% idle
When I run ‘top –d 0.5’ on my machine and I press ‘1’ to enable the SMP View, I notice that all of the CPU’s keep toggling between 100%idle and 0% idle.
The odd part is that when a CPU goes to 0.0% idle, I would expect to see one or more of the other columns peek, but they are not. Any idea what is causing this? Code:
top - 06:35:38 up 14 days, 19:26, 4 users, load average: 0.05, 0.13, 0.10 |
Welcome to Linux Questions! :)
It's probably something to do with how the kernel "shares" your one running task over eight processors. In the bad old days you used to time-slice access to the single processor to allow the multitude of tasks to run (Er... that'll be multi tasking) I'm not sure how it works in reverse though? Play Bonny! :hattip: |
Quote:
If this were the case, shouldn't I be seeing some activity in the sy column for the same cpu? |
The CPU's on this machine a relatively new, Dual Intel Xeon E5530 @ 2.40 Ghz.
Here are some the specs from Intel: Code:
Essentials: |
Quote:
Play Bonny! :hattip: |
top (re-)reads /proc "files" a lot. This causes skewing in the numbers it generates. The faster is does this, the worse the effect - why are you using fraction(s) of a second ?.
|
Quote:
Quote:
|
Are you running natively, or as a guest ?.
I run a i7 (4 core, hiperthreaded), so it also looks as 8 processors. I see similar at -d 0.5 - but the all zero line only appears on one cpu. Looking at /proc/stat for the cpu data, it appears to be valid (for all cpus) even for small iterations. Guess that might mean "top" can't keep up, and just tosses the data out when it gets the next timer pop. All guesswork, but matches the evidence. For "good" detail data, have a look at collectl in daemon mode. |
Quote:
|
All times are GMT -5. The time now is 09:03 PM. |