Interview Prep/Linux/Performance & the USE Method

What do dirty page writeback settings control?

AdvancedProductionPerformance & the USE Method
Answer
  • vm.dirty_background_ratio / _bytes: when background flushing starts.
  • vm.dirty_ratio / _bytes: when writers are forced to flush synchronously (stall).
  • vm.dirty_expire_centisecs: age before dirty data must be written.

On servers with lots of RAM, percentage-based defaults let gigabytes of dirty data accumulate, then a huge flush stalls I/O for seconds. Setting byte values (e.g. vm.dirty_background_bytes=268435456, vm.dirty_bytes=1073741824) gives smoother writeback. Watch Dirty: and Writeback: in /proc/meminfo.

All Linux questions Roadmap: Linux

More on Performance & the USE Method