From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: "Pan ruochen" <panruochen@gmail.com>
Cc: kosaki.motohiro@jp.fujitsu.com, linux-kernel@vger.kernel.org
Subject: Re: How kernel applies LRU to swap out physical pages?
Date: Tue, 11 Nov 2008 17:58:16 +0900 (JST) [thread overview]
Message-ID: <20081111175417.8B35.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <af0faace0811110022j161d4e26h87f2d9624b9fa494@mail.gmail.com>
Hi
> Hi All,
> I'm reading the linux kernel 2.6.14.
it seems too old.
I recommend to read newest kernel.
> 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.
I recommend to read page_referenced() and its related function :)
prev parent reply other threads:[~2008-11-11 8:58 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
2008-11-11 8:58 ` KOSAKI Motohiro [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=20081111175417.8B35.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=panruochen@gmail.com \
/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®