when period is undefined it should be set to 100ms (default value) ===== cpu.cfs_quota_us: the total available run-time within a period (in microseconds) cpu.cfs_period_us: the length of a period (in microseconds) cpu.stat: exports throttling statistics [explained further below]
The default values are: cpu.cfs_period_us=100ms cpu.cfs_quota=-1 ===== see [0] [0]: https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt Signed-off-by: Oguz Bektas <o.bek...@proxmox.com> --- src/PVE/CGroup.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/CGroup.pm b/src/PVE/CGroup.pm index 21681b8..17d2a75 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 //= 100000; # default 100ms = 100000us PVE::ProcFSTools::write_proc_entry("$path/cpu.cfs_period_us", $period); PVE::ProcFSTools::write_proc_entry("$path/cpu.cfs_quota_us", $quota); } else { -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel