Skip to content

Question:Why the mmap() function needs to use the MAP_SYNC flag? #193

@luchao2424631502

Description

@luchao2424631502

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions