linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Jonathan Morton <chromi@cyberspace.org>
Cc: Rik van Riel <riel@conectiva.com.br>,
	Mark Hahn <hahn@coffee.psychology.mcmaster.ca>,
	linux-mm@kvack.org
Subject: Re: Plain 2.4.5 VM
Date: Wed, 30 May 2001 19:51:03 -0300 (BRT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0105301939480.14444-100000@freak.distro.conectiva> (raw)
In-Reply-To: <l03130306b73b215af2d5@[192.168.239.105]>


On Wed, 30 May 2001, Jonathan Morton wrote:

> >The "getting rid of it" above consists of 2 parts:
> >
> >1) moving the page to the active list, where
> >   refill_inactive_scan will age it
> 
> Ummm...  I don't see any movement of pages to the "active" list in
> try_to_swap_out().

Hum? Increasing the page age will move it to the active list (indirectly,
of course) if it is already a swap cache page.

Otherwise the page will be added to the swapcache (which means it will be
added to the active list). 

> Instead, I see some very direct attempts to push the
> page onto backing store by some means.  In the stock kernel, this is done
> solely on the status of a single bit in the PTE, regardless of page->age or
> it's position on any particular list.

Allocating swap space for a page and adding the page to the swap cache
will not add it to the backing store immediately. 

> IOW, all the fannying around with page->age really has very little (if any)
> effect on the paging behaviour when it matters most - when memory pressure
> is so intense that kswapd is looping. 

Jonathan,

kswapd should never loop in the first place.

We have to limit aging.

With the current behaviour of the kernel, _all_ tasks are aging each
others pages when memory pressure is really high (apart from kswapd
possibly looping).


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

      reply	other threads:[~2001-05-30 22:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.21.0105301613520.13062-100000@imladris.rielhome.conectiva>
2001-05-30 20:01 ` Mark Hahn
2001-05-30 20:35   ` Rik van Riel
2001-05-30 22:41     ` Jonathan Morton
2001-05-30 22:51       ` Marcelo Tosatti [this message]

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.0105301939480.14444-100000@freak.distro.conectiva \
    --to=marcelo@conectiva.com.br \
    --cc=chromi@cyberspace.org \
    --cc=hahn@coffee.psychology.mcmaster.ca \
    --cc=linux-mm@kvack.org \
    --cc=riel@conectiva.com.br \
    /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