I have verified the above results in a virtual machine,  netperf, and
netserver were both showing 41-42% cpu usage while per cpu usage were
showing 63-65%.

I also verified this with 3.10-rc6.

I also did a test, which was to run
taskset -c 1 nice 19 stress -c 1
while running the above netperf. I discovered that the time spent on the 
netperf task dropped to 30% while the cpu usage on the netserver stayed at 50%. 
 Leading me to believe that the per process usage is being reported higher than 
it should be.

I also ran a test to verify that top is correctly reporting values as spit out 
from /proc/
while(true) do cat stat >> /tmp/stat; cat /proc/[pid of netserver]/stat >> 
/tmp/stat ; cat /proc/[pid of netperf]/stat >> /tmp/stat; sleep 2s ; done
Attached is the output from running the above 


** Attachment added: "raw /proc/stat data"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1193073/+attachment/3708233/+files/stat

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193073

Title:
  cpu usage does not match sum of per-process usage

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1193073/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to