Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got a system that is doing a continuous steady stream of writes to GFS2 filesystems, and what happens is that the cache builds up to vm.dirty_ratio and then load skyrockets during a synchronous flush

I've already set vm.dirty_background_ratio=1 and vm.dirty_ratio=10 and that definitely helped, but there's still a cycle of cache building up and a synchronous flush, albeit a smaller one.

What I really want is to make the background flush work harder. I've got CPU to spare, so I'd rather spread the flushing work out as evenly as possible and never have it be synchronous. Any advice on the best way to do that? The next thing I'll try is lowering vm.dirty_writeback_centisecs, but I've seen warnings about that. http://www.westnet.com/~gsmith/content/linux-pdflush.htm

This is 2.6.32 kernel.

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.