cpu usage does not match sum of per-process usage
Bug #1193073 reported by
Bryan Quigley
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Medium
|
Dave Chiluk |
Bug Description
Ubuntu 12.04. Already tested with kernel 3.10 as well.
Steps:
1 Get on a system with 2 cpus, netperf and top installed (need m1.medium)
2. Stop already running netserver
3. sudo taskset -c 0 netserver
4. taskset -c 1 netperf -H localhost -l 3600 -t TCP_RR & (start netperf with priority on cpu1)
5. Run top, press 1 for multiple CPUs to be separated
6. Observe how the numbers don't add up (varies between being off by 3-7% or so) between the process's numbers and the CPU%
The numbers also do not add up correctly when viewed directly from /proc
Bonus. Run htop to see a completely different set of seemingly wrong results.
Changed in linux (Ubuntu): | |
assignee: | nobody → Dave Chiluk (chiluk) |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.