Closed snoe925 closed 7 years ago
Like I said on the other issue, if you want to use MS_INVALIDATE
, that is a flag for msync
not for madvise
. I don't know what you're telling madvise
to do, but it's not what you expect.
Maybe use madvise MADV_DONTNEED?
Add share invalidate to call madvise MS_INVALIDATE on memory mapped file segment. The intent is to speed up shutdown by avoiding the synchronization of dirty pages to the backing file.