flightaware / speedtables

Speed tables is a high-performance memory-resident database. The speed table compiler reads a table definition and generates a set of C access routines to create, manipulate and search tables containing millions of rows. Currently oriented towards Tcl.
https://flightaware.github.io/speedtables/
BSD 3-Clause "New" or "Revised" License
66 stars 15 forks source link

Add share invalidate command #66

Closed snoe925 closed 7 years ago

snoe925 commented 7 years ago

Add share invalidate to call madvise MS_INVALIDATE on memory mapped file segment. The intent is to speed up shutdown by avoiding the synchronization of dirty pages to the backing file.

mutability commented 7 years ago

Like I said on the other issue, if you want to use MS_INVALIDATE, that is a flag for msync not for madvise. I don't know what you're telling madvise to do, but it's not what you expect.

resuna commented 7 years ago

Maybe use madvise MADV_DONTNEED?