lkml.org 
[lkml]   [2012]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: mapped pagecache pages vs unmapped pages
    On 04/09/2012 01:11 PM, Alexey Ivanov wrote:
    > Thanks for the hint!
    >
    > Can anyone clarify the reason of not using zone->inactive_ratio in inactive_file_is_low_global()?

    New anonymous pages start out on the active anon list, and
    are always referenced. If memory fills up, they may end
    up getting moved to the inactive anon list; being referenced
    while on the inactive anon list is enough to get them promoted
    back to the active list.

    New file pages start out on the INACTIVE file list, and
    start their lives not referenced at all. Due to readahead
    extra reads, many file pages may never be referenced.

    Only file pages that are referenced twice make it onto
    the active list.

    This means the inactive file list has to be large enough
    for all the readahead buffers, and give pages enough time
    on the list that frequently accessed ones can get accessed
    twice and promoted.

    http://linux-mm.org/PageReplacementDesign

    --
    All rights reversed


    \
     
     \ /
      Last update: 2012-04-09 20:59    [W:0.021 / U:4.112 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site