Question: How Do I Resize Swap Space in Linux?
Contents How Do I Change the Swap Space Size in Linux? the Basic Steps to Take Are Simple: Turn off the Existing Swap Space. Create a New Swap Partition of the...
Contents
How do I change the swap space size in Linux?
The basic steps to take are simple:
- Turn off the existing swap space.
- Create a new swap partition of the desired size.
- Reread the partition table.
- Configure the partition as swap space.
- Add the new partition/etc/fstab.
- Turn on swap.
Must Read
How do I resize swap space?
To resize a swapfile, you must first disable it, which evicts the swap contents to RAM, which increases pressure on RAM and may even summon the OOM killer (not to mention that you could possibly be thrashing your disks for several minutes).