Swap
Swap
Increase swap
-
Temporary stop swap.
sudo dphys-swapfile swapoff -
Modify the swap configuration file.
sudo nano /etc/dphys-swapfile -
Find and edit the following variable.
CONF_SWAPSIZE=100Set new size, example:
CONF_SWAPSIZE=1024 -
Re-initialize swap.
sudo dphys-swapfile setup -
Turn the swap back on.
sudo dphys-swapfile swapon -
Restart your Raspberry Pi
sudo reboot