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
This data would be continually out of date - it's possible the page may be written back after your process sees the page is dirty.
That said, tone way is to map it in one-page chunks, then look at /proc/pid/smaps to see if the chunks are dirty - that said, this may fail if the kernel merges the pages.
Unfortunately, since the page tables aren't visible to the user space process, that's about the best you can do without a kernel patch of some sort.