Welcome to ROSMASTER M1 repository
11. Jetson Nano Swap space increased
Jetson Nano B01 Swap space increases
xEntering the following commands in sequence can increase the swap space by 3G and solve some program errors that run out of memory.sudo fallocate -l 3G /var/swapfilesudo chmod 600 /var/swapfilesudo mkswap /var/swapfilesudo swapon /var/swapfilesudo bash -c 'echo "/var/swapfile swap swap defaults 0 0" >> /etc/fstab'
- Add swapfile file size customization
sudo fallocate -l 3G /var/swapfile
- Configure permissions for this file
sudo chmod 600 /var/swapfile
- Establish Exchange Partition
sudo mkswap /var/swapfile
- Enable swap partitioning
sudo swapon /var/swapfile

- Set to automatically enable swapfile
sudo bash -c 'echo "/var/swapfile swap swap defaults 0 0" >> /etc/fstab'
View the effect and open the terminal input
xxxxxxxxxxjtop

Swap has become 6g.