qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Capitulino <lcapitulino@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: kwolf@redhat.com, uril@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event
Date: Wed, 10 Mar 2010 18:02:38 -0300	[thread overview]
Message-ID: <20100310180238.6fc85df3@redhat.com> (raw)
In-Reply-To: <4B96DFFD.3010507@codemonkey.ws>

On Tue, 09 Mar 2010 17:55:41 -0600
Anthony Liguori <anthony@codemonkey.ws> wrote:

> On 03/09/2010 05:25 PM, Luiz Capitulino wrote:
> >   Also note that this applies for other events and if this becomes the
> > standard mode of operation, the end result is that we're delegating
> > event generation for the management tools.
> >    
> 
> We will end up with hundreds of events if we implement this sort of 
> thing for every management tool.
> 
> There's a significant difference between a VNC connect event and a "high 
> watermark" event.
> 
> A client connects and disconnects relatively infrequently.  They are 
> absolute events and are likely to trigger some action.  A management 
> tool could poll but generally speaking, generating a notification has 
> wide valid.
> 
> A "high watermark" event is an event that occurs because one statistic 
> that we track hit a very simple condition: stat > THRESHOLD.  But as the 
> commit message alludes to, why is stat > THRESHOLD interesting and stat 
> < THRESHOLD not interesting?

 Well, maybe we need to define a criteria for what should be an
event and what shouldn't then? Or what should be done by QEMU and
what should be done by the management tool?

 Also, would be good to hear from management tool people (that's
usually libvirt people) what they think about doing this kind of
thing by polling.

 That said, we can't do that for this specific case as explained by
Kevin.

> Moreover, why isn't SUM(stat[0..n]) > THRESHOLD not the truly 
> interesting event?  It's because in this instance, a very specific 
> management tool happens to implement a heuristic based on stat > 
> THRESHOLD.  However, a different management tool is likely to implement 
> a significantly different heuristic.  This isn't limited to the block 
> device.
> 
> A good example is the recent balloon statistics information.  We're 
> implementing a daemon that periodically polls the balloon driver using a 
> rather sophisticated set of conditions to take actions.  You could make 
> the same argument that we should push those heuristics into QEMU which 
> would mean that daemon wouldn't need to exist.
> 
> Management tools are going to have to poll statistics from QEMU to 
> implement heuristics.  It's not something we can hide in events.
> 
> Regards,
> 
> Anthony Liguori

  reply	other threads:[~2010-03-10 21:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 22:53 [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event Luiz Capitulino
2010-03-09 22:53 ` [Qemu-devel] [PATCH 1/3] block-qcow2: keep highest allocated offset Luiz Capitulino
2010-03-09 22:53 ` [Qemu-devel] [PATCH 2/3] monitor: Introduce block_watermark command Luiz Capitulino
2010-03-09 22:53 ` [Qemu-devel] [PATCH 3/3] QMP: Introduce BLOCK_WATERMARK event Luiz Capitulino
2010-03-09 23:03 ` [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event Anthony Liguori
2010-03-09 23:18   ` Luiz Capitulino
2010-03-09 23:08 ` Anthony Liguori
2010-03-09 23:22   ` Luiz Capitulino
2010-03-09 23:25     ` Luiz Capitulino
2010-03-09 23:55       ` Anthony Liguori
2010-03-10 21:02         ` Luiz Capitulino [this message]
2010-03-09 23:46     ` Anthony Liguori
2010-03-10  8:40   ` Kevin Wolf
2010-03-10 21:09     ` Luiz Capitulino
2010-03-10 21:20     ` Anthony Liguori
2010-03-11  8:34       ` Kevin Wolf
2010-03-11 14:19         ` Anthony Liguori
2010-03-11 14:58           ` Avi Kivity
2010-03-11 15:07             ` Anthony Liguori
2010-03-11 15:09               ` Avi Kivity
2010-03-11 16:16           ` Kevin Wolf
2010-03-10  8:33 ` [Qemu-devel] " Kevin Wolf
2010-03-10  9:28   ` Christoph Hellwig
2010-03-10 21:11     ` Luiz Capitulino

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=20100310180238.6fc85df3@redhat.com \
    --to=lcapitulino@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=uril@redhat.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).