Increasing Swap File Size
Increasing Swap File Size
Enabling zRAM
cat /proc/swapssudo apt install zram-configsudo nano /usr/bin/init-zram-swappingcat /proc/swapssudo apt install zram-configsudo nano /usr/bin/init-zram-swapping#Stop cardano-node first
sudo systemctl stop cardano-node
sudo swapoff /swapfile
#Verify swapfile is off
swapon --show
#12gb swapfile. Change if you wish.
sudo fallocate -l 12G /swapfile
#Verify swapfile exists
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
#Verify swapfile increased in size
swapon --show
#Restart cardano-node
sudo systemctl start cardano-node#Stop cardano-node first
sudo systemctl stop cnode
sudo swapoff /swapfile
#Verify swapfile is off
swapon --show
#12gb swapfile. Change if you wish.
sudo fallocate -l 12G /swapfile
#Verify swapfile exists
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
#Verify swapfile increased in size
swapon --show
#Restart cardano-node
sudo systemctl start cnode