Is there a way to make fsync operations on Linux a no-op, ideally just for a single directory or mount point?

I am running some software which unfortunately I cannot modify which is doing excessive syncs. I don't care about robustness in the event of a system crash (we will re-format if that happens and start over).

I have looked through the mount options for xfs and ext4, and couldn't find anything that looked like it would make fsync a no-op.

I have also considered using tmpfs instead of a regular filesystem, and using the available disk as additional swap. I'm hoping for a neater option using a filesystem.


1 Answer 1


If you don't care about your FS robuestness you can use the nobarrier mount option.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.