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 1255776 - cgset truncates values to command arguments
Summary: cgset truncates values to command arguments
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libcgroup
Version: 6.7
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Nikola Forró
QA Contact: Chao Ye
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-21 14:17 UTC by James Pearson
Modified: 2017-12-06 12:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 11:58:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description James Pearson 2015-08-21 14:17:38 UTC
Description of problem:

cgset truncates the value to set in a cgroup file to 100 characters

Version-Release number of selected component (if applicable):

libcgroup-0.40.rc1-16

How reproducible:

Always

Steps to Reproduce:
1. Create a cpuset cgroup on a box with many logical cores
2. Use cgset to set cpuset.cpus to a list of logical cores - e.g.
cgset -r cpuset.cpus=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47 testgroup
 
3. Run cgget to list cores in cgroup:

cgget -r cpuset.cpus testgroup
testgroup:
cpuset.cpus: 0-35

Actual results:

The value of the argument is truncated at 100 characters - so only (in this case) the first 36 logical cores are assigned to the cgroup

Expected results:

All listed cores assigned to the cgroup (first 48 in this case)

Additional info:

The libcgroup code has a hard limit of 100 characters: CG_VALUE_MAX in include/libcgroup/iterators.h

This value is far too small for machines with many logical cores

A simple patch has been suggested upstream, but nothing has happen with this - see:

http://permalink.gmane.org/gmane.comp.lib.libcg.devel/4350

Comment 2 Nikola Forró 2017-10-05 11:25:10 UTC

*** This bug has been marked as a duplicate of bug 1441163 ***

Comment 3 James Pearson 2017-10-05 11:45:50 UTC
Unfortunately, I don't have access to bug 1441163 ...

Does this mean the problem is/will be fixed?

Comment 4 Nikola Forró 2017-10-05 11:49:56 UTC
Sorry James,

I'm reopening this BZ and I will update it after bug 1441163 gets resolved one way or the other.

Comment 5 Jan Kurik 2017-12-06 11:58:58 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/

Comment 6 Nikola Forró 2017-12-06 12:18:24 UTC
James,

FYI, the issue will be fixed in libcgroup-0.40.rc1-26.el6.


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