Red Hat Bugzilla – Bug 1172890
the cgroup parameter ‘ControlGroupAttribute’ doesn’t work
Last modified: 2016-04-14 05:04:53 EDT
Description of problem: Using cgroup parameter ‘ControlGroupAttribute=attribute value’, systemd can set various low-level control group parameters exposed by Linux cgroup controllers. But actually this setting doesn’t work. Version-Release number of selected component (if applicable): systemd-208-11 How reproducible: Steps to Reproduce: 1. write a unit file for test like this: # vim /usr/lib/systemd/system/testdd.service Description=dd test [Service] Type=simple ExecStart=/usr/bin/dd if=/dev/sdb of=/dev/null ControlGroupAttribute=memory.swappiness 70 [Install] WantedBy=multi-user.target 2. restart testdd.service unit. # systemctl daemon-reload # systemctl restart testdd.service 3. check that if the pseudo file /sys/fs/cgroup/memory/system.slice/testdd.service/memory.swappiness exist and the value is 70. # cat /sys/fs/cgroup/memory/system.slice/testdd.service/memory.swappiness Actual results: 1. after step3,the pseudo file isn’t created, acutally the control group /memory/system.slice/testdd.service isn’t created. Expected results: 1. after step 3, value of memory.swappiness is set to 70. # cat /sys/fs/cgroup/memory/system.slice/testdd.service/memory.swappiness. 70 Additional info:
This option was removed in 208 From 208 release notes: * As discussed earlier, the low-level cgroup configuration options ControlGroup=, ControlGroupModify=, ControlGroupPersistent=, ControlGroupAttribute= have been removed. Please use high-level attribute settings instead as well as slice units. And some other info http://lwn.net/Articles/555923/