mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Pan ruochen" <panruochen@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: How kernel applies LRU to swap out physical pages?
Date: Tue, 11 Nov 2008 16:22:39 +0800	[thread overview]
Message-ID: <af0faace0811110022j161d4e26h87f2d9624b9fa494@mail.gmail.com> (raw)

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.

-------------
Best Regards,
PRC
Nov 11, 2008

             reply	other threads:[~2008-11-11  8:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11  8:22 Pan ruochen [this message]
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

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=af0faace0811110022j161d4e26h87f2d9624b9fa494@mail.gmail.com \
    --to=panruochen@gmail.com \
    --cc=linux-kernel@vger.kernel.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®