All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>,
	prashanth sunder <prashanth.sunder@gmail.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] top(1) utility implementation in QEMU
Date: Tue, 11 Oct 2016 14:09:32 +0100	[thread overview]
Message-ID: <20161011130932.GE14917@redhat.com> (raw)
In-Reply-To: <20161011125101.GG5814@lemon>

On Tue, Oct 11, 2016 at 08:51:01PM +0800, Fam Zheng wrote:
> On Tue, 10/04 09:42, Markus Armbruster wrote:
> > >> What's the advantage over simply using another QMP monitor?  Naturally,
> > >> injecting arbitrary QMP commands behind libvirt's back isn't going to
> > >> end well, but "don't do that then".  Information queries and listening
> > >> to events should be safe.
> > >
> > > In order to avoid a Libvirt "tainted" state at production env, of course
> > > assuming qemu-top is useful there at all.
> > 
> > Adding another QMP-like protocol seems like a rather steep price just
> > for avoiding "tainted".
> > 
> > Any chance we can provide this feature together with libvirt instead of
> > behind its back?
> 
> That would be the best, but I am not sure how to make an appropriate interface.

IMHO the QMP monitor just isn't a good fit for performance monitoring due to
its inherant inefficiency wrt serialization/deserialiation. This is already
a problem with the limitation usage libvirt makes of QMP when we're collecting
data from a number of guests. I also think it is a bad choice for exposing
adhoc debugging facilities too - dynamic instrumentation is far more
flexible as it avoids us having to maintain long term stable QMP schemas
for instrumenting internal, ever changing data structures.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

      reply	other threads:[~2016-10-11 13:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26 13:44 [Qemu-devel] top(1) utility implementation in QEMU prashanth sunder
2016-09-26 16:28 ` Daniel P. Berrange
2016-09-29  2:45   ` Fam Zheng
2016-09-30 17:08     ` Markus Armbruster
2016-10-01 12:12       ` Fam Zheng
2016-10-04  7:42         ` Markus Armbruster
2016-10-11 12:51           ` Fam Zheng
2016-10-11 13:09             ` Daniel P. Berrange [this message]

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=20161011130932.GE14917@redhat.com \
    --to=berrange@redhat.com \
    --cc=armbru@redhat.com \
    --cc=famz@redhat.com \
    --cc=prashanth.sunder@gmail.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 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.