Skip to content

Commit bb3e8dc

Browse files
author
rhc54
committed
Merge pull request #10 from miked-mellanox/topic/fix-mmap-mode
OSHMEM: fix memheap/sshmem/mmap to use MAP_PRIVATE instead of SHARED to speedup registration RM-approved
2 parents aad74f5 + 90a2e91 commit bb3e8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/mca/sshmem/mmap/sshmem_mmap_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ segment_create(map_segment_t *ds_buf,
185185
addr = mmap((void *)mca_sshmem_base_start_address,
186186
size,
187187
PROT_READ | PROT_WRITE,
188-
MAP_SHARED |
188+
MAP_PRIVATE |
189189
#if defined(MAP_ANONYMOUS)
190190
MAP_ANONYMOUS |
191191
#endif

0 commit comments

Comments
 (0)