Antonio Cloud, Antonio Feijao UK

Raspberry Pi increase the swap memory size

Change the size for your preference, Default is 100, (100MB)

Change for example for 2048 (2GB)

sudo vim /etc/dphys-swapfile

sudo /etc/init.d/dphys-swapfile restart

Default swap file location is ls -lh /var/swap

-rw------- 1 root root 2.0G Feb 29 20:20 /var/swap

If you do not have htop installed, you can install it with apt-get install htop