Skip to content

Commit

Permalink
Merge pull request #10 from miked-mellanox/topic/fix-mmap-mode
Browse files Browse the repository at this point in the history
OSHMEM: fix memheap/sshmem/mmap to use MAP_PRIVATE instead of SHARED to speedup registration
RM-approved
  • Loading branch information
rhc54 committed Oct 7, 2014
2 parents aad74f5 + 90a2e91 commit bb3e8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oshmem/mca/sshmem/mmap/sshmem_mmap_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ segment_create(map_segment_t *ds_buf,
addr = mmap((void *)mca_sshmem_base_start_address,
size,
PROT_READ | PROT_WRITE,
MAP_SHARED |
MAP_PRIVATE |
#if defined(MAP_ANONYMOUS)
MAP_ANONYMOUS |
#endif
Expand Down

0 comments on commit bb3e8dc

Please sign in to comment.