I have 8GB RAM, and use my PC (Debian 10, KDE plasma 5.14.5) "normally" but with many programs running in parallel:
- Firefox (≈ 250 Tabs)
- Chromium (10 Tabs)
- Thunderbird
- 10x Okular
- 2x Pycharm
- 5x Konsole
- Dolphin
- Kile
- Element, Telegram, Wikidpad, ...
After a fresh restart RAM consumption of my system is at about 4GB. Everything runs smoothly and fast. After several days (with suspend over night) RAM consumption is at about 7.5GB and it takes e.g. 10s to switch from Firefox to Dolphin.
I already tried (source)
# echo 1 > /proc/sys/vm/drop_caches
# echo 2 > /proc/sys/vm/drop_caches
# echo 3 > /proc/sys/vm/drop_caches
but it had no significant effect.
This is the output of free -m
:
total used free shared buff/cache available
Mem: 7754 5163 950 588 1641 1708
Swap: 19071 704 18367
swapon -s
gives:
Filename Type Size Used Priority
/dev/dm-1 partition 19529724 720896 -2
Question: How can I "clean" the RAM to get back the situation after restart (+ automatic program launches) but without doing an actual restart?
Disclaimer: This question got some comments on askubuntu.com/... but was regarded as offtopic for that site.
top
helps you find out which processes are big consumers. Trying to influence swap behaviour won't change anything to the fact that your applications consume too much. – berndbausch Mar 04 '21 at 10:13top
is your friend. Press 'm' to sort by memory usage. – Ole Tange Mar 08 '21 at 10:44