Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1172890 - the cgroup parameter ‘ControlGroupAttribute’ doesn’t work
the cgroup parameter ‘ControlGroupAttribute’ doesn’t work
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
7.0
x86_64 Linux
unspecified Severity high
: rc
: ---
Assigned To: systemd-maint
qe-baseos-daemons
:
Depends On:
Blocks: 1327082
  Show dependency treegraph
 
Reported: 2014-12-10 21:42 EST by Jinli Li
Modified: 2016-04-14 05:04 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1327082 (view as bug list)
Environment:
Last Closed: 2014-12-11 01:35:42 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jinli Li 2014-12-10 21:42:29 EST
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:
Comment 2 Lukáš Nykrýn 2014-12-11 01:35:42 EST
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/

Note You need to log in before you can comment on or make changes to this bug.