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

[libvirt] [PATCH v1 rebase 0/6] disable cgroup cpuset



This is merely a rebased version, so still tagged with v1.

The reason to disable cgroup cpuset by default is: currently,
sub-directories of cgroup cpuset won't be auto-updated if
cpu hot-plug happens. For example, if we now have 0-3,5-7 pcpus
online, the value of /sys/fs/cgroup/cpuset/libvirt/qemu/mydom/cpuset.cpus
is 0-3,5-7, then pcpu 4 is hot-plugged, but the value of cpuset.cpus
is still 0-3,5-7. This will cause a problem that we can't pin
to a hot-plugged pcpu.

Users can still enable cpuset by editing qemu.conf.


Hu Tao (6):
  cgroup: Add a flag VIR_CGROUP_DISABLE_CPUSET
  create cgroup controllers for driver according to config
  create cgroup controllers for domain according to config
  create cgroup controllers for vcpu according to config
  create cgroup controllers for emulator according to config
  disable cgroup cpuset by default

 src/lxc/lxc_cgroup.c      |  4 +-
 src/lxc/lxc_driver.c      | 22 +++++------
 src/lxc/lxc_process.c     |  4 +-
 src/qemu/qemu.conf        |  2 +-
 src/qemu/qemu_cgroup.c    | 15 ++++----
 src/qemu/qemu_conf.c      |  1 -
 src/qemu/qemu_driver.c    | 93 ++++++++++++++++++++++++++++++-----------------
 src/qemu/qemu_hotplug.c   |  9 +++--
 src/qemu/qemu_migration.c |  2 +-
 src/util/cgroup.c         | 49 ++++++++++++++++++++-----
 src/util/cgroup.h         | 12 ++++--
 11 files changed, 137 insertions(+), 76 deletions(-)

-- 
1.8.0.1.240.ge8a1f5a


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