From: "Pan ruochen" <panruochen@gmail.com>
To: "Peter Zijlstra" <peterz@infradead.org>
Cc: "KOSAKI Motohiro" <kosaki.motohiro@jp.fujitsu.com>,
linux-kernel@vger.kernel.org
Subject: Re: How kernel applies LRU to swap out physical pages?
Date: Wed, 12 Nov 2008 09:36:43 +0800 [thread overview]
Message-ID: <af0faace0811111736o4b6904acx9c25e06d4ebf3421@mail.gmail.com> (raw)
In-Reply-To: <1226403220.7685.1601.camel@twins>
Thanks to all, I've have a study.
2008/11/11 Peter Zijlstra <peterz@infradead.org>:
> On Tue, 2008-11-11 at 18:56 +0900, KOSAKI Motohiro wrote:
>> > On Tue, 2008-11-11 at 16:22 +0800, Pan ruochen wrote:
>> > > Hi All,
>> > > I'm reading the linux kernel 2.6.14. But can't understand how LRU algorithm
>> > > is applied to page swapping. what is the 'USED' of LRU referred to? The
>> > > reference counter which the page is mapped by processes, or the frequency that
>> > > CPU reads/writes in the page. In common sense, the LRU algorithm will be more
>> > > optimal for the second case. But it depends on CPU capability.
>> > > I will be very appreciated if somebody can explain that in details.
>> >
>> > We don't actually use LRU but something like CLOCK.
>
> FWIW in case you hadn't found it yet:
>
> http://en.wikipedia.org/wiki/Page_replacement_algorithm
>
> is a fairly decent page on the subject.
>
next prev parent reply other threads:[~2008-11-12 1:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 8:22 Pan ruochen
2008-11-11 8:57 ` Peter Zijlstra
2008-11-11 9:56 ` KOSAKI Motohiro
2008-11-11 11:33 ` Peter Zijlstra
2008-11-12 1:36 ` Pan ruochen [this message]
2008-11-11 8:58 ` KOSAKI Motohiro
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=af0faace0811111736o4b6904acx9c25e06d4ebf3421@mail.gmail.com \
--to=panruochen@gmail.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
/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
all inboxes | Powered by JetHome®