All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Dustin Kirkland <kirkland@canonical.com>,
	Bernhard Schmidt <berni@birkenwald.de>,
	kvm@vger.kernel.org
Subject: Re: linux-aio usable?
Date: Mon, 08 Mar 2010 18:36:37 +0200	[thread overview]
Message-ID: <4B952795.2040202@redhat.com> (raw)
In-Reply-To: <4B95259F.7060505@codemonkey.ws>

On 03/08/2010 06:28 PM, Anthony Liguori wrote:
>> I thought there was some autodetection involved, but perhaps I just 
>> imagined it.
>
>
> There's no autodetection.
>
> linux-aio support in the kernel downgrades to synchronous IO if the 
> underlying storage does not support linux-aio.  There is no indication 
> to userspace that this has happened.
>
> If this happens, besides having a slow guest, the guest VCPU will be 
> starved during the I/O requests potentially resulting in things like 
> soft lockups and time drift.
>
> Generally, speaking, linux-aio will work well under the following 
> circumstances:
>
>  - cache=off is specified
>  - the underlying file system is XFS or you are using a block device
>
> We cannot detect this reliably though so it's really up to the user to 
> decide whether to use it.  We're working on improving the linux-aio 
> kernel interface though to eliminate this detectability problem after 
> which, we can enable it in a more automatic fashion.

Well, the common case of cache=none on a block device certainly can be 
autodetected.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-03-08 16:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-08  1:46 linux-aio usable? Bernhard Schmidt
2010-03-08  9:10 ` Avi Kivity
2010-03-08  9:48   ` Bernhard Schmidt
2010-03-08  9:48     ` Avi Kivity
2010-03-08 14:25       ` Dustin Kirkland
2010-03-08 14:26         ` Avi Kivity
2010-03-08 16:28           ` Anthony Liguori
2010-03-08 16:36             ` Avi Kivity [this message]
2010-03-08 13:00   ` Christoph Hellwig
2010-03-08 20:11   ` Michael Tokarev
2010-03-08 20:19     ` Michael Tokarev
2010-03-09  9:08       ` Avi Kivity
2010-03-09  9:19         ` Michael Tokarev
2010-03-09 10:05           ` Avi Kivity
2010-03-09 14:12             ` Christoph Hellwig
2010-03-08 21:27   ` Nikola Ciprich
2010-03-08 21:46     ` Brian Jackson
2010-03-09  9:09     ` Avi Kivity

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=4B952795.2040202@redhat.com \
    --to=avi@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=berni@birkenwald.de \
    --cc=kirkland@canonical.com \
    --cc=kvm@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.