Ubuntu Swap

in #ubuntu6 years ago (edited)

Check configured swap:

sudo swapon --show

NAME                   TYPE      SIZE   USED PRIO
/swap-128              file      128G 127.9G   -2
/dev/md0               partition  32G    32G   -1

Create a swap file:

sudo fallocate -l 64G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Resources

  1. https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

Coin Marketplace

STEEM 0.26
TRX 0.25
JST 0.040
BTC 92903.81
ETH 3331.70
USDT 1.00
SBD 3.29