Get Informed out of Data

Full width home advertisement

Raspbian

DataScience

Post Page Advertisement [Top]

Change RAM SWAP SIZE in Raspberry pi 4

Change RAM SWAP SIZE in Raspberry pi 4

 

Before doing this, kindly check the default ram swap size 

sudo free -m

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

No comments:

Post a Comment

Bottom Ad [Post Page]