linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Song Jiang <sjiang@lanl.gov>
Cc: Rik van Riel <riel@redhat.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Clock-Pro
Date: Thu, 03 Nov 2005 23:15:22 +0100	[thread overview]
Message-ID: <1131056122.18825.173.camel@twins> (raw)

Hi Song Jiang,


I implemented the things I talked about, they can be found here:
  http://programming.kicks-ass.net/kernel-patches/clockpro/

However I have the strong feeling I messed up the approximation, hence I
have tried to extract a state table for the original algorithm from the
paper but I find some things not quite obvious. Could you help me
complete this thing:


res | h/c | tst | ref || Hcold | Hhot | Htst || Flt
----+-----+-----+-----++-------+------+------++-----
 0  |  0  |  0  |  1  ||       |      |      || 1010
 0  |  0  |  1  |  0  ||=0010  |  X   |  X   || 
 0  |  0  |  1  |  1  ||       |      |      || 1100
 1  |  0  |  0  |  0  ||  X    |  X   |=1000 ||
 1  |  0  |  0  |  1  || 1000  | 100? | 100? ||
 1  |  0  |  1  |  0  ||=1010  | 0010 | 1000 ||
 1  |  0  |  1  |  1  || 1100  | 101? | 100? ||
 1  |  1  |  0  |  0  ||=1100  | 10?0 |=1100 || 
 1  |  1  |  0  |  1  || 110?  | 1100 | 110? || 


res := resident
h/c := hot/cold
tst := test period
ref := referenced

H* := resulting state after specified hand passed,
      where prefix '=' designated no change and
      'X' designates remove from list.

      '?' are uncertain, please help.

Flt := pagefault column; nonresident and referenced.
       state after fault.


Kind regards,

Peter Zijlstra

-- 
Peter Zijlstra <a.p.zijlstra@chello.nl>

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2005-11-03 22:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 22:15 Peter Zijlstra [this message]
2005-11-07  7:39 ` Clock-Pro Song Jiang

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=1131056122.18825.173.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=linux-mm@kvack.org \
    --cc=riel@redhat.com \
    --cc=sjiang@lanl.gov \
    /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