newly add MAP_SYNC flag to mmap