Registered Member
|
Recently I had to trouble shoot an annoying memory leak occurring in the plasmashell task. I have come across some helpful information in troubleshooting which might be able to help out.
As I have been learning on troubleshooting memory leaks, I came across this wonderful tool, see https://github.com/DataDrake/proc-maps. Another informative site was https://www.fatalerrors.org/a/brief-analysis-of-memory-management-proc-pid-maps.html which is a good explanation of what is going on and what information the /proc/self/maps or /proc/pid/maps provides. The pertinant information states:
I enclose a simple script file I created which creates a log every so many seconds apart, it is a bash script
You can run two or three snapshots, then do a "diff" or "meld" upon the files to see what has changed. You are welcome to use this bash script as you wish and modify to your desire. I set it to work with the "plasmashell" task, but you can change it to any task on your system experiencing problems. Using the information in the /proc/self/maps folder is a great help to locating memory issues such as leaks. In my case, I was getting closer to understanding where the leak is occurring, it occurs in a certain section of the maps file
The problem line is this one:
where the size in red font keeps slowly increasing over time. Unfortunately the SYSV00000000 segment is apparently in virtual memory so more careful troubleshooting is needed, but the previous lines prior to this one give a hint as to the possible problem area. I hope the information given above will give you more understanding of how to troubleshoot memory leakage issues and give you some tools on how to analyze and proceed in these thorny complicated detailed issues. |
Manager
|
Could you please also file a bug for this? There shouldn't be any memory leaks to start with, so please file a bug on https://bugs.kde.org to let the developers know about your findings
Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ... |
Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]