[pve-devel] cpu.rt_period_us & cpu.rt_runtime_us for 4.3 Container

Victor Velo victor.velo at yahoo.ca
Tue Dec 27 21:39:57 CET 2016


Hello Dietmar,
On the container, I have "CPU Limit" set to 8. But there are none of the two kernel parameters set on the container:ls -al /sys/fs/cgroup/cpu,cpuacct/:
-rw-r--r--  1 root root   0 Dec 27 15:43 cgroup.clone_children-rw-r--r--  1 root root   0 Dec 27 15:07 cgroup.procs-rw-r--r--  1 root root   0 Dec 27 15:43 cpu.cfs_period_us-rw-r--r--  1 root root   0 Dec 27 15:43 cpu.cfs_quota_us-rw-r--r--  1 root root   0 Dec 27 15:43 cpu.shares-r--r--r--  1 root root   0 Dec 27 15:43 cpu.stat-r--r--r--  1 root root   0 Dec 27 15:43 cpuacct.stat-rw-r--r--  1 root root   0 Dec 27 15:43 cpuacct.usage-r--r--r--  1 root root   0 Dec 27 15:43 cpuacct.usage_percpu-rw-r--r--  1 root root   0 Dec 27 15:43 notify_on_release-rw-r--r--  1 root root   0 Dec 27 15:43 tasks
On a Virtual Machine (CentOS 7 64bit), I have these parameters set on the machine:
[root at node1 limits.d]# ls -al /sys/fs/cgroup/cpu,cpuacct/total 0drwxr-xr-x  2 root root   0 Dec 27 10:51 .drwxr-xr-x 12 root root 280 Dec 27 10:51 ..-rw-r--r--  1 root root   0 Dec 27 10:51 cgroup.clone_children--w--w--w-  1 root root   0 Dec 27 10:51 cgroup.event_control-rw-r--r--  1 root root   0 Dec 27 10:51 cgroup.procs-r--r--r--  1 root root   0 Dec 27 10:51 cgroup.sane_behavior-r--r--r--  1 root root   0 Dec 27 10:51 cpuacct.stat-rw-r--r--  1 root root   0 Dec 27 10:51 cpuacct.usage-r--r--r--  1 root root   0 Dec 27 10:51 cpuacct.usage_percpu-rw-r--r--  1 root root   0 Dec 27 10:51 cpu.cfs_period_us-rw-r--r--  1 root root   0 Dec 27 10:51 cpu.cfs_quota_us-rw-r--r--  1 root root   0 Dec 27 10:51 cpu.rt_period_us-rw-r--r--  1 root root   0 Dec 27 10:51 cpu.rt_runtime_us-rw-r--r--  1 root root   0 Dec 27 10:51 cpu.shares-r--r--r--  1 root root   0 Dec 27 10:51 cpu.stat-rw-r--r--  1 root root   0 Dec 27 10:51 notify_on_release-rw-r--r--  1 root root   0 Dec 27 10:51 release_agent-rw-r--r--  1 root root   0 Dec 27 10:51 tasks
====
Thanks,
Victor

 
 

    On Tuesday, December 27, 2016 12:54 PM, Dietmar Maurer <dietmar at proxmox.com> wrote:
 

 
> Someone resolve this issue on Docker by enabling setting the two kernel
> parameters: cpu.rt_period_us &
> cpu.rt_runtime_ushere: https://github.com/docker/docker/pull/23430
> The Questions: What is the easiest way to add these parameters on my ProxMox
> 4.3? Is there some known issue by enabling the kernel to support these two
> parameters?

Those parameters are set by proxmox if you use the cpulimit configuration.


   


More information about the pve-devel mailing list