lkml.org 
[lkml]   [2008]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] block: Fix LSF default inconsistency
    Hugh Dickins wrote:
    > On Sat, 13 Dec 2008, KOSAKI Motohiro wrote:
    >
    >> To move mlocked file cache page to unevictable list is useful although
    >> swapless embedded device.
    >>
    >
    > Yes, I don't understand why Rik suggested CONFIG_SWAP for it either.
    On swapless systems (with CONFIG_SWAP=n), we never scan
    the anon lists, so we do not need to split out the mlocked pages from
    the anon pages.

    On a system with swap, we want to split out the mlocked pages
    so that scan balancing always works right. So whenever
    CONFIG_SWAP is on, we want CONFIG_UNEVICTABLE_LRU
    to be on as well.

    That means we can replace CONFIG_UNEVICTABLE_LRU
    with CONFIG_SWAP throughout the code, and get a kernel
    with the desired behaviour either way.




    \
     
     \ /
      Last update: 2008-12-12 17:41    [W:0.024 / U:123.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site