[pve-devel] applied: [PATCH qemu-server] fix #5528: override cgroup methods to call systemd via dbus

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jul 24 14:26:43 CEST 2024


Am 09/07/2024 um 11:10 schrieb Wolfgang Bumiller:
> Systemd reapplies its known values on reload, so we cannot simply call
> into PVE::CGroup. Call systemd's SetUnitProperties method via dbus
> instead.
> 
> The hotplug and startup code also calculated different values, as one
> operated within systemd's value framework (documented in
> systemd.resource-control(5)) and one worked with cgroup values
> (distinguishing between cgroup v1 and v2 manually).
> 
> This is now unified by overriding `change_cpu_quota()` and
> `change_cpu_shares()` via `PVE::QemuServer::CGroup` which now takes
> systemd-based values and sends those directly via dbus.
> 
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  PVE/QemuServer.pm        |  4 ++--
>  PVE/QemuServer/CGroup.pm | 51 +++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 52 insertions(+), 3 deletions(-)
> 
>

applied, thanks!




More information about the pve-devel mailing list