Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

In linux how do I have a writeback cache on disks? Basically, I'd like to setup a 100MB RAM cache for writing that writes out every 3-5 minutes or when full. Is this possible? Is there a sysctl setting to tweak?


share|improve this question
up vote 2 down vote accepted

Linux already does some writeback caching. Look into pdflush and how it works. Unfortunately it takes some time to understand all the details, since it's quite complicated, but if you're wanting to tune it (e.g. for laptops) then that's the place to start.

share|improve this answer

You could look into the Eventually-Persistent Ram Disk (EPRD), but the best way to handle this is in hardware. You want something independent of the operating system in order to protect your data through OS crashes, power events and other disruptions.

Is there a reason that you're not interested in using the non-volatile cache available on modern RAID controllers?

share|improve this answer
I want to experiment with write-outs on SSDs. – jersten Aug 24 '12 at 20:36

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.