From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kosaki.motohiro@jp.fujitsu.com,
Pan ruochen <panruochen@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: How kernel applies LRU to swap out physical pages?
Date: Tue, 11 Nov 2008 18:56:55 +0900 (JST) [thread overview]
Message-ID: <20081111180233.8B38.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <1226393845.7685.1294.camel@twins>
> 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.
Yup.
However, VM replace algorithm folks commonly call it to "LRU"
because MACH call so.
IOW, it is historical reason word, shouldn't imazine strict
"Least Recently Used" algorithm.
next prev parent reply other threads:[~2008-11-11 9:57 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 [this message]
2008-11-11 11:33 ` Peter Zijlstra
2008-11-12 1:36 ` Pan ruochen
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=20081111180233.8B38.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=panruochen@gmail.com \
--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®