[rhelv6-list] testing control groups... how to reset a previously set value limit?

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu Feb 23 12:13:36 UTC 2012


On Wed, Feb 22, 2012 at 6:56 PM, Gianluca Cecchi  wrote:

> On hypervisor:
> # cgget -r blkio.throttle.read_bps_device libvirt/qemu/testvm
> libvirt/qemu/testvm:
> blkio.throttle.read_bps_device: 253:6   5000000
>        253:5   5000000
>        253:3   5000000
>        253:2   5000000
>        253:1   5000000
>        253:0   5000000
>
> Now if I want to reset the values for blkio.throttle.write_bps_device
> to their original ones (so no limit), to have
>
> # cat /cgroup/blkio/libvirt/qemu/testvm/blkio.throttle.write_bps_device
>
> that returns no value, which syntax can I use?
>
> Thanks in advance,
> Gianluca

Ok, I found that for the blkio controller one has to put 0 as the value to reset

SO to reset the limit for write bandwidth for dm-0 device:
echo "253:0 0" >
/cgroup/blkio/libvirt/qemu/testvm/blkio.throttle.write_bps_device

or
cgset -r blkio.throttle.write_bps_device="253:0 0" libvirt/qemu/testvm

Gianluca




More information about the rhelv6-list mailing list