Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a 64-Bit Linux PC with 4 GB of RAM.

How can I find the optimum value of swappiness (/proc/sys/vm/swappiness) to be set? The default is 60 and I don't think it works best for everyone.

I am looking for an answer which possibly makes use of the outputs of the commands free, top, ps etc

I can always provide more system information if required.

Some info regarding swappiness can be found here

share|improve this question
Honestly, it depends what you're doing with this box. I suppose that if you are constantly chewing up RAM, you'll want to swap more (to keep RAM available), while if you are not using a lot of RAM, you'll want to swap less (to avoid HDD IO). Of course, I may have this backwards... –  new123456 Jun 6 '11 at 5:12

1 Answer 1

Leave it at its predefined value. The reason why it's set to this, is that it works for most workloads.

So your question should actually include the planned workload. As that's what swapping is about ;-).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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