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

前端 未结 5 524
感动是毒
感动是毒 2020-12-15 07:36

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

5条回答
  •  星月不相逢
    2020-12-15 08:04

    generic_writepages and balance_dirty_pages_ratelimited_nr appear to be the entry points into the kernel (2.6.20) that are related to dirty pages. I hope they work in 2.6.30+ as well. Interesting question, can I ask what you are writing that requires such control over the pages?

提交回复
热议问题