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. – Pilot6 Jan 21 '21 at 17:36top
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. – Soren A Jan 21 '21 at 18:17free -h
andgrep -i swap /etc/fstab
. – heynnema Jan 21 '21 at 18:17calamares
didn't have any capacity to deal with swap (the later version used for hirsute now has a swap pull down! just no selection of size, but it's a start!; as of 8-Jan-2021).. also a number of users actually didn't want swap (they have loads of RAM, I'm not in that camp though - I want swap). Incidentally you did it address it to a Lubuntu team member :) – guiverc Jan 22 '21 at 11:24calamares
on all releases used by Lubuntu (ie. 18.10 up) could deal with swap if manually setup (ie. manual partitioning options), the easy option of a drop-down to enable/disable swap is what was missing (`calamares defaults to no swap all releases up to and including groovy; maybe still today - only we now have the drop down to enable it..) There are people who don't need swap.... – guiverc Jan 22 '21 at 11:51