[systemd-devel] CPUQuota setting is not inherited from systemd slices
Oliver Graute
oliver.graute at gmail.com
Tue Sep 27 15:16:05 UTC 2016
Hello,
I try to limit my CPUQuota for my dnt5411software.slice. But the
services in the slice do not inherit the CPUQuota=20% setting from the
dnt5411software.slice file. They still consume more then 20% of the
CPU.
Some clue whats wrong or missconfigured here? I'am using systemd 225
systemd-cgls
├─dnt5411software.slice
│ ├─startpingproxy.service
│ │ └─699 /dnt/ibis/tools/pingproxy
│ ├─startscm.service
│ │ └─704 /dnt/ibis/scm
│ ├─startstatusproxy.service
│ │ └─712 /dnt/ibis/tools/statusproxy
│ ├─startuartproxy.service
│ │ └─700 /dnt/ibis/tools/uartproxy
│ ├─startprocessproxy.service
│ │ ├─706 /dnt/ibis/tools/processproxy
│ │ ├─722 ./datamgr -scm
│ │ ├─723 ./mobmgr -scm
│ │ ├─724 ./ethmgr -scm
│ │ ├─725 ./modman -scm
│ │ ├─727 ./phpconnector -scm
│ │ ├─728 ./mcmgr -scm
│ │ ├─729 ./smsmgr -scm
│ │ ├─730 ./sshmgr -scm
│ │ └─731 ./ledmgr -scm
│ └─starthalproxy.service
│ └─708 /dnt/ibis/tools/halproxy
cat /etc/systemd/system/dnt5411software.slice
[Unit]
Description=Slices
Documentation=man:systemd.special(7)
Wants=-.slice user.slice
After=-.slice user.slice
[Slice]
CPUAccounting=true
MemoryAccounting=true
BlockIOAccounting=true
#TasksAccounting=true
#CPUShares=512
CPUQuota=20%
systemctl show startprocessproxy.service | grep "CPUQuota"
CPUQuotaPerSecUSec=infinity
Best regards,
Oliver
More information about the systemd-devel
mailing list