Press "Enter" to skip to content

RASPBERRY PI – INCREASE SWAP SIZE

bist 0

STOP THE SWAP

sudo dphys-swapfile swapoff

MODIFY THE SIZE OF THE SWAP

As root, edit the file /etc/dphys-swapfile and modify the variable CONF_SWAPSIZE:

CONF_SWAPSIZE=1024

To modify the swap file, edit the variable CONF_SWAPFILE, and run dphys-swapfile setup which will create and initialize the file.

START THE SWAP

sudo dphys-swapfile swapon

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.