[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH RFC 0/5] support cpu bandwidth in libvirt

I need this feature immediately after CFS bandwidth patchset is merged into
upstream kernel. So I prepare this patchset, and post it here for reviewing
before CFS bandwidth is merged into upstream kernel.

quota is an optional attribute specified in microseconds not a percentage of period.

1. quota should be in the range [1000, 18446744073709551(2^64/1000)] or less than 0.
   But I only limit it less or equal than 2^64/1000. Does anyone have a better
   way to limit quota?

Wen Congyang (5):
  cgroup: Implement cpu.cfs_period_us and cpu.cfs_quota_us tuning API
  Update XML Schema for new entries
  qemu: Implement period and quota tunable XML configuration and
  qemu: Implement cfs_period and cfs_quota's modification
  doc: Add documentation for new cputune elements period and quota

 docs/formatdomain.html.in                       |   19 +++
 docs/schemas/domain.rng                         |   25 ++++-
 src/conf/domain_conf.c                          |   20 +++-
 src/conf/domain_conf.h                          |    2 +
 src/libvirt_private.syms                        |    4 +
 src/qemu/qemu_cgroup.c                          |   43 +++++-
 src/qemu/qemu_driver.c                          |  162 +++++++++++++++++++----
 src/util/cgroup.c                               |   81 +++++++++++-
 src/util/cgroup.h                               |    6 +
 tests/qemuxml2argvdata/qemuxml2argv-cputune.xml |    2 +
 10 files changed, 328 insertions(+), 36 deletions(-)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]