qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 9/9] throttle: add name of ThrottleGroup to Bloc


From: Alberto Garcia
Subject: Re: [Qemu-devel] [PATCH 9/9] throttle: add name of ThrottleGroup to BlockDeviceInfo
Date: Wed, 25 Feb 2015 16:37:12 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Feb 25, 2015 at 08:23:10AM -0700, Eric Blake wrote:

> >> Is there a command that can return the list of all throttle group
> >> names?
> > 
> > Not currently, but I think I can add one easily. Any suggestion
> > for the name of the command, and for the data that you would like
> > it to return?
> 
> How about query-block-throttle, returning an array of dicts.  Ideas
> for what it could contain would be the name of the block group, its
> current settings, and the node names associated with the group.
> Maybe something like:
> 
> => { "execute":"query-block-throttle" }
> <= { "return": [
>      { "name": "throttle1", "bps_max": 100000,
>        "nodes": [ "block0", "block1" ] },
>      { "name": "throttle2", "iops_max": 10000,
>        "nodes": [ "block2" ] }
>    ] }

Sounds reasonable, I think it should be easily doable, I can give it a
try.

One thing to note, not that it's directly related to group throttling,
but as far as I'm aware the current throttling code cannot be used in
arbitrary nodes, only in the root (block_set_io_throttle receives a
device name).

Berto



reply via email to

[Prev in Thread] Current Thread [Next in Thread]