[libvirt] [PATCH 0/3] Add complete blkiotune support for per-device with blkio cgroup

hzguanqiang at corp.netease.com hzguanqiang at corp.netease.com
Fri Oct 25 02:54:14 UTC 2013


Hi, guys,

I've developed some patches to support setting device iops and bps with blkio cgroup,
by extending the existed 'domainSetBlkioParameters' and 'domainGetBlkioParameters'
interface. Please help me to review the patches and give me your expertise.

Thanks very much.

On 2013-10-24 16:18 , Guan Qiang wrote:
From: Guan Qiang <hzguanqiang at corp.netease.com>

The patches add a complete blkiotune support per-device with blkio cgroup 
for both lxc or qemu driver, by extending the existed 'domainSetBlkioParameters' 
and 'domainGetBlkioParameters' interface. 
Beside device weight, read/write bps and iops throttle can be set per-device
with these patches.
Virsh command 'blkiotune' is extended to support the above function too.

Guan Qiang (3):
  qemu: add blkiotune support for device iops and bps throttle setting
  lxc: add blkiotune support for per device
  blkiotune: add virsh support for blkiotune interface

docs/formatdomain.html.in                          |    8 +
docs/schemas/domaincommon.rng                      |   28 +-
include/libvirt/libvirt.h.in                       |   40 ++
src/conf/domain_conf.c                             |  115 ++-
src/conf/domain_conf.h                             |   16 +-
src/libvirt_private.syms                           |    4 +-
src/lxc/lxc_cgroup.c                               |    9 +-
src/lxc/lxc_driver.c                               |  743 +++++++++++++++++++-
src/qemu/qemu_cgroup.c                             |   10 +-
src/qemu/qemu_driver.c                             |  579 +++++++++++++--
src/util/vircgroup.c                               |   79 ++-
src/util/vircgroup.h                               |    8 +-
.../qemuxml2argv-blkiotune-device.xml              |    4 +
tools/virsh-domain.c                               |   64 ++
tools/virsh.pod                                    |   32 +-
15 files changed, 1614 insertions(+), 125 deletions(-)

-- 
1.7.9.5



------------------     
Best regards!
GuanQiang
10:44:00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131025/9ccde3fd/attachment-0001.htm>


More information about the libvir-list mailing list