Thursday, November 17, 2022

increase swap size on Linux

From Linux Mint forums,

inxi -Sp
swapon
# to see if a swapfile is being used. If yes, then
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 status=progress
# took around 10-15 seconds
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon -a

and then reboot for the changes to take effect. 

No comments:

Post a Comment