Add mmapshared option to use mmaped files with the MAP_SHARED flag.
authorLogan Gunthorpe <logang@deltatee.com>
Tue, 27 Oct 2015 16:20:53 +0000 (10:20 -0600)
committerLogan Gunthorpe <logang@deltatee.com>
Tue, 27 Oct 2015 16:20:53 +0000 (10:20 -0600)
commit217b0f1dcb6688b38513684be6ff18296372e603
tree1db3ecd41e38117d49e69b073387a9c97e2d5bc1
parentd2235e56057f54fc63ccbf789d4c54f9e99978af
Add mmapshared option to use mmaped files with the MAP_SHARED flag.

This is primarily useful for benchmarking DAX files. If they are mmaped
with the MAP_PRIVATE flag they will still have copy on write semantics
and the test will not actually run against the memory that backs the
DAX file. This memory option allows tests to be constructed that use the
MAP_SHARED flag which allows running directly with the memory backed
by a DAX file.
memory.c
options.c
thread_options.h