1 2 3 4 5 6 7 8 9 10 11 12 |
//First disable swap file: sudo swapoff /swapfile //Now let's increase the size of swap file: sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 oflag=append conv=notrunc //The above command will append 1GiB of zero bytes at the end of your swap file. //Setup the file as a "swap file": sudo mkswap /swapfile //enable swaping: sudo swapon /swapfile |