LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Emre Can Sezer" <ecsezer@ncsu.edu>
To: linux-kernel@vger.kernel.org
Cc: ecsezer@ncsu.edu
Subject: Question about page frame management in x86_64
Date: Thu, 30 Oct 2008 17:49:58 -0400 (EDT)	[thread overview]
Message-ID: <1819.152.14.92.134.1225403398.squirrel@webmail.ncsu.edu> (raw)

Hi,

For my research I'm trying to keep track of which pages belong to an LKM.
I use linux-2.6.26.

When the module is first loaded, the virtual memory region (ffff ffff a000
0000) maps to a set of page frames, which I track.  Later on (after all
the modules have loaded), these same pages are returned by
get_free_pages(), before they are released.  At this point, the page table
entries have also changed.  I observe this for all modules.  Since the
modules haven't exited, I can only assume that the pages are relocated. 
However, neither free_more_memory() is called nor balance_pgdat() reclaims
any pages.  They aren't freed via any of the __free_pages() family of
functions either.  What could be relocating these pages and which
functions would be responsible for it?

Thanks in advance,

John

PS.  I'm not subscribed to the mailing list, so please CC to me.  Thanks.

                 reply	other threads:[~2008-10-30 22:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1819.152.14.92.134.1225403398.squirrel@webmail.ncsu.edu \
    --to=ecsezer@ncsu.edu \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: Question about page frame management in x86_64' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).