Description | Command | ||||
---|---|---|---|---|---|
1 | Check your current memory and swap space configuration and availability NOTE: Under the "total" column, you will see the total system memory allocation needed to configure the swap for step 2 |
Get a list of swapfile names and paths for your system
Turn off and remove the swap file if one already exists (change /swapfile as necessary to the path and name of your swapfile)
| |||
2 | Allocate the swapfile, changing the command as necessary NOTE: A Super Node with 8GB RAM, may add a 8GB swap file (change 2G on the right to 8G) | Don't enter this entry without first changing the value as instructed in the description column
| |||
3 | Set permissions on the swapfile |
| |||
4 | Format the file as swap space |
| |||
5 | Activate swap |
| |||
6 | Validate swap is activated using this command, the output should return a row for 'Swap:' as shown in the example output; with the value in the 'total column matching the allocated amount of swap from step 1 |
This is an example of a system with 2GB of RAM, 2GB of swap was set in step 2
| |||
7 | Edit the /etc/sysctl.conf file to specify the 'swappiness' behaviour of your node Edit the /etc/fstab file, specifying that swap should be mounted at boot |
| |||
8 | Activate the updated configuration (without rebooting) |
|