All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: kwolf@redhat.com, uril@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event
Date: Tue, 09 Mar 2010 17:46:41 -0600	[thread overview]
Message-ID: <4B96DDE1.7040703@codemonkey.ws> (raw)
In-Reply-To: <20100309202203.37faa8fa@redhat.com>

On 03/09/2010 05:22 PM, Luiz Capitulino wrote:
> On Tue, 09 Mar 2010 17:08:33 -0600
> Anthony Liguori<anthony@codemonkey.ws>  wrote:
>
>    
>> On 03/09/2010 04:53 PM, Luiz Capitulino wrote:
>>      
>>>    Hi,
>>>
>>>    This series is based on a previous series submitted by Uri Lublin:
>>>
>>> http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg00864.html
>>>
>>>    Details on the patches, except for this question: does it make sense to have
>>> a 'low' watermark for block devices?
>>>
>>>    I think it doesn't, then the event (and the monitor accompanying command)
>>> should be called BLOCK_HIGH_WATERMARK. But this makes the event very
>>> unflexible, so I have called it BLOCK_WATERMARK and added parameters for the
>>> high/low watermark type.
>>>
>>>        
>> The alternative way to implement this is for a management tool to just
>> poll the allocated disk size periodically.
>>
>> It's no more/less safe than generating an event on a "watermark" because
>> the event is still racy with respect to a guest that's writing very
>> quickly to the disk.
>>      
>   The argument against polling is not only about possible races, but
> it's something very inefficient to do as the condition you're polling
> for may never happen but you're wasting cpu resources for it.
>    

No, you just move the polling into qemu in the block I/O path.  It's now 
"polling" for whether a watermark has been hit.

The problem with this functionality is that it's extremely tied to a 
very specific management policy.  It's not at all generic.

Polling is an entirely legitimate thing for a management tool to do and 
we shouldn't introduce events that don't make sense just to avoid polling.

Regards,

Anthony Liguori

  parent reply	other threads:[~2010-03-09 23:46 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
2010-03-09 23:46     ` Anthony Liguori [this message]
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=4B96DDE1.7040703@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=kwolf@redhat.com \
    --cc=lcapitulino@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 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.