lkml.org 
[lkml]   [2009]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectDifferentiating clean and dirty buffer cache pages
From
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


\
 
 \ /
  Last update: 2009-08-26 23:25    [W:0.031 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site