MIDS-scaling-up / v3

42 stars 49 forks source link

Turn off zram when configuration the jetson #1

Open rdejana opened 3 years ago

rdejana commented 3 years ago

in JP 4.4, zram is turned on. We can move the file /etc/systemd/nvzramconfig.sh to /etc/systemd/nvzramconfig.sh.old to turn off.

AndreV84 commented 3 years ago

@rdejana after turning off zram it is also handy to setup the swap as in https://github.com/NVIDIA-AI-IOT/jetson-cloudnative-demo#instructions-to-set-up-nvme-drive

"Next, create a file swap on NVMe by following these instructions:

​ Turn off zram:

cd /etc/systemd
sudo mv nvzramconfig.sh nvzramconfig.sh.orig
sudo reboot

​ Add swap file on nvme and verify:

sudo fallocate -l 32G /home/nvidia/nvme/swapfile
sudo chmod 600 /home/nvidia/nvme/swapfile
sudo mkswap /home/nvidia/nvme/swapfile
sudo swapon /home/nvidia/nvme/swapfile
sudo swapon -s

Add the line below to /etc/fstab so swap file will be automounted going forward:

/home/nvidia/nvme/swapfile swap swap defaults 0 0

Reboot the developer kit after saving the /etc/fstab changes. "