I'm re-building a server that needs to do awfully lot of I/O to complete the task. Is there a way to tell Linux to temporarily ignore all sync()
, syncfs()
and fdatasync()
from any processes? I think the rebuilding would complete faster if I never wait for storage to flush caches until once when I finally unmount the storage.
I'm hoping something like
mount -o remount,nosync /path/to/mount/point
but obviously nosync
does not exist (only sync
and async
).
I know about some hacks with LD_LIBRARY_PATH
to override those syscalls but is there anything system wide that I can activate when processes have already been started?
I understand that using such a feature would force me to restart from the start if power is interrupted or the system crashes. I would happily take my changes during the rebuild process.