[libvirt] [PATCH 5/8] blkio: Setting throttle blkio cgroup for domain

Daniel P. Berrange berrange at redhat.com
Thu Dec 12 12:24:42 UTC 2013


On Wed, Dec 11, 2013 at 04:29:50PM +0800, Gao feng wrote:
> This patch introduces virCgroupSetBlkioDeviceReadIops,
> virCgroupSetBlkioDeviceWriteIops,
> virCgroupSetBlkioDeviceReadBps and
> virCgroupSetBlkioDeviceWriteBps,
> 
> we can use these interfaces to set up throttle
> blkio cgroup for domain.
> 
> This patch also adds the new throttle blkio cgroup
> elements to the test xml.
> 
> Signed-off-by: Guan Qiang <hzguanqiang at corp.netease.com>
> Signed-off-by: Gao feng <gaofeng at cn.fujitsu.com>
> ---
>  src/libvirt_private.syms                           |   4 +
>  src/lxc/lxc_cgroup.c                               |  27 ++-
>  src/qemu/qemu_cgroup.c                             |  27 ++-
>  src/util/vircgroup.c                               | 224 ++++++++++++++++++++-
>  src/util/vircgroup.h                               |  16 ++
>  .../qemuxml2argv-blkiotune-device.xml              |   8 +
>  6 files changed, 295 insertions(+), 11 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list