[libvirt] [PATCH 2/2] qemu: amend existing table of device weights

Eric Blake eblake at redhat.com
Wed Nov 30 19:20:42 UTC 2011


On 11/29/2011 07:37 PM, Hu Tao wrote:
> On Tue, Nov 29, 2011 at 02:11:44PM -0700, Eric Blake wrote:
>> Prior to this patch, for a running dom, the commands:
>>
>> $ virsh blkiotune dom --device-weights /dev/sda,502,/dev/sdb,498
>> $ virsh blkiotune dom --device-weights /dev/sda,503
>> $ virsh blkiotune dom
>> weight         : 500
>> device_weight  : /dev/sda,503
>>
>> claim that /dev/sdb no longer has a non-default weight, but
>> directly querying cgroups says otherwise:
>>
>> $ cat /cgroup/blkio/libvirt/qemu/dom/blkio.weight_device
>> 8:0     503
>> 8:16    498
>>
>> After this patch, an explicit 0 is required to remove a device path
>> from the XML, and omitting a device path that was previously
>> specified leaves that device path untouched in the XML, to match
>> cgroups behavior.
>>
> 
> ACK.

Thanks; series pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111130/f770c5ce/attachment-0001.sig>


More information about the libvir-list mailing list