How to know whether a copy-on-write page is an actual copy?
问题 When I create a copy-on-write mapping (a MAP_PRIVATE) using mmap, then some pages of this mapping will be copied as soon as I write to specific addresses. At a certain point in my program I would like to figure out which pages have actually been copied. There is a call, called 'mincore', but that only reports whether the page is in memory or not, which is not the same as the page being copied or not. Is there some way to figure out which pages have been copied ? 回答1: Good, following the