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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to