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.
More on Performance & the USE Method
What is the USE method?BeginnerMap the USE method to concrete Linux commands.IntermediateWhat is your "first 60 seconds" checklist on a slow server?IntermediateHow do you read vmstat output?IntermediateHow do you read `iostat -xz 1`?IntermediateWhat is sar and why install sysstat on every server?Beginner