[libvirt] [PATCH 0/6] support to set cpu bandwidth for hypervisor threads

Wen Congyang wency at cn.fujitsu.com
Wed Apr 25 09:40:33 UTC 2012


Currently, we only can set cpu bandwidth for vcpu. If the hypervisor threads
consume too much cpu time, it may affect the vcpu.

This patchset allows the user to control the cpu bandwidth for hypervisor
threads. It does not change the behavior if the cpu bandwidth for hypervisor
is unlimited.

Wen Congyang (6):
  Introduce the function virCgroupForHypervisor
  introduce the function virCgroupMoveTask()
  create a new cgroup and move all hypervisor threads to the new cgroup
  Update XML Schema for new entries
  qemu: Implement hypervisor's period and quota tunable XML
    configuration and parsing
  qemu: Implement hypervisor_period and hypervisor_quota's modification

 docs/schemas/domaincommon.rng |   10 ++
 include/libvirt/libvirt.h.in  |   16 +++
 src/conf/domain_conf.c        |   25 +++++-
 src/conf/domain_conf.h        |    2 +
 src/libvirt_private.syms      |    1 +
 src/qemu/qemu_cgroup.c        |   94 +++++++++++++++--
 src/qemu/qemu_cgroup.h        |    2 +
 src/qemu/qemu_driver.c        |  220 +++++++++++++++++++++++++++++++++++-----
 src/qemu/qemu_process.c       |    4 +
 src/util/cgroup.c             |   97 ++++++++++++++++++
 src/util/cgroup.h             |    6 +
 11 files changed, 436 insertions(+), 41 deletions(-)




More information about the libvir-list mailing list