[lkml]   [2001]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] vma limited swapin readahead
    On Thu, 1 Feb 2001, Ingo Oeser wrote:
    > On Thu, Feb 01, 2001 at 02:45:04PM -0200, Rik van Riel wrote:
    > > One solution could be to put (most of) the swapin readahead
    > > pages on the inactive_dirty list, so pressure by readahead
    > > on the resident pages is smaller and the not used readahead
    > > pages are reclaimed faster.
    > Shouldn't they be on inactive_clean anyway?

    No, the inactive_clean pages are reclaimed before the
    other inactive pages, and we want to give all pages
    an equal chance to be used when we put them on the
    inactive list.

    This is especially true for freshly read in swap cache
    pages, because we _expect_ that some of them will be

    > Or do I still not get the new linux mm design? ;-(

    Read mm/swap.c::deactivate_page_nolock(), my decision to
    put all clean inactive pages directly on inactive_clean
    lead to the fact that dirty pages would stick around
    forever and page reclaim could be quite unfair towards
    clean pages. This was changed later to put all inactive
    pages on the inactive_dirty list first and have them
    more fairly reclaimed in page_launder.


    Virtual memory is like a game you can't win;
    However, without VM there's truly nothing to lose...

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:27    [W:0.021 / U:15.176 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site