All of lore.kernel.org
 help / color / mirror / Atom feed
From: M vd S <mvds.00@gmail.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: O_NONBLOCK is NOOP on block devices
Date: Wed, 10 Mar 2010 18:09:44 +0100	[thread overview]
Message-ID: <4B97D258.7060702@gmail.com> (raw)
In-Reply-To: <x494oko5n2o.fsf@segfault.boston.devel.redhat.com>

On 3/10/10 2:21 PM, Jeff Moyer wrote:
> M vd S <mvds.00@gmail.com> writes:
>   
>> I also briefly tried aio_* and the libaio interface. The former is not
>> really asynchronous - all requests are put in one separate thread
>> where they will be executed in order, i.e. blocking, so you don't get
>> any advantage from NCQ or data that was cached by the disk or the
>> kernel. The latter apparently ends in an io_submit() which will block
>> until all queued reads are finished, but I might have missed something
>> there.
>>     
>
> What you missed is that the native aio system calls require O_DIRECT.
>   

Thanks, that made it work. It seems without O_DIRECT it's just like 
aio_* but without the separate thread. But I now get the "benefits" of 
O_DIRECT for free...

Cheers,
M.


  reply	other threads:[~2010-03-10 17:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4B904D98.50602@gmail.com>
2010-03-05  1:39 ` O_NONBLOCK is NOOP on block devices M vd S
2010-03-05 16:03   ` Jeff Moyer
2010-03-05 19:43     ` Mike Hayward
2010-03-10  0:50   ` M vd S
2010-03-10 13:21     ` Jeff Moyer
2010-03-10 17:09       ` M vd S [this message]
     [not found]         ` <201003102350.o2ANousd007794@alien.loup.net>
     [not found]           ` <4B983E88.5080901@gmail.com>
     [not found]             ` <4B983E88.5080901-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-03-11  7:41               ` Mike Hayward
2010-03-11  7:41                 ` Mike Hayward
2010-03-03  8:26 Mike Hayward
2010-03-03 11:50 ` Alan Cox
2010-03-03 19:49   ` Mike Hayward
2010-03-03 21:25     ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B97D258.7060702@gmail.com \
    --to=mvds.00@gmail.com \
    --cc=jmoyer@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.