From: Anupama Chandwani <anupama.chandwani@gmail.com>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: Krishna Raj Raja <krraja@vmware.com>, vrajesh@vmware.com
Subject: Differentiating clean and dirty buffer cache pages
Date: Wed, 26 Aug 2009 14:22:24 -0700 [thread overview]
Message-ID: <689eb3470908261422u50e59d9ex1a3c43fdc2f3d4e8@mail.gmail.com> (raw)
Hi,
I need to get stats about what pages in the buffer cache are clean versus dirty.
I traverse the page_tree pointer of the radix tree of each open file
to get all buffer cache pages.
To identify dirty pages, I think of doing the following:
Level 1. Do a gang lookup in radix tree for PAGECACHE_TAG_DIRTY tag,
Level 2. Check the PTE of buffer cache pages for bit 6(D)
I want to know if checking these two data structures will give me a
complete list of all the dirty pages in the buffer cache?
--
Cheers,
Anupama Chandwani
reply other threads:[~2009-08-26 21:22 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=689eb3470908261422u50e59d9ex1a3c43fdc2f3d4e8@mail.gmail.com \
--to=anupama.chandwani@gmail.com \
--cc=akpm@osdl.org \
--cc=krraja@vmware.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=vrajesh@vmware.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®