X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCGroup.pm;h=dd9b034c5872eca57292b3a13abae7e5a11d16c5;hp=21681b88a8626bc785f885ae8499362ce5518c46;hb=d37a71867233a09803e825f0249a1c7df8be25a0;hpb=d94f7005cee0677d186f67b5641cd4a96824477c;ds=sidebyside diff --git a/src/PVE/CGroup.pm b/src/PVE/CGroup.pm index 21681b8..dd9b034 100644 --- a/src/PVE/CGroup.pm +++ b/src/PVE/CGroup.pm @@ -467,8 +467,8 @@ sub change_cpu_quota { PVE::ProcFSTools::write_proc_entry("$path/cpu.max", 'max'); } } elsif ($ver == 1) { - $quota //= -1; # unlimited - $period //= -1; + $quota //= -1; # default (unlimited) + $period //= 100_000; # default (100 ms) PVE::ProcFSTools::write_proc_entry("$path/cpu.cfs_period_us", $period); PVE::ProcFSTools::write_proc_entry("$path/cpu.cfs_quota_us", $quota); } else {