Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12294

Is mmap creating from "/dev/zero" never going to set the dirty flag in its "/proc/kpageflags"?

$
0
0

Basically, I just use mmap() to create a memory like standard malloc, because I don't really need it to write the data changes to a file.

However, I expect its dirty page feature which can help me quickly know which pages have been changed so that I can get access to these changes for other purpose, like sending these changes over network, and finally I want to unset the dirty page to monitor a next period of dirty page tracing.

So if a pure-malloc based mmap doesn't record the dirty page flag, it is just useless to my requirement..

BTW, Is there existing solution to satisify my requirement?


Viewing all articles
Browse latest Browse all 12294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>