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 961646 - user(s) processes are not moved into the group at login time + cgred restart segfault
Summary: user(s) processes are not moved into the group at login time + cgred restart ...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libcgroup
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jan Chaloupka
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
: 961648 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-10 07:37 UTC by lejeczek
Modified: 2014-08-04 12:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-04 12:06:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description lejeczek 2013-05-10 07:37:09 UTC
Description of problem:

it seems cgred service starts at boot but each subsequent restart results in segfault
also, more! importantly processes initiated by a user declared in rules are not being acted upon when user logins in

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

libcgroup-0.37-7.el6.x86_64
pam-1.1.1-13.el6.x86_64
2.6.32-358.2.1.el6.x86_64

How reproducible:

mount {
  cpu = /cgroup/cpu;
  cpuset  = /cgroup/cpuset;
  cpuacct = /cgroup/cpuacct;
  memory  = /cgroup/memory;
  devices = /cgroup/devices;
  freezer = /cgroup/freezer;
  net_cls = /cgroup/net_cls;
  blkio = /cgroup/blkio;
}

group . {
  perm {
    task {
      uid = root;
      gid = root;
    }
    admin {
      uid = root;
      gid = root;
    }
  }
}

group limit {
  memory {
    memory.limit_in_bytes = 15G;
  }
  cpuset {
    cpuset.cpus = "5";
    cpuset.mems = 0;
  }
}

and

aUser memory,cpuset  limit/


Steps to Reproduce:
1.
2.
3.
  
Actual results:

declared users are not confined/controlled

Expected results:

when user logs in all processes should be move into the cgroup


Additional info:

Comment 2 lejeczek 2013-05-10 10:39:27 UTC
cgrulesengd[4202]: segfault at 0 ip 000000345b081321 sp 00007fffbbe2a168 error 4 in libc-2.12.so[345b000000+18a000]

Comment 3 lejeczek 2013-05-10 11:29:24 UTC
libcgroup-0.37-7.1.el6.x86_64 seems to fix above problem but!

at boot time services fail, both

Starting cgconfig service: Failed to parse /etc/cgconfig.conf[FAILED]
and naturally
Starting CGroup Rules Engine Daemon:
Cannot find cgroups, is cgconfig service running?[FAILED]

only to start fine at very first manual service start

?

Comment 4 Ondrej Vasik 2013-05-17 15:48:48 UTC
*** Bug 961648 has been marked as a duplicate of this bug. ***

Comment 5 Peter Schiffer 2013-08-15 11:16:53 UTC
lejeczek,

please, can you try this build?

https://dl.dropboxusercontent.com/u/15321270/libcgroup-0.37-10.el6.x86_64.rpm
https://dl.dropboxusercontent.com/u/15321270/libcgroup-devel-0.37-10.el6.x86_64.rpm
https://dl.dropboxusercontent.com/u/15321270/libcgroup-pam-0.37-10.el6.s390x.rpm
https://dl.dropboxusercontent.com/u/15321270/libcgroup-debuginfo-0.37-10.el6.s390x.rpm

Also, if the error still persists, modify the /etc/init.d/cgconfig file on line 132:
- $CGCONFIGPARSER_BIN -l $CONFIG_FILE
+ export CGROUP_LOGLEVEL=DEBUG
+ $CGCONFIGPARSER_BIN -l $CONFIG_FILE > /tmp/cglog

reboot the machine and attach here /tmp/cglog file. (You might need to temporarily disable selinux if /tmp/cglog file is empty after reboot.)

Thanks,

peter

Comment 6 Jan Chaloupka 2014-08-04 10:23:49 UTC
ping lejeczek, is this still relevant?

Comment 7 lejeczek 2014-08-04 10:59:19 UTC
nope, segfault got fixed, later only cgred restart after system start was needed as user db (slapd backend) wasn't picked up by cgroups.
So on my systems no segfaults now and later (as per my other bugreport) slapd & cgred services initd was reordered.

Comment 8 Jan Chaloupka 2014-08-04 12:06:41 UTC
So segfault is fixed and moving processes into groups during logging is reported in BZ1126003. Then closing as fixed in rhel6.6.


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