Skip to content

Jetson Nano โ€“ Use More Memory!

Introduction

The NVIDIA Jetson Nano Developer Kit has 4 GB of main memory. This may not enough memory for running many of the large deep learning models, or compiling very large programs. Letโ€™s fix that! We are going to install a swapfile.

Installation

On the JetsonHacksNano account on Github, there is a repository named installSwapFile. Clone the repository, and then switch over to the repository directory:

git clone https://github.com/JetsonHacksNano/installSwapfile
cd installSwapfile

Run :

./installSwapfile.sh

and a 6 GB swapfile will be installed at /mnt/swapfile.

Warning

You will need to have enough extra room on your device to install the swapfile.

For the 4 GB Jetson Nano, the 6 GB swapfile is what Ubuntu recommends assuming that you are using hibernation. Otherwise 2 GB should do.

Reboot the system so the changes take effect :

sudo reboot

Comments