On Thu, Sep 04, 2008 at 03:48:11PM +1000, [EMAIL PROTECTED] wrote: > Hi Simo, > > > Please revert this change immediately. That change would slow down tdb > > by a couple of orders or magnitude for our temporary databases. > > actually this will only slow us down each time we attach/detach to the > tdb or we expand it (as expand uses munmap/mmap). I guess the question > is how often we expand our temporary tdb's. > > A simple change would be for this not to apply if TDB_CLEAR_IF_FIRST > is set.
What about changing the MS_SYNC flag in the msync call to MS_ASYNC instead ? That would seem to have the desired effect in that it satifies the (seeming) requirement that msync be called before munmap, but won't block until all writes are finished. Jeremy.
