Increasing Swap File Size
Increasing Swap File Size
The following common scenarios encountered by stake pool operators may require increasing swap file size:
Running low on RAM for cardano-node processes
Checking slot leader schedule is crashing due to not enough RAM
Enabling zRAM
zRAM is a Linux kernel module that creates compressed swap devices on memory, allowing much faster access to data than a traditional swap using SSD or HDD devices.
To check whether zRAM is enabled:
In a terminal window, type:
If the output lists a filename containing the text zram
then zRAM is enabled.
To install zRAM:
In a terminal window, type:
By default, zRAM creates a swap device half the size of your real RAM. If needed, to customize zRAM configuration options type:
Press
CTRL+S
and then pressENTER
to save changes that you made in step 2. PressCTRL+X
to exit the nano editor.Reboot the computer.
Increasing Disk Swap File Size
Here is an example to create a 12GB swapfile.
Adjusting the Swappiness Parameter
Last updated