How to Permanently Disable Swap in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

3 Responses

  1. Matei Cezar says:

    You can shrink the swap partition to a smaller size. 30G of swap is kind of large file or partition for swapping.

  2. Kunal Ghosh says:

    If there is sufficient RAM (8GB), computer may never access swap space. What is the benefit of disabling swap in this case? Conversely, how will swap cause problems if the computer never accesses it.

  3. José Luis Rosales says:

    In my case, I have 30 GB. free 0 GB. I should not disable?

    total used free shared buff/cache available
    Memoria: 7.7G 1.6G 4.6G 196M 1.5G 5.6G
    Swap—–: 30G 0B 30G

Got something to say? Join the discussion.

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