* Differentiating clean and dirty buffer cache pages
@ 2009-08-26 21:22 Anupama Chandwani
0 siblings, 0 replies; only message in thread
From: Anupama Chandwani @ 2009-08-26 21:22 UTC (permalink / raw)
To: linux kernel mailing list, Linus Torvalds, Andrew Morton
Cc: Krishna Raj Raja, vrajesh
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-26 21:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-26 21:22 Differentiating clean and dirty buffer cache pages Anupama Chandwani
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®