public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH V2 pve-common 0/4] add generic CGroup module
@ 2020-11-06  8:24 Alexandre Derumier
  2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 1/4] move PVE::LXC::CGroup to PVE::CGroup Alexandre Derumier
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Alexandre Derumier @ 2020-11-06  8:24 UTC (permalink / raw)
  To: pve-devel

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-08 14:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06  8:24 [pve-devel] [PATCH V2 pve-common 0/4] add generic CGroup module Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 1/4] move PVE::LXC::CGroup to PVE::CGroup Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 2/4] Cgroups: remove specific lxc code Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 3/4] bugfix: cpushares : default value is 1024 for cgroup v1 Alexandre Derumier
2020-11-06  8:24 ` [pve-devel] [PATCH V2 pve-common 4/4] systemd: add CPUWeight encoding Alexandre Derumier
2020-11-06  8:31 ` [pve-devel] applied-series: [PATCH V2 pve-common 0/4] add generic CGroup module Thomas Lamprecht
2020-11-08 14:10   ` Alexandre Derumier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal