• Andrew Morton's avatar
    [PATCH] vm: balance inactive zone refill rates · fb5b4abe
    Andrew Morton authored
    The current refill logic in refill_inactive_zone() takes an arbitrarily large
    number of pages and chops it down to SWAP_CLUSTER_MAX*4, regardless of the
    size of the zone.
    
    This has the effect of reducing the amount of refilling of large zones
    proportionately much more than of small zones.
    
    We made this change in may 2003 and I'm damned if I remember why.  let's put
    it back so we don't truncate the refill count and see what happens.
    fb5b4abe
vmscan.c 30.6 KB