From: Anthony Liguori <aliguori@us.ibm.com>
To: "Philip R. Auld" <pauld@egenera.com>
Cc: Steve Dobbelstein <steved@us.ibm.com>, xen-devel@lists.xensource.com
Subject: Re: Shouldn't backend devices for VMX domain disks be opened with O_DIRECT?
Date: Thu, 02 Feb 2006 18:09:11 -0600 [thread overview]
Message-ID: <43E29F27.10009@us.ibm.com> (raw)
In-Reply-To: <20060202224106.GC17266@vienna.egenera.com>
Philip R. Auld wrote:
>Hi,
>
>Rumor has it that on Thu, Feb 02, 2006 at 04:28:37PM -0600 Steve Dobbelstein said:
>
>
>>aliguori@us.ltcfwd.linux.ibm.com wrote on 02/02/2006 03:46:11 PM:
>>
>>
>>
>>>I would doubt it. Since it's usually opening a file, and qemu-dm is
>>>emulating a contigous disk, you probably want the buffer cache to
>>>reorder events.
>>>
>>>
>>I guess we're not usual since our backend is an LVM volume. :)
>>
>>I can appreciate how writing to the buffer cache can speed up the response
>>to the I/O and make it more efficient in its writing to the backend device
>>by reordering events. However, I'm still wondering if we have a data
>>corruption issue should dom0 crash before it writes the data in the buffer
>>cache to disk, data that the domain expects to be on the disk but won't be
>>there when the domain is restarted.
>>
>>
>
>I agree. It sounds like a correctness problem. It's just like disks
>with write caching enabled.
>
>
Referring to the original question, which has been quoted away,
journaling doesn't require that data be written to disk per-say but that
writes occur in a particular order. A journal is always recoverable
given that writes occur in the expected order. A buffer cache will have
no effect on that order so you're no more likely to have corruption than
if you disabled the buffer cache.
You especially want the buffer cache if you have LVM partitions.
Sectors on an LVM disk are not necessarily contiguous and can even span
multiple disks. You definitely want the IO scheduler involved there.
If anything, what you really want (from a performance perspective) is to
disable the buffer cache in the domU and leave it enabled in the dom0
(this is what the paravirtual drivers should be doing IIRC).
Does this address your corruption concerns?
Regards,
Anthony Liguori
>>>Are you seeing a performance improvement? Should be easy to check.
>>>
>>>
>
>It's more about correctness and data integrity than performance.
>
>
>Cheers,
>
>Phil
>
>
>
>
>>We just started doing the first runs of disk performance tests when we
>>noticed this behavior and thought we should bring it up on the list. We
>>don't have enough data points to compare yet. We'll post problems/issues
>>if/when we find them.
>>
>>Steve D.
>>
>>
>>_______________________________________________
>>Xen-devel mailing list
>>Xen-devel@lists.xensource.com
>>http://lists.xensource.com/xen-devel
>>
>>
>
>
>
next prev parent reply other threads:[~2006-02-03 0:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 21:34 Shouldn't backend devices for VMX domain disks be opened with O_DIRECT? Steve Dobbelstein
2006-02-02 21:46 ` Anthony Liguori
2006-02-02 22:28 ` Steve Dobbelstein
2006-02-02 22:41 ` Philip R. Auld
2006-02-03 0:09 ` Anthony Liguori [this message]
2006-02-03 0:31 ` Luciano Miguel Ferreira Rocha
2006-02-03 2:40 ` Rik van Riel
2006-02-03 2:42 ` Stephen Tweedie
2006-02-03 2:50 ` Anthony Liguori
2006-02-03 15:42 ` Stephen C. Tweedie
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=43E29F27.10009@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=pauld@egenera.com \
--cc=steved@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/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.