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 649195 - add cgsnapshot tool to libcgroup package
Summary: add cgsnapshot tool to libcgroup package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libcgroup
Version: 6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Ivana Varekova
QA Contact: Mike Gahagan
URL:
Whiteboard:
Depends On:
Blocks: 672300
TreeView+ depends on / blocked
 
Reported: 2010-11-03 07:15 UTC by Ivana Varekova
Modified: 2011-05-19 13:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Several bugfixes and new tool cgsnapshot. Using this tool it is possible to snapshot the current control group configuration. Please note that cgsnapshot is currently limited and displays only the first mount point for a hierarchy. If any hierarchy is mounted twice or more, cgshapshot will show only the first mount point. As major bugfix, cgconfig service now writes all parameter values in the same order as they appear in cgconfig.conf file. In the previous version of the package the values were (wrongly) written in the reverse order. Users should be advised to review they /etc/cgconfig.conf configuration file
Clone Of:
Environment:
Last Closed: 2011-05-19 13:13:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0577 0 normal SHIPPED_LIVE libcgroup bug fix and enhancement update 2011-05-18 17:56:57 UTC

Description Ivana Varekova 2010-11-03 07:15:21 UTC
Description of problem:
In the new upstream version there is implemented new tool:

cgsnapshot [-h] [-s] [-b file] [-w file] [-f output_file] [controller] [...]
Generate the configuration file from the given controllers of control groups
  -b,--blacklist file  Set the blacklist configuration file (default /etc/cgsnapshot_blacklist.conf)
  -f,--file            Redirect the output to output_file
  -h,--help            Display this help
  -s,--silent          Ignore all warnings
  -t,--strict          Don't show the variables which are not on the whitelist
  -w,--whitelist file  Set the whitelist configuration file (don't used by default)

using this tool there is possible to snapshot current control group configuration. It would be fine to hav eit in el6.1

Version-Release number of selected component (if applicable):
libcgroup-0.36.1-6.el6

Comment 2 Jan Safranek 2010-11-03 08:21:46 UTC
The tool uses new libcgroup API and rebase to newer version is highly recommended.

Comment 4 Radek Vokál 2011-01-03 13:59:01 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Several bugfixes and new tool cgsnapshot. Using this tool it is possible to snapshot the current control group configuration.

Comment 6 Jan Safranek 2011-01-12 09:26:28 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1,3 @@
-Several bugfixes and new tool cgsnapshot. Using this tool it is possible to snapshot the current control group configuration.+Several bugfixes and new tool cgsnapshot. Using this tool it is possible to snapshot the current control group configuration.
+
+As major bugfix, cgconfig service now writes all parameter values in the same order as they appear in cgconfig.conf file. In the previous version of the package the values were (wrongly) written in the reverse order. Users should be advised to review they /etc/cgconfig.conf configuration file

Comment 8 Mike Gahagan 2011-01-24 16:30:46 UTC
[root@dhcp231-204 x86_64]# cgsnapshot 
# Configuration file generated by cgsnapshot
mount {
	cpuset = /cgroup/cpuset;
	cpu = /cgroup/cpu;
	cpuacct = /cgroup/cpuacct;
	memory = /cgroup/memory;
	devices = /cgroup/devices;
	freezer = /cgroup/freezer;
	net_cls = /cgroup/net_cls;
	blkio = /cgroup/blkio;
}

Confirmed cgsnapshot is included with libcgroups 0.37-1

Comment 9 Mike Gahagan 2011-01-24 18:57:57 UTC
setting back to ON_QA until other architectures have been tested.

Comment 10 Mike Gahagan 2011-02-10 20:27:43 UTC
confirmed cgsnapshot is present on x86_64, i386 and ppc64, however I've found at least one bug with it, see bz 646700.

Comment 11 Jan Safranek 2011-02-23 13:22:31 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1,5 @@
 Several bugfixes and new tool cgsnapshot. Using this tool it is possible to snapshot the current control group configuration.
 
+Please note that cgsnapshot is currently limited and displays only the first mount point for a hierarchy. If any hierarchy is mounted twice or more, cgshapshot will show only the first mount point.
+
 As major bugfix, cgconfig service now writes all parameter values in the same order as they appear in cgconfig.conf file. In the previous version of the package the values were (wrongly) written in the reverse order. Users should be advised to review they /etc/cgconfig.conf configuration file

Comment 12 errata-xmlrpc 2011-05-19 13:13:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0577.html


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