Closed snoe925 closed 7 years ago
Shouldn't this be conditional on a (possibly default) table/share setting? Originally there was a flag for this purpose.
Also, even if MAP_NOSYNC is defined (as on BSD) speedtables isn't using that feature anymore because the boost shared memory API doesn't support it. So this shouldn't be guarded by an ifdef.
I think you want msync
not madvise
(and it probably doesn't do what you want..)
Attempt to avoid Linux syncing dirty pages at process exit by clearing the dirty bit on the pages.