From: Peter Zijlstra <peterz@infradead.org>
To: Pan ruochen <panruochen@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How kernel applies LRU to swap out physical pages?
Date: Tue, 11 Nov 2008 09:57:25 +0100 [thread overview]
Message-ID: <1226393845.7685.1294.camel@twins> (raw)
In-Reply-To: <af0faace0811110022j161d4e26h87f2d9624b9fa494@mail.gmail.com>
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.
next prev parent reply other threads:[~2008-11-11 8: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 [this message]
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
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=1226393845.7685.1294.camel@twins \
--to=peterz@infradead.org \
--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®