Bug 375455 - Processes usage doesn't sum up to total CPU usage.
Summary: Processes usage doesn't sum up to total CPU usage.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksysguard
Classification: Unmaintained
Component: general (show other bugs)
Version: 5.8.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-23 15:19 UTC by Simone Gaiarin
Modified: 2024-09-23 20:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Process table (94.82 KB, image/png)
2018-03-26 09:22 UTC, Simone Gaiarin
Details
System load (79.32 KB, image/png)
2018-03-26 09:22 UTC, Simone Gaiarin
Details
Ststus bar CPU sum does not match sum of processes (107.32 KB, image/png)
2018-03-30 17:05 UTC, Simone Gaiarin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Gaiarin 2017-01-23 15:19:54 UTC
Often the CPU usage reported in the System load tab is higher than the sum of the usage of the single processes in the the Process Table tab.

Looking at the processes CPU usage with 'top' show more realistic values.

Related:
https://bugs.kde.org/show_bug.cgi?id=288563
Comment 1 Gregor Mi 2018-03-25 18:14:17 UTC
Thanks for the report. Could you describe in more detail how to reproduce the behaviour?

Do you use the "Stack the beams on top of each other" (see https://bugs.kde.org/show_bug.cgi?id=388581)?
Comment 2 Simone Gaiarin 2018-03-26 09:22:00 UTC
Created attachment 111658 [details]
Process table
Comment 3 Simone Gaiarin 2018-03-26 09:22:44 UTC
Created attachment 111659 [details]
System load
Comment 4 Simone Gaiarin 2018-03-26 09:25:38 UTC
Steps:
- PC in idle
- Sort process table by CPU usage
- Roughly sum the % of CPU usage of the top processes (the ones with a percentage displayed, many other processes do not show a percentage probably because is elow 1%) [In this moment my sum is about 15% in the worst case)
- Look at the CPU usage in the System load tab (configured to stack the beams with range 0-400%, my CPU has 2 cores and 4 threads) [In this moment the usage is above 80%]

These two numbers differ significantly. Also considering only 2 out of 4 threads the percentage would be 40% not 15%.

BTW: Would be useful to have the total CPU usage displayed somewhere in the process table, but this is another bug report.
Comment 5 Gregor Mi 2018-03-26 11:38:48 UTC
Thanks for (In reply to Simone Gaiarin from comment #4)
> Steps:
> ...
Thank you for the details.

> BTW: Would be useful to have the total CPU usage displayed somewhere in the
> process table, but this is another bug report.
Have a look at the status bar of your Process Table screenshot. The second item might be what you are looking for.
Comment 6 Simone Gaiarin 2018-03-27 14:45:19 UTC
Yes you are right. 

Anote: the CPU sum in the status bar seems more similar to what is displayed in the system load tab than to the effective sum of the cpu load of the individual processes in the processes tab.
Comment 7 Gregor Mi 2018-03-30 11:43:39 UTC
(In reply to Simone Gaiarin from comment #6)
> Yes you are right. 
> 
> Anote: the CPU sum in the status bar seems more similar to what is displayed
> in the system load tab than to the effective sum of the cpu load of the
> individual processes in the processes tab.

Do you think the status bar shows indeed the correct sum or do you assume a bug there, too?
Comment 8 Simone Gaiarin 2018-03-30 17:03:37 UTC
I think the sum in the status bar does not sum exactly the individual processes. I've added another screenshot.
Comment 9 Simone Gaiarin 2018-03-30 17:05:59 UTC
Created attachment 111736 [details]
Ststus bar CPU sum does not match sum of processes
Comment 10 Patrick Silva 2018-04-23 01:38:35 UTC
issue described in sunmary is valid for ksysguard 5.12.4 on Arch Linux.
Comment 11 Sergey 2020-02-04 15:26:41 UTC
I can confirm that for Fedora 28-31, OpenSUSE 15-15.1
Comment 12 Christoph Cullmann 2024-09-23 20:59:48 UTC
ksysguard is no longer maintained, in Plasma 6 there is the Plasma system monitor for this task.

If your issue still happens with the Plasma 6 replacement, please re-open and we can move this bug to the new product, thanks!