From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: "David S. Miller" <davem@redhat.com>,
Mike Galbraith <mikeg@wen-online.de>,
Zlatko Calusic <zlatko.calusic@iskon.hr>,
linux-mm@kvack.org
Subject: Re: Background scanning change on 2.4.6-pre1
Date: Fri, 8 Jun 2001 18:10:07 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0106081804080.3343-100000@freak.distro.conectiva> (raw)
In-Reply-To: <Pine.LNX.4.31.0106081526400.1067-100000@penguin.transmeta.com>
On Fri, 8 Jun 2001, Linus Torvalds wrote:
>
>
> On Fri, 8 Jun 2001, Marcelo Tosatti wrote:
> >
> > I've tried that in the past, and the behaviour I got was pages being
> > swapped out with little (or not any) VM pressure.
>
> What is "past"?
>
> Remember: these days we don't do any IO at all inside "swap_out()", the
> _only_ thing we do is to age the VM and possibly move pages to the swap
> cache.
Yes, in the days where we did actual swapouts at page_launder().
> Which is really what you wanted - it's just that we delay moving anonymous
> pages to the swap-cache until we have some reason to (ie we delay it until
> we want to re-fill the inactive list).
>
> Think of it as a simple issue of
> - when we age pages, we should also check whether they've been dirtied by
> being mapped, and whether the mappings have accessed them.
>
> Put that way, I doubt you'll disagree.
I agree.
> (Now, whether it gets the balancing _right_ is another matter altogether.
> We may have to tune the amount of pages that get looked at, both on the VM
> mapping side and on the active/inactive list sides).
>
> We actually always used to do this, it was just that we delayed it until
> the active list scan started failing. Which may have been delaying it too
> much, causing "spikes" of activity.
>
> Or maybe not. I'd like people to explore the balancing space more, instead
> of trying to tune specific parts of the existing balance.
>
> > Yes, we want fair aging. No, we dont want more pages being swapped out.
>
> Absolutely. "swap_out()" does not really swap pages out. The name is
> purely due to historical reasons. It should really be called
> "scan_process_mappings()" or similar.
>
> The actual swap-out obviously happens in page_launder().
Yes. Now the problem is having swap space allocated with _NO_ pressure
may sound a bit weird to people. _I_ know that we're just allocating the
swap space, but not everybody does.
--
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:[~2001-06-08 21:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.31.0106081313500.3244-100000@penguin.transmeta.com>
2001-06-08 19:20 ` Marcelo Tosatti
2001-06-08 21:27 ` David S. Miller
2001-06-08 19:59 ` Marcelo Tosatti
2001-06-08 21:47 ` David S. Miller
2001-06-08 21:51 ` Linus Torvalds
2001-06-08 20:44 ` Marcelo Tosatti
2001-06-08 22:33 ` Linus Torvalds
2001-06-08 21:10 ` Marcelo Tosatti [this message]
2001-06-09 0:12 ` Linus Torvalds
2001-06-09 3:48 ` Rik van Riel
2001-06-09 4:05 ` Linus Torvalds
2001-06-09 3:46 ` Rik van Riel
2001-06-07 18:50 Marcelo Tosatti
2001-06-07 20:43 ` Linus Torvalds
2001-06-07 20:51 ` Linus Torvalds
2001-06-07 19:30 ` Marcelo Tosatti
2001-06-07 21:08 ` Jonathan Morton
2001-06-07 21:05 ` Andreas Dilger
2001-06-09 3:26 ` Rik van Riel
2001-06-07 21:09 ` Andreas Dilger
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.4.21.0106081804080.3343-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=davem@redhat.com \
--cc=linux-mm@kvack.org \
--cc=mikeg@wen-online.de \
--cc=torvalds@transmeta.com \
--cc=zlatko.calusic@iskon.hr \
/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