Re: configure test for a mmap flag

2005-05-30 Thread Steve Kargl
On Mon, May 30, 2005 at 11:17:34PM +0200, Florian Weimer wrote: > * Steve Kargl: > > > I need to add a configure test to determine if MAP_NOSYNC is > > present. > > What about "#ifdef MAP_NOSYNC" in the code? Or do you invoke mmap > directly from Fortran? There are sometimes too many TREEs (pun

Re: configure test for a mmap flag

2005-05-30 Thread Florian Weimer
* Steve Kargl: > I need to add a configure test to determine if MAP_NOSYNC is > present. What about "#ifdef MAP_NOSYNC" in the code? Or do you invoke mmap directly from Fortran?

configure test for a mmap flag

2005-05-30 Thread Steve Kargl
gfortran uses mmap for its IO if an OS has mmap. If found, mmap is used with the MAP_SHARED flag. On linux (and other OS's) this seems to be okay, but on FreeBSD IO can significantly degrade if a file pre-exists. In some testing I've done, linux's MAP_SHARED appears to be equivalent to FreeBSD's