NOTE: Increasing the size of the swap can result in losing support and it will influence the behavior of the system.
This article explains how to increase the swap from default 1GB to 4GB. This prevents the UTM from running out of swap memory.
The following commands need to be entered on the command line of your UTM as root user.
Known to apply to the following Sophos product(s) and version(s)
What To Do in <= UTM v9.1
- Create 3GB swap file on /var/storage/
dd if=/dev/zero of=/var/storage/swapfile bs=1024 count=3145728
- Change directory to /var/storage/
- Set up a Linux swap area
- Enable files for swapping
- Check if everything worked. You should now see a total Swap around 4000
- Display swap usage summary. You should see a 2nd entry showing /var/storage/swapfile from type file with a size around 3145728.
- Edit /etc/fstab
- Change to Insert Mode
- Insert at the end of the file:
/var/storage/swapfile swap swap defaults 0 0
- Safe changes and exit vi
What To Do in UTM 9.2 and 9.3
If you want to increase the swapfile please follow the steps:
Login to the shell of the UTM as root
Open the ConfdClient with the command:
Set the object extra_swap$(this is the extra swap to the default swap size) to an integer value between 1 and 8:
=<1-8> (a value of 3 is recommended as this will increase it to =4)
Note: In case you have a new installation with a image of v9.2 or v9.3 the swap is by default the same size as the available RAM. The minimum swap size is 2 GB, the maximum swap size is 4 GB.