From: Anthony Liguori <anthony@codemonkey.ws>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Chris Wright <chrisw@redhat.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] Re: KVM call agenda for Apr 27
Date: Tue, 27 Apr 2010 08:10:01 -0500 [thread overview]
Message-ID: <4BD6E229.60501@codemonkey.ws> (raw)
In-Reply-To: <4BD6A61C.3010100@redhat.com>
On 04/27/2010 03:53 AM, Kevin Wolf wrote:
> Am 27.04.2010 00:36, schrieb Anthony Liguori:
>
>> On 04/26/2010 05:12 PM, Chris Wright wrote:
>>
>>> * Anthony Liguori (anthony@codemonkey.ws) wrote:
>>>
>>>
>>>> On 04/26/2010 12:26 PM, Chris Wright wrote:
>>>>
>>>>
>>>>> Please send in any agenda items you are interested in covering.
>>>>>
>>>>> While I don't expect it to be the case this week, if we have a
>>>>> lack of agenda items I'll cancel the week's call.
>>>>>
>>>>>
>>>> - qemu management interface (and libvirt)
>>>> - stable tree policy (push vs. pull and call for stable volunteers)
>>>>
>>>>
>>> block plug in (follow-on from qmp block watermark)
>>>
>>>
>> A few comments:
>>
>> 1) The problem was not block watermark itself but generating a
>> notification on the watermark threshold. It's a heuristic and should be
>> implemented based on polling block stats. Otherwise, we'll be adding
>> tons of events to qemu that we'll struggle to maintain.
>>
> Polling just feels completely wrong. You're almost guaranteed to poll in
> the wrong intervals because depending on what the guest is doing you
> might need it every couple of seconds (installation) or you may not need
> it in days (just working on a fully allocated image).
>
The event basically boils down to: when some threshold is reached, raise
an event. What statistics go into this computation and what algorithm
is used to compute the threshold depends on the management tool.
The memory ballooning daemon we're developing basically does nothing but
this. It monitors stats from the guest to generate events when we've
reached a certain memory condition that will likely require some action
(like ballooning). Why would we do the block watermarking in qemu and
not do the ballooning heuristics too?
I know of quite a few tools that all do some form of this.
>> 2) A block plugin doesn't solve the problem if it's just at the
>> BlockDriverState level because it can't interact with qcow2.
>>
> There's no interaction with qcow2 needed, it would just need to remember
> the highest offset it was requested to read or write. But I'd really
> hate to stick another protocol between qcow2 and file.
>
> It doesn't solve the problem nicely though because it still needs to
> generate some event which is not present in a normal qemu without the
> plugin.
>
Polling is really the right solution. It gives the management tool
ultimate flexibility in tweaking the heuristics as they see fit.
Regards,
Anthony Liguori
> Kevin
>
next prev parent reply other threads:[~2010-04-27 13:10 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 17:26 [Qemu-devel] KVM call agenda for Apr 27 Chris Wright
2010-04-26 17:51 ` [Qemu-devel] " Anthony Liguori
2010-04-26 22:12 ` Chris Wright
2010-04-26 22:36 ` Anthony Liguori
2010-04-27 8:14 ` Avi Kivity
2010-04-27 8:48 ` Dor Laor
2010-04-27 8:56 ` Avi Kivity
2010-04-27 9:08 ` Dor Laor
2010-04-27 9:22 ` Avi Kivity
2010-04-27 9:32 ` Dor Laor
2010-04-27 9:41 ` Kevin Wolf
2010-04-27 13:15 ` Anthony Liguori
2010-04-27 9:16 ` Kevin Wolf
2010-04-27 9:28 ` Avi Kivity
2010-04-27 13:03 ` Anthony Liguori
2010-04-27 13:08 ` Avi Kivity
2010-04-27 13:11 ` Daniel P. Berrange
2010-04-27 13:15 ` Gleb Natapov
2010-04-27 13:38 ` Daniel P. Berrange
2010-04-27 14:10 ` Gleb Natapov
2010-04-27 8:53 ` Kevin Wolf
2010-04-27 13:10 ` Anthony Liguori [this message]
2010-04-27 13:18 ` Kevin Wolf
2010-04-27 13:21 ` Anthony Liguori
2010-04-27 13:42 ` Kevin Wolf
2010-04-27 13:48 ` Anthony Liguori
2010-04-27 13:58 ` Kevin Wolf
2010-04-27 14:01 ` Anthony Liguori
2010-04-27 11:11 ` Gleb Natapov
2010-04-27 13:00 ` Anthony Liguori
2010-04-27 13:05 ` Gleb Natapov
2010-04-27 13:19 ` Anthony Liguori
2010-04-27 13:29 ` Gleb Natapov
2010-04-27 1:15 ` Luiz Capitulino
2010-04-27 3:39 ` Aurelien Jarno
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=4BD6E229.60501@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=chrisw@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.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).