April 2018
Intermediate to advanced
508 pages
15h 22m
English
On the write side of things, Linux handles writes to the disk using a daemon named pdflush. It will spawn a number of pdflush processes (between two and eight) to keep up with the amount of outstanding I/O. pdflush is not very aggressive about writes, under the theory that if you wait longer to write things out, you will optimize total throughput. When you're writing a large data set, both write combining and being able to sort writes across more data will lower average seeking.
The main driver for when things in the write cache are aggressively written out to disk are two tuneable kernel parameters, as follows:
Read now
Unlock full access