We experience severe performance lacking while writing to file, opened
with O_SYNC option.
We understand that some performance degradation is normal in this mode,
but on my system it is 200 (hundred !) times slower.
For example on Debian linux, it is just 10-20 times slower on the same
filesystem with the same mount options.
OpenSUSE (10.3) Configuration:
uname -a
Linux vault-13 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686
i686 i386 GNU/Linux
cat /etc/fstab | grep /home
/dev/sda11 /home ext3
acl,user_xattr 1 2
Debian (etch) configuration
uname -a
Linux water 2.6.21-2-686 #1 SMP Wed Jul 11 03:53:02 UTC 2007 i686 GNU/Linux
cat /etc/fstab | grep /home
/dev/sda1 /home ext3 defaults,errors=remount-ro
0 1
I wrote a small program, that I have compiled with OSYNC defined and not
defined:
#define _GNU_SOURCE
#include