RE: syncing large mmaped files

2012-10-18 Thread Tristan Verniquet
On Thu, Oct 18, 2012 at 09:39:34AM -0400, John Baldwin wrote: > > > On Thursday, October 18, 2012 4:35:37 am Konstantin Belousov wrote: > > > > On Thu, Oct 18, 2012 at 10:08:22AM +1000, Tristan Verniquet wrote: > > > > > > > > > > I want to work

RE: syncing large mmaped files

2012-10-18 Thread Tristan Verniquet
Thu, Oct 18, 2012 at 10:08:22AM +1000, Tristan Verniquet wrote: > > > > > > I want to work with large (1-10G) files in memory but eventually sync > > > them back out to disk. The problem is that the sync process appears to > > > lock the file in kernel for t

syncing large mmaped files

2012-10-17 Thread Tristan Verniquet
I want to work with large (1-10G) files in memory but eventually sync them back out to disk. The problem is that the sync process appears to lock the file in kernel for the duration of the sync, which can run into minutes. This prevents other processes from reading from the file (unless they al