From: "Daniel P. Berrange" <berrange@redhat.com>
To: Samuel Thibault <samuel.thibault@eu.citrix.com>
Cc: Laurent Vivier <Laurent.Vivier@bull.net>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT
Date: Wed, 28 Nov 2007 15:08:20 +0000 [thread overview]
Message-ID: <20071128150820.GC7379@redhat.com> (raw)
In-Reply-To: <20071128143402.GG4083@implementation.uk.xensource.com>
On Wed, Nov 28, 2007 at 02:34:02PM +0000, Samuel Thibault wrote:
> Daniel P. Berrange, le Wed 28 Nov 2007 14:27:39 +0000, a écrit :
> > On Wed, Nov 28, 2007 at 03:02:50PM +0100, Laurent Vivier wrote:
> > > These patches allow to open file using O_DIRECT and bypass the host I/O cache.
> > >
> > > [PATCH 1/2] Add "directio" parameter to "-drive"
> > >
> > > Using "directio=on" with "-drive" will open the disk image
> > > file using "O_DIRECT".
> >
> > I don't see the point in adding a config param for this. If it provides a
> > useful performance improvement (or other benefit) we should enable it by
> > default all the time.
>
> That depends on the mileage of the user. Sometimes it is useful since
> it avoids the duplication of page or buffer cache between the guest and
> the host, sometimes it is not because the guest is not so i/o friendly
> and hence using the host page/buffer cache is useful.
I don't buy that - all OS already do I/O caching because its useful even
on baremetal. As an end-user how do you decide whether to turn on the
directoio=on/off option or not ? Most people won't notice it & will just
run with the default setting - those who do notice are just subjected to
trial-and-error to figure out whether the setting is any use. IMHO, QEMU
should just pick the best setting.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
next prev parent reply other threads:[~2007-11-28 15:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-28 14:02 [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT Laurent Vivier
2007-11-28 14:02 ` [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" Laurent Vivier
2007-11-28 14:02 ` [Qemu-devel] [PATCH 2/2] Direct IDE I/O Laurent Vivier
2007-11-28 14:24 ` [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" Samuel Thibault
2007-11-28 15:00 ` Laurent Vivier
2007-11-28 15:08 ` Samuel Thibault
2007-11-29 9:40 ` Laurent Vivier
2007-11-28 14:27 ` [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT Daniel P. Berrange
2007-11-28 14:34 ` Samuel Thibault
2007-11-28 14:58 ` Anthony Liguori
2007-11-28 15:08 ` Daniel P. Berrange [this message]
2007-11-28 15:17 ` Samuel Thibault
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=20071128150820.GC7379@redhat.com \
--to=berrange@redhat.com \
--cc=Laurent.Vivier@bull.net \
--cc=qemu-devel@nongnu.org \
--cc=samuel.thibault@eu.citrix.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 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).