]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: add setting throttle blkio cgroup option to blkiotune
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 11 Dec 2013 08:29:51 +0000 (16:29 +0800)
committerGao feng <gaofeng@cn.fujitsu.com>
Mon, 20 Jan 2014 02:52:47 +0000 (10:52 +0800)
commit8bbf1133cef67cade833dd05425181b466090b1d
tree7679978c634cbd63f8283242db8e4df96343f548
parent3b431929a220abd835b7fc8f5e3c66879280499b
virsh: add setting throttle blkio cgroup option to blkiotune

With this patch, user can setup the throttle blkio cgorup
for domain through the virsh cmd, such as:

virsh blkiotune domain1 --device-read-bytes-sec /dev/sda1,1000000,/dev/sda2,2000000
--device-write-bytes-sec /dev/sda1,1000000 --device-read-iops-sec /dev/sda1,10000
--device-write-iops-sec /dev/sda1,10000,/dev/sda2,0

This patch also add manpage for these new options.

Signed-off-by: Guan Qiang <hzguanqiang@corp.netease.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
include/libvirt/libvirt.h.in
tools/virsh-domain.c
tools/virsh.pod