From: Andrew Morton <akpm@digeo.com>
To: Rik van Riel <riel@conectiva.com.br>
Cc: William Lee Irwin III <wli@holomorphy.com>,
sfkaplan@cs.amherst.edu, linux-mm@kvack.org
Subject: Re: [PATCH] modified segq for 2.5
Date: Mon, 09 Sep 2002 12:55:56 -0700 [thread overview]
Message-ID: <3D7CFCCC.1A6A686A@digeo.com> (raw)
In-Reply-To: <Pine.LNX.4.44L.0209091622470.1857-100000@imladris.surriel.com>
Rik van Riel wrote:
>
> On Mon, 9 Sep 2002, Andrew Morton wrote:
> > Rik van Riel wrote:
> > > On Mon, 9 Sep 2002, Andrew Morton wrote:
> > >
> > > > I fiddled with it a bit: did you forget to move the write(2) pages
> > > > to the inactive list? I changed it to do that at IO completion.
> > > > It had little effect. Probably should be looking at the page state
> > > > before doing that.
> > >
> > > Hmmm indeed, I forgot this. Note that IO completion state is
> > > too late, since then you'll have already pushed other pages
> > > out to the inactive list...
> >
> > OK. So how would you like to handle those pages?
>
> Move them to the inactive list the moment we're done writing
> them, that is, the moment we move on to the next page. We
> wouldn't want to move the last page from /var/log/messages to
> the inactive list all the time ;)
That's easy.
> > > > The inactive list was smaller with this patch. Around 10%
> > > > of allocatable memory usually.
> > >
> > > It should be a bit bigger than this, I think. If it isn't
> > > something may be going wrong ;)
> >
> > Well the working set _was_ large. Sure, we'll be running refill_inactive
> > a lot. But spending some CPU in there with this sort of workload is the
> > right thing to do, if it ends up in better replacement decisions. So
> > it doesn't seem to be a problem per-se?
>
> OK, in that case there's no problem. If the working set
> really does take 90% of RAM that's a good thing to know ;)
The working set appears to be 100.000% of RAM, hence the wild
swings in throughput when you give or take half a meg.
> > Generally, where do you want to go with this code?
>
> If this code turns out to be more predictable and better
> or equal performance to use-once, I'd like to see it in
> the kernel. Use-once seems just too hard to tune right
> for all workloads.
>
gack. How do we judge that, without waiting a month and
measuring the complaint level? (Here I go again).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
next prev parent reply other threads:[~2002-09-09 19:56 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-15 14:24 Rik van Riel
2002-09-09 9:38 ` Andrew Morton
2002-09-09 11:40 ` Ed Tomlinson
2002-09-09 17:10 ` William Lee Irwin III
2002-09-09 18:58 ` Andrew Morton
2002-09-09 13:10 ` Rik van Riel
2002-09-09 19:03 ` Andrew Morton
2002-09-09 19:25 ` Rik van Riel
2002-09-09 19:55 ` Andrew Morton [this message]
2002-09-09 20:03 ` Rik van Riel
2002-09-09 20:51 ` Andrew Morton
2002-09-09 20:57 ` Andrew Morton
2002-09-09 21:09 ` Rik van Riel
2002-09-09 21:52 ` Andrew Morton
2002-09-09 22:41 ` Rik van Riel
2002-09-10 0:17 ` Daniel Phillips
2002-09-09 22:49 ` William Lee Irwin III
2002-09-09 22:54 ` Rik van Riel
2002-09-09 23:32 ` William Lee Irwin III
2002-09-09 23:53 ` Rik van Riel
2002-09-09 22:46 ` Daniel Phillips
2002-09-09 22:58 ` Andrew Morton
2002-09-09 23:40 ` William Lee Irwin III
2002-09-10 0:02 ` Andrew Morton
2002-09-10 0:21 ` William Lee Irwin III
2002-09-10 1:13 ` Andrew Morton
2002-09-10 1:50 ` Daniel Phillips
2002-09-10 2:02 ` 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=3D7CFCCC.1A6A686A@digeo.com \
--to=akpm@digeo.com \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
--cc=sfkaplan@cs.amherst.edu \
--cc=wli@holomorphy.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