Dirty pages counting



Hello:

Just a simple curiosity question to the people:

I'm writing a very simple kernel module (for 2.6) which will walk
through the page table structure of a process and count all the dirty
pages there (http://fxr.watson.org/fxr/ident?
v=linux-2.4.22;i=PageDirty). This number used to be available in the
stat file, but it is set to 0 in 2.6 kernel. The hardware this stuff
is running on doesn't have any backing store, so all the used pages
just sit in RAM until the process exits.

The effect that I'm observing is that for some processes this module
just returns zero as the dirty page count, but returns a normal number
for others. The result is very consistent for every measurement (it is
not timing dependent). If this hardware had the backing store, then
perhaps it could be possible, but this is a cell phone with FLASH and
no backing is allowed.

Does anyone have any ideas why this effect may occur? A process should
have at least one dirty page for the stack segment.

Thank you,
-Ilya.

.



Relevant Pages

  • Re: [ANNOUNCE] Ramback: faster than a speeding bullet
    ... Why - your chunks simply become a linked list in write barrier order. ... Note that half a TB worth of dirty ramdisk chunks will need 1 GB of ... before going to backing store you don't have the internal consistency ... As a block device it is very flexible, and as a block device it is ...
    (Linux-Kernel)
  • Re: [PATCH] clear PageError bit in msync & fsync
    ... but the dirty bit won't be. ... be effectively "disconnected" from the backing store until someone ... be reclaimed under memory pressure ... The only difference with my patch is, ...
    (Linux-Kernel)
  • Re: [PATCH] clear PageError bit in msync & fsync
    ... be effectively "disconnected" from the backing store until someone ... Just an off the top of my head crazy idea... ... Could you leave the error bit set on the page and treat it as a dirty ... The general idea would be to leave the error set unless an explicit ...
    (Linux-Kernel)
  • Re: [PATCH] clear PageError bit in msync & fsync
    ... On 11/09/2010 04:21 PM, Zan Lynx wrote: ... be effectively "disconnected" from the backing store until someone ... Could you leave the error bit set on the page and treat it as a dirty ... and the VM could get filled with PageError pages and be unable ...
    (Linux-Kernel)