• Andrew Morton's avatar
    [PATCH] reduced context switch rate in writeback · 25d19d4c
    Andrew Morton authored
    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.
    25d19d4c
page-writeback.c 16.4 KB