I am using Lubuntu 20.04 on laptop with 4 GB of RAM. The problem is outlined in the title. I need to work with a few programs running simultaneously and one of them is known to be a memory hog.
Gradually, all memory becomes consumed. I realise the system has every «right» to behave badly in this situation, but the fact it freezes completely with almost no warning signs is somewhat frustrating to say the least. I would expect some intensive swapping with the HD, general slowing down, issuing some critical warnings. Something! Not the case, it simply stops responding with swift resolve.
How can it be battled? Any option would be better than hard resetting, would it?
zswap
to improve the situation a little, but still you need more RAM.top
in a terminal, to see info on cpu and memory usage for processes. Seeman top' on how to sort on memory usage instead of (default) cpu-usage.?
free` can show you the overall memory and swap usage.free -h
andgrep -i swap /etc/fstab
.