Creating swap files faster sudo fallocate -l 100G /path/to/swap.img sudo chmod 0600 /path/to/swap.img sudo mkswap /path/to/swap.img