Re: Why is fsync so much slower than O_SYNC?
From: Jeffrey Siegal
Date: Thu Mar 18 2004 - 11:36:59 EST
Some odd results on ext2 as well:
README: Make sure you have turned off hardware write caching (hdparm -W0
/dev/hda for IDE)
O_SYNC:
Creating
Starting
iter = 1000, latency = 8.419908ms
O_DSYNC:
Creating
Starting
iter = 1000, latency = 8.369892ms
fsync:
Creating
Starting
iter = 1000, latency = 13.191030ms
fdatasync:
Creating
Starting
iter = 1000, latency = 8.829373ms
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/