[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, Stephen C. Tweedie wrote:
    > On Thu, Feb 01, 2001 at 08:53:33AM -0200, Marcelo Tosatti wrote:
    > > On Thu, 1 Feb 2001, Stephen C. Tweedie wrote:
    > >
    > > If we're under free memory shortage, "unlucky" readaheads will be harmful.
    > I know, it's a balancing act. But given that even one
    > successful readahead per read will halve the number of swapin
    > seeks, the performance loss due to the extra scavenging has got
    > to be bad to outweigh the benefit.

    But only when the extra pages we're reading in don't
    displace useful data from memory, making us fault in
    those other pages ... causing us to go to the disk
    again and do more readahead, which could potentially
    displace even more pages, etc...

    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.

    (and with the size of the inactive list being 1 second worth
    of page steals, those pages still have a good chance of being
    used before they're being recycled)


    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.020 / U:30.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site