Bug 434989

Summary: Memory and Swap History plot does not consider Shared Memory
Product: [Unmaintained] ksysguard Reporter: Gustavo <sancheztavo>
Component: ksysguardAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.18.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Memory and Swap History plot (which is bugged)
My custom Application vs Allocated Memory plot
Script that creates an array and copies it into shared memory

Description Gustavo 2021-03-26 18:31:10 UTC
Created attachment 137092 [details]
Memory and Swap History plot (which is bugged)

SUMMARY
"Memory" line in the "Memory and Swap History" plot in the "System Load" tab does not show actual allocated memory but only Application memory. Which I think is misleading to someone who wants to know how much memory is available.

I've created a separate tab with both Application Memory and Allocated Memory for comparison

STEPS TO REPRODUCE
1. run shared-memory-test.py (needs pytorch)
2. download it into a directory and "cd" into it
3. run "python3 -m venv venv; source venv/bin/activate, pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html"
4. run "python shared-memory-test.py"

OBSERVED RESULT
Check the Memory and Swap History  Plot, it will show it decreases when actually the process moved a huge array into shared memory.
I'm attaching screenshots of what I see, both in my custom plot and the default one.

EXPECTED RESULT
The Memory and Swap History plot should not show any decrease in ram usage at all, since it's misleading.


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-70-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3770K CPU @ 3.50GHz
Memory: 31.3 GiB of RAM

ADDITIONAL INFORMATION
Comment 1 Gustavo 2021-03-26 18:31:43 UTC
Created attachment 137093 [details]
My custom Application vs Allocated Memory plot
Comment 2 Gustavo 2021-03-26 18:32:31 UTC
Created attachment 137094 [details]
Script that creates an array and copies it into shared memory
Comment 3 Christoph Cullmann 2024-09-23 20:59:41 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!