linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* aio: Question about durability guarantees
@ 2016-07-12  9:42 Ilya Lantukh
  2016-07-12 12:00 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Ilya Lantukh @ 2016-07-12  9:42 UTC (permalink / raw)
  To: linux-fsdevel

Hi all,

We are considering to use libaio in our project as an optional
alternative to Java NIO. Our goal is to improve performance while
maintaining durability.

We have performed tests on different storage devices. Files were
opened with flags: O_WRONLY | O_DIRECT | O_DSYNC. However, on some SSD
devices O_DSYNC causes io_submit() to block until operation is
finished, which is not acceptable in our case.

The question is: do libaio writes with only WRONLY | O_DIRECT flags
provide any durability guarantees? Can I be sure that after
io_getevents() returns an event indicating successful write the data
is actually flushed to persistent storage?

Thanks!

-- 
Best regards,
Ilya

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-12 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12  9:42 aio: Question about durability guarantees Ilya Lantukh
2016-07-12 12:00 ` Christoph Hellwig
2016-07-12 13:02   ` Ilya Lantukh
2016-07-12 15:11     ` Jeff Moyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).