I have tablet with 4 GiB of RAM and SSD 128 GiB with LUbuntu 18.04.
When the memory usage reaches approx. 3.9 G, the system hangs. Only the mouse pointer moves with lags. No reaction on Ctrl+Alt+Fx.
swapon is reported 8 GiB:
$ sudo swapon --show NAME TYPE SIZE USED PRIO /dev/sda2 partition 8G 0B -2 $ sudo sysctl vm.swappiness vm.swappiness = 60 $ uname -r 4.15.0-55-generic
Why the memory is not actually swapped? How to enable swap?