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

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

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -