Raspberry pi
sudo nano /etc/dphys-swapfile # CONF_SWAPSIZE=2000 - for 2Gb /etc/init.d/dphys-swapfile stop /etc/init.d/dphys-swapfile start