Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [netcdfgroup] Wondering about when NetCDF data hits the disk...

Hi,

Back in October, Thomas Orgis raised the issue of what happens when
nf90_sync() (or nc_sync() for the C API) is called: 
> ...
> So, perhaps it boils down to this: What kind of syncing is implied in
> nf90_sync()? It is just internal NetCDF buffers to operating system
> buffers, I presume... so there is no call to the C fsync() function in
> NetCDF, for example? Or is there such a call and our NFS (with ZFS
> behind) setup is simply broken? But then, 'sync' on the command line
> works...
> 
> Can someone enlighten me on the caching/synchronization strategy there?

Thanks to Thomas's testing of our proposed fix, we decided that a when a
writing process calls nc_sync() it should result in a call to fsync()
(or _commit() for Windows) to improve the timeliness of writes for other
reading processes.  This fix is in the upcoming 4.1 release.

--Russ



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: