Currently if we delete cpuunit (undef), the default value is 100 --- src/PVE/CGroup.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/CGroup.pm b/src/PVE/CGroup.pm index f542b3a..4823be2 100644 --- a/src/PVE/CGroup.pm +++ b/src/PVE/CGroup.pm @@ -465,7 +465,7 @@ sub change_cpu_shares { die "cpu weight (shares) must be in range [1, 10000]\n" if $shares < 1 || $shares > 10000; PVE::ProcFSTools::write_proc_entry("$path/cpu.weight", $shares); } elsif ($ver == 1) { - $shares //= 100; + $shares //= 1024; PVE::ProcFSTools::write_proc_entry("$path/cpu.shares", $shares // $cgroupv1_default); } else { die "bad cgroup version: $ver\n"; -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel