I have been having this issues where after a few days of usage the base memory usage (everything is closed, even the system tray of apps like discord and slack is closed) of my PC is around 45%. This is causing cases where apps I’m activly using are getting force closed to avoid oom.
Just now I had all of my chrome windows force closed, when I woke up my computer from suspend, but this has happened also while using it.
I can not see anything in htop that would be taking up this much memory. When I reboot, the base memory usage goes back to normal 1-3% like i would expect.
I did read about how swap is done with compressed memory and that actula page files are “bad“ and that sometimes file contents could be cached, and take up memory. But those cache files should be evicted first and not my apps so I’m not sure what is causing this mess….
It’s considerably easier if you post text as text, rather than as a screenshot of text. We can’t search, cut/paste or easily read screenshots. If you post as pre-formatted text, the formatting is also maintained and the entire rest of the site can index and search your output.
Some extra info:
I still didn’t restart the PC but the memory usage after waking it up today went down to around 30% still not great but a bit better. Gonna have to restart it tho, so I can work.
Shift-Esc will (probably) pull up the memory consumption for each tab within Chrome. It does on FireFox, so I assume Chrome will have something similar.
Maybe keep an eye on it and look for a runaway tab consuming more and more memory with poorly written Javascript.
There’s also memstrack which will track and display memory consumption on a process by process basis, just in case Chrome is being incorrectly fingered as the culprit by the OOM killer.
Yes I’m using chrome, but the whole issue is that even after I closed everything, i still had around 30-40% memory usage. So while chrome might have been the largest memory allocation out of the user apps, something else was still keeping almost 16gb of ram used. If that usage wasn’t there Chrome wouldn’t had to be murdered, it was just a victim and not the culprit in this case.
Hi!
I ended up restarting the PC that day to get some work done. But it is back up to 38% RAM usage after a few days so I can run the command as you asked
[dpeter99@GLaDOS]~% free -h
total used free shared buff/cache available
Mem: 31Gi 12Gi 3.9Gi 486Mi 16Gi 19Gi
Swap: 8.0Gi 2.6Gi 5.4Gi
[dpeter99@GLaDOS]~%
I have also opened the chrome task manager but that looks fine, in this idle state.
In htop, you might want to configure (press [F2] button, → [DisplayOptions]) to Hide userland process threads as multiple threads of a process share the same memory space, therefore it is not relevant to display them more than once.
What you can see here is that plasma-discover takes 1GB of your RAM. This is not that surprising, GNOME Software is behaving in a similar way. As long as it keeps around that size and doesn’t grow much larger, I guess it is fine. If it is not, it would be necessary to debug that specific process.