Hello developer, I have a very basic question about why the mmap() function needs to use the MAP_SYNC flag? I have consulted the man manual, and it says that it is necessary to combine CPU instructions to achieve persistent modification of data. Does this mean that the mapped memory bypasses PageCache? I hope to receive your answer.
|
static int PMEM_MAP_FLAGS = MAP_SHARED_VALIDATE | MAP_SYNC; |