• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Resource usage limitations

j00m

New Pleskian
I'm trying to set resource usage limits for service plans and noticed that CPU settings are not available but RAM and disk I/O settings are.

Server is running CentOS 7.3 and for some reason cpu controller is not supported.
Any ideas how to get it enabled?

Code:
# plesk sbin resctrl --features
{"cpu": false, "cpuacct": true, "memory": true, "blkio": true, "vhosts_blkio": true}


However, cpu cgroup seems to be defined in kernel

Code:
# column -t /proc/cgroups
#subsys_name  hierarchy  num_cgroups  enabled
cpuset        3          1            1
cpu           4          68           1
cpuacct       4          68           1
memory        9          68           1
devices       5          68           1
freezer       8          1            1
net_cls       7          1            1
blkio         6          68           1
net_prio      7          1            1
 
Is it VPS or physical server? Note that Control Groups are supported in Plesk on Virtuozzo 6 and Virtuozzo 7. Plesk on Virtuozzo 7 supports all the limits, Plesk on Virtuozzo 6 supports only the limit on RAM usage.
Depending on your operating system, not all the described limits might be available. If kernel was updeted for CentOS 7.3, there may be some kind of changes related to "cpu" feature.
 
It is a physical server. I have also tested with CentOS 7.2 and CPU limit was not enabled on that either.
 
Maybe you have custom kernel? Not from OS vendor? For correct 'cpu' feature operation it should be compiled with CONFIG_FAIR_GROUP_SCHED option and kernel scheduler should be CFQ.
Make sure that you have files:

/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us
/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_period_us
/sys/fs/cgroup/cpu,cpuacct/cpu.stat
 
I checked the kernel and it was indeed customised. It was compiled with CONFIG_FAIR_GROUP_SCHED option and after adding CONFIG_CFS_BANDWIDTH CPU-settings appeared in UI. However, kernel scheduler defaults to deadline as the server has SSD disks so does the cgroups still work as expected if I stick with deadline scheduler?
 
Back
Top