Bug 1289042

Summary: system monitor does not show CPU load values correctly
Product: Red Hat Enterprise Linux 7 Reporter: Martin Krajnak <mkrajnak>
Component: gnome-system-monitorAssignee: David King <dking>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.2CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 12:43:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot.jpg none

Description Martin Krajnak 2015-12-07 10:14:19 UTC
Created attachment 1103134 [details]
screenshot.jpg

Description of problem:
In attached image you can see that processes with PID 9866,9867 have 100% CPU load in htop, but in gnome-system-utility  same processes have only 25% and 24% CPU load.

Version-Release number of selected component (if applicable):
gnome-system-monitor-3.14.1-3.el7.x86_64
kernel-3.10.0-327.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.run htop
2.run gnome-system-monitor
3.run stress --cpu 2 --timeout 60
4.compare cpu load values in both tools

Actual results:
values are different, gnome-system-monitor shows about one quarter from htop values

Expected results:
values should correspond

Comment 1 David King 2015-12-07 12:43:44 UTC
This is expected, and because gnome-system monitor is showing the CPU load averaged over the number of cores, whereas htop is showing the load in terms of a single core.

There is an option to configure this behaviour in the gnome-system-monitor prefences ("Divide CPU usage by CPU count") which can be changed by the user.

Comment 2 Martin Krajnak 2015-12-07 13:52:32 UTC
Good, i misunderstood the following TCMS test case

https://tcms.engineering.redhat.com/case/422330/?from_plan=15435

which was saying that values in htop and gnome-disk-utility "could be slightly different", I will update the case so we can prevent misunderstanding in future.