I have an existing virtual storage but it is not enough and I cannot find a solution to this problem. I want to increase my existing virtual memory size. Any help is appreciated.
Asked
Active
Viewed 1,807 times
1 Answers
2
Increase swapfile size to match RAM size
Check the swap that is in use:
sudo swapon -sIf swap partition(s) are found:
sudo swapoff -a sudo nano -Bw /etc/fstabAdd
#before theUUIDof the swap partition(s):# UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none swap sw 0 0Add a line for the
swapfile, if one does not exist:swapfile none swap sw 0 0Create the
swapfile:sudo fallocate -l XG /swapfile*where
Xisswapfile's size in GB:sudo mkswap /swapfile sudo chmod 0600 /swapfile sudo swapon /swapfileReboot:
sudo reboot
C.S.Cameron
- 20,530
- 12
- 78
- 125