Bug 434989 - Memory and Swap History plot does not consider Shared Memory
Summary: Memory and Swap History plot does not consider Shared Memory
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksysguard
Classification: Unmaintained
Component: ksysguard (show other bugs)
Version: 5.18.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-26 18:31 UTC by Gustavo
Modified: 2024-09-23 20:59 UTC (History)
1 user (show)

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


Attachments
Memory and Swap History plot (which is bugged) (19.44 KB, image/png)
2021-03-26 18:31 UTC, Gustavo
Details
My custom Application vs Allocated Memory plot (50.82 KB, image/png)
2021-03-26 18:31 UTC, Gustavo
Details
Script that creates an array and copies it into shared memory (129 bytes, text/x-python)
2021-03-26 18:32 UTC, Gustavo
Details

Note You need to log in before you can comment on or make changes to this bug.
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!