Created
January 19, 2023 07:36
-
-
Save YeeJiaWei/aa8160f77dfc721a40c130f501728cf8 to your computer and use it in GitHub Desktop.
Script for Update Swap on Raspbian OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dphys-swapfile swapoff | |
# Amount of system RAM Recommended swap space | |
# less than 2 GB 2 times the amount of RAM | |
# 2 GB - 8 GB Equal to the amount of RAM | |
# 8 GB - 64 GB 0.5 times the amount of RAM | |
# more than 64 GB workload dependent | |
# CONF_SWAPSIZE=2048 | |
sudo dphys-swapfile setup | |
sudo dphys-swapfile swapon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment