A week or so ago, I noticed my memory usage was insanely high. Plasma Shell itself was using more than a GiB of memory, and my total memory usage while idle, discounting disk cache, was more than 5.5 GiB. Reinstalling EndeavourOS did not fix this. I thought it was just Plasma Shell, and reported it to the people over at KDE, but they said it might have to do with my distribution. I took a look at memory usage for other programs and lo and behold, itās not just Plasma Shell continually using more and more memory, but every program as well. Within two days of a system reboot, it is using a total of 5.5 GiB of memory, and quite frankly, itās super frustrating. If you could help me resolve this, I would be extremely grateful.
Some things I have noticed:
-The text on resource monitoring widgets seem to be broken, and either disappear or have bad wrapping
-Removing resource widgets seems to somewhat stop this resource crawl.
Iāve never used KDE for more than a few hours myself, but on XFCE Iāve seen where certain themes and fonts can make the memory usage go crazy. I would try changing those and rebooting to see if things are more inline then as far as memory usage goes.
Yeah. If you had the defaults still that pretty much makes sense. We can cross it off the list at least though. I know you said you reinstalled recently, what programs have you installed since then? Stealing a command from here:
Try: grep "\[ALPM\] installed" /var/log/pacman.log and we can get a list of what you installed.
None of that looks crazy to me, but itās not like one of them is going to say āmemory leakā
Did you start having the issue immediately after the install, which was on September 4th (Iām guessing)? If it started on a later date, you could check the list for programs that came at that time and start uninstalling them (pacman -R) until the issue is resolved.
I had Arch installed for a month or so now, and I reinstalled a day or two ago. I believe I had the issue for a while but didnāt pay much attention to it until recently.
Based on that log, not much has changed program-wise in the last few days, only 14 things since last Friday. Are there other changes going on with your system? External/internal drives? Moving partitions? Anything like that?
Now that you mention it, I do have some things Iād like to mention. I have two other internal hard drives, one for my windows install and one for games and such. I tried booting some other distributions on a liveusb recently, but they froze my computer and I had to press the restart button on my case.
Just a passing note here - and I wonder how familiar you are with Linux memory usage? I have often been amazed at how much it can āhideā in caches and such over time, but it so far has always had enough when needed. What is the usage split of your memory use?
Since I rebooted a few hours ago, 22% application data, 16% disk cache. Trust me when I say that both application data and disk cache will quickly fill up my physical memory and then overflow to my swap.
Well, itās not quite true, but itās the way the Linux virtual memory subsystem works.
There are tons of tweakables to control the behaviour of it, of which two come to mind: vm.vfs_cache_pressure and vm.extfrag_threshold.
If you absolutely want to drop the caches (which should not be necessary under normal circumstances), issue: su -c 'echo 3 > /proc/sys/vm/drop_caches'