Skip to content
Blog Removing (or reducing) Swap Space of your linux system

Removing (or reducing) Swap Space of your linux system

Sometimes it can be prudent to reduce swap space after installation. For example, say you downgraded the amount of RAM in your system from 1 GB to 512 MB, but there is 2 GB of swap space still assigned. It might be advantageous to reduce the amount of swap space to 1 GB, since the larger 2 GB could be wasting disk space.

You have three options:

remove an entire LVM2 logical volume used for swap,

remove a swap file, or

reduce swap space on an existing LVM2 logical volume.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.