From: Rik van Riel <H.H.vanRiel@phys.uu.nl>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Linux MM <linux-mm@kvack.org>
Subject: Re: Page cache ageing: yae or nae?
Date: Tue, 28 Jul 1998 18:13:11 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.3.96.980728180533.6846A-100000@mirkwood.dummy.home> (raw)
In-Reply-To: <199807271051.LAA00702@dax.dcs.ed.ac.uk>
On Mon, 27 Jul 1998, Stephen C. Tweedie wrote:
> Could you let me know just what benchmarks you were running when you
> added the first page ageing code to see a speedup? I think we need to
It's not really a benchmark; it's just that mp3s or
quicktimes (played from disk instead of ram) run
smoothly with page aging and skip without.
> look carefully at the properties of the ageing scheme and the simple
> clock algorithm we had before to see where the best compromise is. It
The clock algorithm will throw out the not-yet-used page we
just read-ahead (and which will be needed immediately after
clearing -- cf. Murphy).
An aging (or better, LRU) algorithm will only throw out the
read-ahead page if:
- we don't use it in a larger time
- we have used it and don't use it any more
One of the ideas behind this is that swap I/O is clustered
and often cheaper than filesystem I/O (both are the case on
my system, which is tuned for this).
On systems with a single spindle and the swap partition
_far_ away, both assumptions will obviously break.
Since both types of systems can be found rather often, a
dynamic scheme would probably be best; maybe even a 'cost'
factor on mounting/swapon...
> may be that we can get away with something simple like just reducing
> the initial page age for the page cache, but I'd like to make sure
> that the readahead problems you alluded to are not brought back by any
> other changes we make to the mechanism.
The problem is with balancing, not with balancing memory usage,
but with balancing I/O cost.
I think we should think up a mechanism that both preserves the
readahead performance and balances I/O; memory balancing is a
tertiary issue here...
Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org
next prev parent reply other threads:[~1998-07-28 16:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-27 10:51 Stephen C. Tweedie
1998-07-28 16:13 ` Rik van Riel [this message]
1998-07-29 11:12 ` Stephen C. Tweedie
1998-07-29 18:00 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=Pine.LNX.3.96.980728180533.6846A-100000@mirkwood.dummy.home \
--to=h.h.vanriel@phys.uu.nl \
--cc=linux-mm@kvack.org \
--cc=sct@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