Home / Linux Admin /
Note that this all requires superuser priveleges.
fallocate -l 2G /swapfile
2G with the actual amount you want to dedicate to swapdd if=/dev/zero of=/swapfile bs=1024 count=1048576
chmod 600 /swapfilemkswap /swapfileswapon /swapfile/swapfile swap swap defaults 0 0 to /etc/fstabswapon --showcat /proc/sys/vm/swappiness/etc/sysctl.conf file on line vm.swappiness=** and rebootthis document last modified: January 28 2020 22:05
Home / Linux Admin /