mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 02:42:04 +00:00
fix removing cpulimit on running vm
like in pve-container: 04a62bd ("fix #3506: config: fix removing the cpulimit of a running CT") reported in the forums (no bug# yet): https://forum.proxmox.com/threads/issue-with-removing-cpu-limit-from-running-vm.97799/ note that this will break CGv1 without the following fix installed: https://git.proxmox.com/?p=pve-common.git;a=commitdiff;h=d37a71867 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Tested-by: Oguz Bektas <o.bektas@proxmox.com> Reviewed-by: Oguz Bektas <o.bektas@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
90b20b152c
commit
25de70ae59
@ -4745,7 +4745,7 @@ sub vmconfig_hotplug_pending {
|
||||
} elsif ($opt eq 'cpuunits') {
|
||||
$cgroup->change_cpu_shares(undef, 1024);
|
||||
} elsif ($opt eq 'cpulimit') {
|
||||
$cgroup->change_cpu_quota(-1, 100000);
|
||||
$cgroup->change_cpu_quota(undef, undef); # reset, cgroup module can better decide values
|
||||
} else {
|
||||
die "skip\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user