Add 2 GB of swap
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
free -h
Run it once. "free -h" must then show Swap: 2.0Gi. For another size change 2G in the first line.
Stuck? Ask Joy Ops AI in your console, or open a ticket — a person answers.
Was this article helpful?
Corrections and suggestions go straight to the team that wrote it — suggest an edit or see more in blog.
Corrections and suggestions go straight to the team that wrote it — suggest an edit or see more in blog.