Bug 424671

Summary: Wrong CPU usage reported after OOM kill
Product: [Unmaintained] ksysguard Reporter: MScattolin <matheus.scattolinanselmo>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.19.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: comparison between ksysguard and htop

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!