! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Inaccurate CPU value
Status:
RESOLVED: FIXED
Product:
Xfce4-systemload-plugin
Component:
General

Comments

Description Roger Seguin 2005-07-12 17:48:44 CEST
I'm afraid that there is some inaccuracy in the way cpu.c reports performance 
statistics, at least on Linux 2.6 systems.
Basically, the reported CPU usage (user, including nice, plus system) is 
overestimated since the elapsed time is underestimated, mainly due to the I/O 
wait time not being considered at all (this can be noticed when creating a 
big tar file).

Please find attached a cpu.c that I believe more accurate on Linux 2.6 systems;
for the code change, check the compilation key RS(=true).
Comment 1 Roger Seguin 2005-07-12 18:04:38 CEST
Created attachment 271 
cpu.c, systemload 0.3.6
Comment 2 Harold Aling 2007-09-23 13:17:44 CEST
What's the status on this one?
Comment 3 Florian Rivoal editbugs 2010-10-14 17:41:47 CEST
I just pushed a fix similar to this patch to the master branch. Thanks for noticing this problem, and sorry for the long wait.

Bug #1076

Reported by:
Roger Seguin
Reported on: 2005-07-12
Last modified on: 2010-10-28

People

Assignee:
Florian Rivoal
CC List:
1 user

Version

Version:
0.4.2 or older

Attachments

cpu.c, systemload 0.3.6 (6.81 KB, text/plain)
2005-07-12 18:04 CEST , Roger Seguin
no flags

Additional information