Bug 424671 - Wrong CPU usage reported after OOM kill
Summary: Wrong CPU usage reported after OOM kill
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksysguard
Classification: Unmaintained
Component: general (show other bugs)
Version: 5.19.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-26 02:25 UTC by MScattolin
Modified: 2024-09-23 21:00 UTC (History)
1 user (show)

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


Attachments
comparison between ksysguard and htop (119.08 KB, image/png)
2020-07-26 02:25 UTC, MScattolin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MScattolin 2020-07-26 02:25:22 UTC
Created attachment 130403 [details]
comparison between ksysguard and htop

SUMMARY
After an "out of memory" kill is triggered, ksysguard will report incorrect CPU usage. It is happening without any userspace tool for OOM management, and I've only managed to fix it by restarting the session, closing ksysguard and opening it again will keep showing incorrect data.
"wrong" as in higher than reported in other tool, such as 100% in some of the cores, all of them or just one, depending on what the program was doing before stopping.
I'm using htop and gnome-system-monitor for comparison.

STEPS TO REPRODUCE
1. Open enough applications to fill up the memory. One single program filling the entire memory works best, like a game.
2. Wait for the kernel to kill the application.
3. ksysguard will report wrong CPU usage info from now on.

OBSERVED RESULT
wronge CPU usage information

EXPECTED RESULT
CPU usage according to what is displayed on the 'Process Table' tab

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.7.10
(available in About System)
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72
Qt Version: 5.15

ADDITIONAL INFORMATION
the OOM kill logs the following, plus some stack trace:

jul 25 22:55:46 hades kernel: Out of memory: Killed process 2651 (Cities.x64) total-vm:13314264kB, anon-rss:3085924kB, file-rss:0kB, shmem-rss:9716kB, UID:1000 pgtables:8536kB oom_score_adj:0
Comment 1 Christoph Cullmann 2024-09-23 21:00:04 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!