[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <528CA73B.9070604@profihost.ag>
Date: Wed, 20 Nov 2013 13:12:43 +0100
From: Stefan Priebe - Profihost AG <s.priebe@...fihost.ag>
To: linux-fsdevel@...r.kernel.org
CC: viro@...iv.linux.org.uk, LKML <linux-kernel@...r.kernel.org>,
matthew@....cx
Subject: Why is O_DSYNC on linux so slow / what's wrong with my SSD?
Hello,
while struggling about an application beeing so slow on my SSD and
having high I/O Waits while the app is using the raw block device i've
detected that this is caused by open the block device with O_DSYNC.
I've used dd and fio with oflags=direct,dsync / --direct=1 and --sync=1
and got these "strange" results:
fio --sync=1:
WRITE: io=1694.0MB, aggrb=57806KB/s, minb=57806KB/s, maxb=57806KB/s,
mint=30008msec, maxt=30008msec
fio --sync=0:
WRITE: io=5978.0MB, aggrb=204021KB/s, minb=204021KB/s, maxb=204021KB/s,
mint=30004msec, maxt=30004msec
I get the same results on a crucial m4 as on my intel 530 ssd.
I also tried the same under FreeBSD 9.1 which shows around the same
results for sync=0 as sync=1:
sync=0:
WRITE: io=5984.0MB, aggrb=204185KB/s, minb=204185KB/s, maxb=204185KB/s,
mint=30010msec, maxt=30010msec
sync=1:
WRITE: io=5843.0MB, aggrb=199414KB/s, minb=199414KB/s, maxb=199414KB/s,
mint=30004msec, maxt=30004msec
Can anyone explain to me why O_DSYNC for my app on linux is so slow?
used kernel is vanilla 3.10.19
Thanks!
Greets Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists