sudo fallocate -l 512M /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
echo "vm.swappiness=10" >> /etc/sysctl.conf
echo "vm.vfs_cache_pressure = 50" >> /etc/sysctl.conf
Created
March 22, 2019 14:00
-
-
Save archlemon/53586dc2e2249e1849815a875874ca7e to your computer and use it in GitHub Desktop.