Writeback cache in linux

user1529891 asked:

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?


My answer:

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.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.