Welcome to Jetson Orin NX SUPER repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
07.Exchange space expansion
Exchange space expansion
Exchange space expansion1. Swap space2. Expand swap space2.1. Disable ZRAM swap configuration2.2, Create 8GB file2.3. Set the swap space format2.4. Enable swap space2.5. Permanently start swap space3. Verify the expansion
1. Swap space
Swap space is a mechanism used by the operating system to expand available memory. It can continue to run when there is insufficient memory, avoiding program crashes or system freezes!
Note: The access speed of swap space is much lower than that of physical memory. The system comes with 7.6G swap space when it leaves the factory.
2. Expand swap space
sudo systemctl disable nvzramconfigsudo fallocate -l 8G /var/8GB.swapsudo mkswap /var/8GB.swapsudo swapon /var/8GB.swapecho "/var/8GB.swap none swap sw 0 0" | sudo tee -a /etc/fstab

2.1. Disable ZRAM swap configuration
Disable ZRAM swap configuration on Jetson devices: ZRAM compresses and stores memory pages in memory to reduce reliance on disk.
xxxxxxxxxxsudo systemctl disable nvzramconfig
2.2, Create 8GB file
Use fallocate to create a file of 8GB in size, located in the /var/8GB.swap path.
xxxxxxxxxxsudo fallocate -l 8G /var/8GB.swap
2.3. Set the swap space format
xxxxxxxxxxsudo mkswap /var/8GB.swap
2.4. Enable swap space
xxxxxxxxxxsudo swapon /var/8GB.swap
2.5. Permanently start swap space
xxxxxxxxxxecho "/var/8GB.swap none swap sw 0 0" | sudo tee -a /etc/fstab
3. Verify the expansion
After restarting the system, the system swap space increased to 15.6GB:
