• Andrew Morton's avatar
    [PATCH] start anon pages on the active list · a5bef68d
    Andrew Morton authored
    We're currently adding anon pages to the inactive list.  But they're
    all referenced, so when they reach the tail of the inactive list the
    kernel will always then bump them up to the active list.
    
    Not only does this waste CPU, but it leads to inactive/active
    imbalance.  We end up with enormous sequences of unreclaimable,
    to-be-activated pages hitting the tail of the LRU and large amounts of
    scanning need to be done.  Which upsets the VM, making it think that it
    is "under distress".
    
    So just start them out on the active list.
    a5bef68d
swap.c 6.79 KB