From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: kwolf@redhat.com, hch@lst.de, Alexander Graf <agraf@suse.de>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] Add cache=volatile parameter to -drive
Date: Wed, 26 May 2010 08:50:40 -0500 [thread overview]
Message-ID: <4BFD2730.8000006@codemonkey.ws> (raw)
In-Reply-To: <4BFD1CC7.4080807@redhat.com>
On 05/26/2010 08:06 AM, Avi Kivity wrote:
> On 05/17/2010 03:58 PM, Anthony Liguori wrote:
>> On 05/17/2010 05:14 AM, Alexander Graf wrote:
>>> Usually the guest can tell the host to flush data to disk. In some
>>> cases we
>>> don't want to flush though, but try to keep everything in cache.
>>>
>>> So let's add a new cache value to -drive that allows us to set the
>>> cache
>>> policy to most aggressive, disabling flushes. We call this mode
>>> "volatile",
>>> as guest data is not guaranteed to survive host crashes anymore.
>>>
>>> This patch also adds a noop function for aio, so we can do nothing
>>> in AIO
>>> fashion.
>>>
>>> Signed-off-by: Alexander Graf<agraf@suse.de>
>>
>> I'd like to see some performance data with at least an ext3 host file
>> system and an ext4 file system.
>>
>> My concern is that ext3 exaggerates the cost of fsync() which will
>> result in diminishing value over time for this feature as people move
>> to ext4/btrfs.
>>
>
> In fact, btrfs is currently unusable for virt because O_SYNC writes
> inflate a guest write to a host write. by a huge factor (50x-100x).
> cache=writethrough is 100% unusable, cache=writeback is barely
> tolerable. As of 2.6.32, cache=volatile is probably required to get
> something resembling reasonable performance on btrfs.
>
> Of course, we expect that btrfs will improve in time, but still it
> doesn't seem to be fsync friendly.
So you're suggesting that anyone who uses virt on btrfs should be
prepared to deal with data corruption on host failure? That sounds to
me like btrfs isn't ready for real workloads.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2010-05-26 13:50 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 10:14 [Qemu-devel] [PATCH] Add cache=volatile parameter to -drive Alexander Graf
2010-05-17 10:42 ` [Qemu-devel] " Kevin Wolf
2010-05-17 12:58 ` Anthony Liguori
2010-05-17 13:02 ` Alexander Graf
2010-05-17 13:09 ` Anthony Liguori
2010-05-17 13:17 ` Alexander Graf
2010-05-17 13:26 ` Anthony Liguori
2010-05-17 14:04 ` Alexander Graf
2010-05-17 14:22 ` Alexander Graf
2010-05-17 15:16 ` Anthony Liguori
2010-05-17 16:23 ` Paul Brook
2010-05-17 16:26 ` Anthony Liguori
2010-05-17 16:28 ` Alexander Graf
2010-05-17 20:07 ` Jamie Lokier
2010-05-18 7:42 ` Kevin Wolf
2010-05-25 17:59 ` Alexander Graf
2010-05-25 18:48 ` Anthony Liguori
2010-05-25 19:01 ` Alexander Graf
2010-05-26 13:09 ` Avi Kivity
2010-05-25 21:01 ` Aurelien Jarno
2010-05-26 1:31 ` Anthony Liguori
2010-05-26 8:43 ` Kevin Wolf
2010-05-26 13:42 ` Anthony Liguori
2010-05-26 14:03 ` Kevin Wolf
2010-05-26 14:08 ` Anthony Liguori
2010-05-26 14:26 ` Kevin Wolf
2010-05-26 14:13 ` Aurelien Jarno
2010-05-26 8:52 ` Aurelien Jarno
2010-05-26 9:16 ` Kevin Wolf
2010-05-26 13:48 ` Anthony Liguori
2010-05-26 14:12 ` Aurelien Jarno
2010-05-26 14:19 ` Anthony Liguori
2010-05-26 15:40 ` Aurelien Jarno
2010-05-26 16:11 ` Anthony Liguori
2010-05-26 14:27 ` Paolo Bonzini
2010-05-26 13:06 ` Avi Kivity
2010-05-26 13:50 ` Anthony Liguori [this message]
2010-05-26 15:13 ` Avi Kivity
2010-05-17 15:11 ` Anthony Liguori
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=4BFD2730.8000006@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=agraf@suse.de \
--cc=avi@redhat.com \
--cc=hch@lst.de \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.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 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).