linux - Replacing multiple fdatasync() calls with a single sync() call -


i have application thousands of files being updated. periodically application needs commit changes disk, , calling fdatasync(), takes significant amount of time (minutes). [reducing number of files being written not option me.]

at same time, noticed if ran sync command command line, return faster. documentation seems guarantee pending writes reached disk.

the question is: sync() system call give same (or stronger) durability guarantees multiple fdatasync() calls? if not, there way fsync() multiple file descriptors in 1 call?


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -