public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
From: Roger Larsson <roger.larsson@norran.net>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-mm@kvack.org
Subject: Re: [patch] page aging and deferred swapping for 2.4.0-test1
Date: Fri, 26 May 2000 15:32:45 +0200	[thread overview]
Message-ID: <392E7CFD.C9017833@norran.net> (raw)
In-Reply-To: Pine.LNX.4.21.0005251936390.7453-100000@duckman.distro.conectiva

Rik van Riel wrote:
> 
> Hi,
> 
> the attached patch attempts to implement the following two
> things (which we'll probably want in the active/inactive
> design later on):
> - page aging (for active pages)
> - deferred swap IO, with only unmapping in try_to_swap_out()
> 
> The patch still crashes, but maybe one of you has an idea
> on what's wrong and/or even how to fix it ;)
> 
> regards,
> 
> Rik
> --
> The Internet is not a network of computers. It is a network
> of people. That is its real strength.
> 
> Wanna talk about the kernel?  irc.openprojects.net / #kernelnewbies
> http://www.conectiva.com/               http://www.surriel.com/
> 


The aging code can not be correct.
		if (PageTestandClearReferenced(page)) {
			page->age += 3;
			if (page->age > 10)
				page->age = 0;
			goto dispose_continue;
		}
		page->age--;

		if (page->age)
			goto dispose_continue;

I would say it should be:

		if (PageTestandClearReferenced(page)) {
			page->age += 3;
			if (page->age > 10)
				page->age = 10;
			goto dispose_continue;
		}

		if (page->age && priority)  // at zero priority ignore age
			goto dispose_continue;

		page->age--;

/RogerL


Home page:
  http://www.norran.net/nra02596/
--
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.eu.org/Linux-MM/

  parent reply	other threads:[~2000-05-26 13:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-25 23:03 [patch] page aging and deferred swapping for 2.4.0-test1 Rik van Riel
2000-05-25 23:48 ` Neil Schemenauer
2000-05-26 13:32 ` Roger Larsson [this message]
2000-05-26 13:41   ` Rik van Riel
2000-05-26 14:59 ` Roger Larsson
2000-05-26 15:16   ` 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=392E7CFD.C9017833@norran.net \
    --to=roger.larsson@norran.net \
    --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