5. Swap partition vs. file
The Sipwise C5 performance heavily depends on the IO
operations, hence if Swap is used (either the Swap file
and/or the Swap partition), the performance might deteriorate.
We highly recommend increasing RAM if the platform uses Swap during normal
The Swap partition is no longer in use. The Sipwise C5 has been
migrated to the Swap file on the data partition.
It gives the following benefits:
more space is now available for the root, rollback and data partitions.
the Swap file size can be easily changed on the fly (if necessary).
the Swap file can be migrated to a new location easily: create a new
Swap file with the necessary size and location using the mkswap command and
activate the new Swap file with swapon. Add the new location to /etc/fstab.
Now, you can deactivate the old swapfile with swapoff and remove it to
release the disk space.
The main reason for the Swap partition usage, used to be data fragmentation
on hard disk drives (HDDs) and old types of filesystems. For modern SSD drives,
the fragmentation issue is irrelevant and the ext4 filesystem does not require
manual defragmentation either. The free space on fast SSDs is more important
nowadays, as it allows storing more data.