From: Luiz Capitulino <lcapitulino@redhat.com>
To: Dietmar Maurer <dietmar@proxmox.com>
Cc: "mdroth@linux.vnet.ibm.com" <mdroth@linux.vnet.ibm.com>,
"aliguori@us.ibm.com" <aliguori@us.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"agl@us.ibm.com" <agl@us.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v2 0/3] re-enable balloon stats
Date: Mon, 17 Dec 2012 09:52:24 -0200 [thread overview]
Message-ID: <20121217095224.3e616fb6@doriath.home> (raw)
In-Reply-To: <24E144B8C0207547AD09C467A8259F75578B33BF@lisa.maurer-it.com>
On Sat, 15 Dec 2012 07:19:13 +0000
Dietmar Maurer <dietmar@proxmox.com> wrote:
> > - drop qmp & hmp interface of old stats code
>
> I think the old interface is not that bad (the new one is clumsy, because
> we need 6 qmp call instead of one to get all stats). Can't
> we try to make it functional and keep it?
No, because it breaks existing clients and that's why it's disabled since
qemu 0.12 or so.
Let me try once more to explain our options and why I think this is series
is our best choice.
Basically, we have try options:
1. Add stats to query-balloon
This breaks existing clients, because query-balloon is a synchronous command
that returns immediately. If we add stats to it (as we did) then it will
have to wait for the guest to respond, which can take a long time or even
doesn't happen at all if the guest is paused.
This broke libvirt, as explained here:
https://bugzilla.redhat.com/show_bug.cgi?id=623903
2. Add a new command that just request the stats to be sent (ie. it doesn't
block), and then get the stats through an event
This was my last proposal:
http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg00983.html
This sort of worked, but it has two problems. First, events can be lost.
Second, most failures can't be synchronously reported.
3. Add stats through device properties (this series)
While this isn't perfect, it does solve the issues with previous
implementations. Besides, it has the advantage of avoiding adding new
commands and it integrates nicely with the balloon driver, making some
errors automatically reported (eg. if the balloon is not enabled).
> Seriously, I think 'interval' should be a property we can pass at qemu
> startup. Then we can simply use the old interface to get cached values.
What if you want to change the interval or even set it case it wasn't set?
You'll need a new command. Any different behavior we want to add will require
a new command. Which is one of your own complaints against this series.
> I also do not understand you argument that you can't use the old
> interface because it was synchrounous -
Explained above.
> removing the old interface is also
> not compatible ;-)
It's not, for two reasons. First, all fields are optional. Second, this was
never in a stable release (or was disabled right after the release).
next prev parent reply other threads:[~2012-12-17 11:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 15:49 [Qemu-devel] [PATCH v2 0/3] re-enable balloon stats Luiz Capitulino
2012-12-14 15:49 ` [Qemu-devel] [PATCH 1/3] balloon: drop old stats code & API Luiz Capitulino
2012-12-17 10:13 ` Dietmar Maurer
2012-12-17 11:57 ` Luiz Capitulino
2012-12-17 12:23 ` Dietmar Maurer
2012-12-17 12:33 ` Luiz Capitulino
2012-12-17 12:36 ` Dietmar Maurer
2012-12-17 12:39 ` Luiz Capitulino
2012-12-18 21:34 ` Eric Blake
2012-12-19 5:18 ` Dietmar Maurer
2012-12-19 11:27 ` Luiz Capitulino
2012-12-20 18:36 ` Eric Blake
2012-12-14 15:49 ` [Qemu-devel] [PATCH 2/3] balloon: re-enable balloon stats Luiz Capitulino
2012-12-14 15:49 ` [Qemu-devel] [PATCH 3/3] docs: document virtio-balloon stats Luiz Capitulino
2012-12-15 7:19 ` [Qemu-devel] [PATCH v2 0/3] re-enable balloon stats Dietmar Maurer
2012-12-17 11:52 ` Luiz Capitulino [this message]
2012-12-17 12:17 ` Dietmar Maurer
2012-12-17 12:22 ` Luiz Capitulino
2012-12-17 12:26 ` Dietmar Maurer
2012-12-17 12:38 ` Luiz Capitulino
2012-12-17 12:39 ` Dietmar Maurer
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=20121217095224.3e616fb6@doriath.home \
--to=lcapitulino@redhat.com \
--cc=agl@us.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=dietmar@proxmox.com \
--cc=mdroth@linux.vnet.ibm.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).