ubuntu keeps freezing 20.04 1

ubuntu keeps freezing 20.04

#Check the amount of swap you have
grep SwapTotal /proc/meminfo
#Turn off the swap process
sudo swapoff -a
#Resize the swap (in my case I expanded it to 16 GB)
sudo dd if=/dev/zero of=/swapfile bs=1G count=16
#Attach the swap to the partition
sudo mkswap /swapfile
#Activate swap (enable it)
sudo swapon /swapfile
#See the new swap size
grep SwapTotal /proc/meminfo

Here is what the above code is Doing:
1. Check the amount of swap you have
2. Turn off the swap process
3. Resize the swap (in my case I expanded it to 16 GB)
4. Attach the swap to the partition
5. Activate swap (enable it)
6. See the new swap size

Similar Posts