[pve-devel] [PATCH V2 pve-common 0/4] add generic CGroup module

Alexandre Derumier aderumier at odiso.com
Fri Nov 6 09:24:51 CET 2020


This move Cgroup module from LXC to pve-common,
to be able to use it in qemu-server too.
(and add support for cgroupv2 only for qemu)

I have also included a bugfix for cpushares from cgroup v1,
when value is not defined,it's currently set to 100 instead 1024.
(can be trigerred by pct --delete cpuunits)


Changelog v2:

- keep get_subdir in base class

Alexandre Derumier (4):
  move PVE::LXC::CGroup to PVE::CGroup
  Cgroups: remove specific lxc code
  bugfix: cpushares : default value is 1024 for cgroup v1
  systemd: add CPUWeight encoding

 src/Makefile       |   1 +
 src/PVE/CGroup.pm  | 551 +++++++++++++++++++++++++++++++++++++++++++++
 src/PVE/Systemd.pm |   2 +-
 3 files changed, 553 insertions(+), 1 deletion(-)
 create mode 100644 src/PVE/CGroup.pm

-- 
2.20.1





More information about the pve-devel mailing list