lkml.org 
[lkml]   [2008]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][RFC] evict streaming IO cache first
On Tue, 15 Jul 2008 13:48:48 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:
> On Tue, 15 Jul 2008 16:09:48 -0400
> Rik van Riel <riel@redhat.com> wrote:
>
> > This patch still needs some testing under various workloads
> > on different hardware - the approach should work but the
> > threshold may need tweaking.
>
> More than "some"!

Agreed. In my initial testing this patch seems to bring the
behaviour of the kernel closer to the behaviour the old VM
had, but it certainly needs lots and lots of testing!

> > When there is a lot of streaming IO going on, we do not want
> > to scan or evict pages from the working set. The old VM used
> > to skip any mapped page, but still evict indirect blocks and
> > other data that is useful to cache.
>
> I'd be surprised if indirect blocks are getting kicked - they tend to
> be awfully sticky due to frequent touch_buffer()s or equivalent.

If you rewrite a large enough file, they get kicked. This
has become noticable some time between 2.6.9 and 2.6.18, but
I don't think we can point to any particular changeset that
caused it - and even if we do, chances are it does more good
than harm :)

--
All Rights Reversed


\
 
 \ /
  Last update: 2008-07-15 23:55    [W:0.047 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site