[PATCH] reduced context switch rate in writeback
pdflush writes back chunks of ~1000 pages. It currently takes a short nap if it writes back no pages at all. That could cause it to write back lots of small batches of pages, as it bounces against a congested queue. Change it to sleep if it failed to write back the entire batch against a congested queue. Ths reduces the context switch rate a little. The context switch rate is still fairly high (150/sec) - this appears to be due to add_disk_randomness() scheduling a work function.
Showing
Please register or sign in to comment