Increase SWAP Memory Size in the Raspbian Operating System

Increase SWAP Memory Size in the Raspbian Operating System

Channel:
Subscribers:
12,900
Published on ● Video Link: https://www.youtube.com/watch?v=TbYYy48InS4



Duration: 5:03
2,146 views
31


█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█
[Synopsis]

This video shows you how to change the swap size on your Raspbian operating system for the Raspberry Pi Single Board Computer.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[My hardware specs]
Raspberry pi 4
4 gb ram
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Code used in this video}

[Stop the swapfile service]
sudo /etc/init.d/dphys-swapfile stop

[Go into the swapfile to change it]
sudo nano /etc/dphys-swapfile

[Original Swapsize]
CONF_SWAPSIZE=100

[Change to 2 gb or 2048 mb]
CONF_SWAPSIZE=2048

[Start the swapfile service]
sudo /etc/init.d/dphys-swapfile start

[Check to see how much swap space you have]
free -m or free -h
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█