Can the dirtiness of pages of a mmap be found from userspace?

Posted by chrisdew on Stack Overflow See other posts from Stack Overflow or by chrisdew
Published on 2010-06-17T09:52:48Z Indexed on 2010/06/17 10:23 UTC
Read the original article Hit count: 209

Filed under:
|
|
|
|

Can dirtiness of pages of a (non-shared) mmap be accessed from userspace under linux 2.6.30+? Platform-specific hacks and kludges welcome.

Ideally, I'm looking for an array of bits, one per page (4kB?) of the mmap'ed region, which are set if that page has been written to since the region was mmap'ed.

(I am aware, that the process doing the writing could keep track of this information - but it seems silly to do so if the kernel is doing it anyway.)

Thanks,

Chris.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c