From: Olaf Hering <olaf@aepfle.de>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: andrew.cooper3@citrix.com, Jim Fehlig <jfehlig@suse.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
xen-devel@lists.xen.org
Subject: Re: new knob to tweak caching mode for backends
Date: Wed, 28 May 2014 10:53:40 +0200 [thread overview]
Message-ID: <20140528085340.GA29002@aepfle.de> (raw)
In-Reply-To: <alpine.DEB.2.02.1405271806050.4779@kaball.uk.xensource.com>
On Tue, May 27, Stefano Stabellini wrote:
> So I think that as long as we keep the default behaviour sane, we can
> expose whatever advanced options we like.
Its not about changing defaults, but rather provide knobs for the new
features. Now that the backend is qdisk (no idea when this became the
default) qemu is in charge. qemu offers a cache= option, and backends
may honour the value.
libvirt seems to have a 1:1 mapping for the qemu backend, I have to
check if libvirt does any processing or if it passes cache= as is.
Now from libirt->libxl->qemu there is no way to pass cache= because
libxl got no cache= knob while qdisk became the default. Again, I have
to check what the libxl driver in libvirt does if cache= specified, if
its ignored or handled as error.
So with this in mind, will a patch be accepted to add some sort of
"char *cache" member to struct libxl_disk_device? Should it accept all
values libvirt and qemu knows about, or just the few values qdisk can
actually handle (nocache|write-back|directsync)?
In addition to that: the direct-io-safe knob does not only enable AIO it
also changes from write-back to directsync. Qemu has a knob aio=native
and cache= for directsync. Looks like direct-io-safe merges both. Is
that intentional? If libxl gets a cache= option, should it be possible
to specify "direct-io-safe,cache=write-back"?
Olaf
next prev parent reply other threads:[~2014-05-28 8:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 17:06 new knob to tweak caching mode for backends Olaf Hering
2014-05-27 16:50 ` Jim Fehlig
2014-05-27 17:08 ` Stefano Stabellini
2014-05-27 20:18 ` Jim Fehlig
2014-05-28 8:53 ` Olaf Hering [this message]
2014-05-28 11:26 ` Stefano Stabellini
2014-06-10 13:34 ` Ian Jackson
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=20140528085340.GA29002@aepfle.de \
--to=olaf@aepfle.de \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jfehlig@suse.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.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).