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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -