• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue CGroup enabled in a privileged CT - Failed to set cpu.cfs_quota_us

Alban Staehli

Regular Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
18.0.58 Update #2
Hi,

I've just enabled Cgroup on a Plesk instance running in a container in Proxmox.
The CT is privileged. I keep seeing following error messages:
Failed to set cpu.cfs_quota_us on /user.slice/user-****.slice: Invalid argument

And less regularly, the following one:
Failed to reset devices.list on /system.slice/run-user-****.mount:

Would you know what shall be done to avoid recurrent error message?
Thanks.
 
Where do you see the messages? Do they just appear at regular intervals or some action provokes them?
 
Seems to be events handled by the monitoring of usage per subscription.
I can see these appearing just after a "Started Session c**** of use ***".
I also see a lot of "Cannot watch ****, PID is already watched twice".
All of this in the /var/log/messages
 
If I stop the Resource Controller (Cgroups) service via Plesk UI, I can see heaps of these messages appearing in the logs until the service actually stops.
Then these messages do not appear anymore.
 
@kpushkarev here's the output:

Code:
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
 
What's the output of find /sys/fs/cgroup/cpu,cpuacct/user.slice/ -name 'cpu.cfs*' -print -exec cat {} \;?
 
@kpushkarev here it is - thx for your help

Code:
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-30.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-30.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10044.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10044.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10038.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10038.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10074.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10074.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10058.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10058.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10041.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10041.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10009.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10009.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10084.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10084.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10035.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10035.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10019.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10019.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10078.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10078.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10012.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10012.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10071.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10071.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10055.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10055.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10039.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10039.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10022.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10022.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10006.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10006.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-0.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-0.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10081.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10081.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10065.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10065.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10032.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10032.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10016.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10016.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10042.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10042.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10026.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10026.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-997.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-997.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10069.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10069.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10052.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10052.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10036.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10036.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10003.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10003.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10072.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10072.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10007.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10007.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10082.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10082.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10033.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10033.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10017.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10017.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10043.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10043.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10027.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10027.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10010.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10010.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10053.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10053.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10037.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10037.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10020.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10020.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10004.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10004.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10030.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10030.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10083.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10083.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10034.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10034.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10018.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10018.slice/cpu.cfs_quota_us
-1
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10001.slice/cpu.cfs_period_us
100000
/sys/fs/cgroup/cpu,cpuacct/user.slice/user-10001.slice/cpu.cfs_quota_us
-1
 
Did you actually set any CPU limits for subscriptions in Plesk?

Please show the output of the following commands:
Code:
uname -a
hostnamectl status
cat /etc/os-release

Also, could you take some system user ID, e.g. 10001, and run
Code:
echo 100000 > /sys/fs/cgroup/cpu,cpuacct/user.slice/user-10001.slice/cpu.cfs_quota_us
echo -1 > /sys/fs/cgroup/cpu,cpuacct/user.slice/user-10001.slice/cpu.cfs_quota_us
?
 
Back
Top