1. When executing some programs on the jetson nano, since the memory of the nano is only 4GB, the following error message may appear, such as: OSError:Cannot allocate memory. You can try the following methods to solve the problem
——Solution : This problem can be solved by installing swapfile.
git clone https://github.com/JetsonHacksNano/installSwapfile
cd installSwapfile
./installSwapfile.sh
If you execute ./installSwapfile.sh without adding any parameters, it will be hung in the /mnt directory by default, and the default size is 6G. The
operation of deleting this swap space is as follows
su root
swapoff swapfile
rm /mnt/swapfile