Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What are the disadvantages of using a swap file/partition on an SSD, even when swappiness is set to 0

I'm particularly interested in the /proc/sys/vm/swappiness=0 case. How much writes are still done, in practice, to that swap file, and does it have a negative impact to the SSD or any other disadvantage? Or would it nearly compare to not having a swap file?

I am pretty aware of what swappiness=0 means, just not of what it amounts to in practice.

My question stems from a problem I am experiencing without a swap: There are similar questions regarding SSD and swap but they don't go in-depth into the swappiness=0: Disadvantages of not having a swap partition, Should I keep my swap file on an SSD drive?

share|improve this question

closed as not constructive by random Feb 9 '11 at 22:41

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

If you are not using more memory than amount of your physical memory, then your swap file is not used at all. In that case it does not matter. If your swappiness=0.

I would say that if your applications are randomly using swap (exceeding amount of physical memory from time to time), it really do not matter. For example compiling software (in continuous integration machine, several builds per day) uses disk pretty heavily, and so far there hasn't been any problems.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.