mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Rik van Riel <riel@redhat.com>
Cc: linux-kernel@vger.kernel.org, Lee.Schermerhorn@hp.com,
	kosaki.motohiro@jp.fujitsu.com
Subject: Re: [PATCH][RFC] evict streaming IO cache first
Date: Tue, 15 Jul 2008 13:48:48 -0700	[thread overview]
Message-ID: <20080715134848.cf2204b9.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080715160948.097b14a4@cuia.bos.redhat.com>

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"!

> 
> 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.

inode blocks tend to be pretty sticky too - this is affected a lot by
whether or not atime updates are enabled.

directory blocks might be less sticky, but that might be what we want
to happen.

> This patch adds logic to skip scanning the anon lists and
> the active file list if most of the file pages are on the
> inactive file list (where streaming IO pages live), while
> at the lowest scanning priority.
> 
> If the system is not doing a lot of streaming IO, eg. the
> system is running a database workload, then more often used
> file pages will be on the active file list and this logic
> is automatically disabled.
> 

  reply	other threads:[~2008-07-15 20:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 20:09 Rik van Riel
2008-07-15 20:48 ` Andrew Morton [this message]
2008-07-15 21:52   ` Rik van Riel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080715134848.cf2204b9.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®