3 ms·
Wonder if it deals with dirty write back. That is a Linux behavior for writing dirty pages to disk. If writes come in at a high enough rate, Linux will hard blo
by rdtsc 12y ago
Wonder if it deals with dirty write back. That is a Linux behavior for writing dirty pages to disk. If writes come in at a high enough rate, Linux will hard block the writing thread until pages are written to disk.
Before that usually it spawns a bunch of pdflush processes to flush data out in the background, but if those can't keep up then it moves to blocking the process. On older systems and older spinning drives, blocks could take seconds even.
See /proc/meminfo for these two entries:
Dirty: 4 kB
Writeback: 0 kB
Dirty are the current dirty pages, and writeback is the current amount being written out.