Does the CPUQuota work on global/non-user services?

I have service created for a non-root user configured under ~/.config/systemd/system/test.service.
I run the service in user session with the following command
systemd --user start test.service.
I am trying to contain the cpu utilization for the service with
CPUQuota=20% in my test.service file
When create this service as root user under /etc/systemd/system/
i am able to see the service process contained under 20 percent of cpu utilization but, when i run this servie in user space as non root user the service process are not contained.

I am on opensuse leap 15.5
kernel:Linux 5.14.21-150500.55.68
systemd:systemd 249 (249.17+suse.218.g2cb4d40f1c)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.