Skip to content

Instantly share code, notes, and snippets.

@hansheng0512
Last active May 3, 2024 14:19
Show Gist options
  • Save hansheng0512/97af6f988ad24291e5a94e5caeee1e2c to your computer and use it in GitHub Desktop.
Save hansheng0512/97af6f988ad24291e5a94e5caeee1e2c to your computer and use it in GitHub Desktop.
Increase SWAP Memory Size in Jetson Nano
  1. Run Command Below
sudo apt-get install -y dphys-swapfile
  1. Run sudo gedit /sbin/dphys-swapfile
  2. Change CONF_MAXSWAP to 4096, save and exit
  3. Run sudo gedit /etc/dphys-swapfile
  4. Enable CONF_SWAPSIZE and put 4096, save and exit
  5. Run sudo reboot . to restart Jetson Nano 7.Run free -m and check the Swap total
@noobyzy
Copy link

noobyzy commented Nov 3, 2023

This works fine!
The following is the free -m message:

              total        used        free      shared  buff/cache   available
Mem:           3964        1120        1361          17        1481        3130
Swap:          1982         538        1443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment