Skip to content

Instantly share code, notes, and snippets.

@YeeJiaWei
Created January 19, 2023 07:36
Show Gist options
  • Save YeeJiaWei/aa8160f77dfc721a40c130f501728cf8 to your computer and use it in GitHub Desktop.
Save YeeJiaWei/aa8160f77dfc721a40c130f501728cf8 to your computer and use it in GitHub Desktop.
Script for Update Swap on Raspbian OS
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