RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1172890 - the cgroup parameter ‘ControlGroupAttribute’ doesn’t work
Summary: the cgroup parameter ‘ControlGroupAttribute’ doesn’t work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1327082
TreeView+ depends on / blocked
 
Reported: 2014-12-11 02:42 UTC by Jinli Li
Modified: 2016-04-14 09:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1327082 (view as bug list)
Environment:
Last Closed: 2014-12-11 06:35:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jinli Li 2014-12-11 02:42:29 UTC
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 06:35:42 UTC
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.