[libvirt] [PATCH 4/8] domain: introduce xml elements for throttle blkio cgroup

Gao feng gaofeng at cn.fujitsu.com
Mon Jan 20 03:29:52 UTC 2014


On 12/12/2013 08:21 PM, Daniel P. Berrange wrote:
> On Wed, Dec 11, 2013 at 04:29:49PM +0800, Gao feng wrote:
>> This patch introduces new xml elements under <blkiotune>,
>> we use these new elements to setup the throttle blkio
>> cgroup for domain. The new blkiotune node looks like this:
>>
>> <blkiotune>
>>   <device>
>>     <path>/path/to/block</path>
>>     <weight>1000</weight>
>>     <read_iops_sec>10000</read_iops_sec>
>>     <write_iops_sec>10000</write_iops_sec>
>>     <read_bytes_sec>1000000</read_bytes_sec>
>>     <write_bytes_sec>1000000</write_bytes_sec>
>>   </device>
>> </blkiotune>
>>
>> Signed-off-by: Guan Qiang <hzguanqiang at corp.netease.com>
>> Signed-off-by: Gao feng <gaofeng at cn.fujitsu.com>
>> ---
>>  docs/schemas/domaincommon.rng | 28 ++++++++++++--
>>  src/conf/domain_conf.c        | 85 +++++++++++++++++++++++++++++++++++++------
>>  src/conf/domain_conf.h        |  4 ++
>>  3 files changed, 103 insertions(+), 14 deletions(-)
> 
> ACK
> 
Pushed, thanks!




More information about the libvir-list mailing list