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 1267803 - systemd-cgtop: CPU usage per user slice does not show
Summary: systemd-cgtop: CPU usage per user slice does not show
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1297395 1298243 1420851
TreeView+ depends on / blocked
 
Reported: 2015-10-01 05:27 UTC by Susant Sahani
Modified: 2021-06-10 11:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-15 15:41:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Susant Sahani 2015-10-01 05:27:57 UTC
Description of problem:
When running systemd-cgtop onls shows CPU usage for the '/' path. It does not show CPU usage per user slice. Seeing the IO and memory stats per slice is desirable as well

Version-Release number of selected component (if applicable):
RHEL7.1 x86_64

How reproducible:

always occurs

Actual results:

slice does not show CPU usage

Expected results:
slice should show CPU usage

Comment 2 Susant Sahani 2015-10-01 06:03:10 UTC
Path                                         Tasks   %CPU   Memory  Input/s Output/s

user.slice/user-0.slice/session-273.scope   2      -        -        -        -
/user.slice/user-0.slice/session-375.scope  6      -        -        -        


This woks on fedora

Fedora 23:
systemd-222-6.fc23.x86_64
systemd-compat-libs-222-6.fc23.x86_64
systemd-devel-222-6.fc23.x86_64
systemd-journal-gateway-222-6.fc23.x86_64
systemd-libs-222-6.fc23.x86_64


Path                                       Tasks   %CPU   Memory  Input/s Output/s
/user.slice/user-1000.slice                  79    7.0        -        -        -
/system.slice                              -    1.6   664.8M        -        -

Comment 7 Kyle Walker 2018-11-15 15:41:50 UTC
In order to enable CPU statistics reporting within systemd-cgtop, the cpu cgroup controller must be in use by systemd. This is the default state when any service has CPUAccounting=yes set.

To enable this accounting during boot, the DefaultCPUAccounting configuration can be set within the /etc/systemd/system.conf as shown below:

    # sed -i 's/^.*DefaultCPUAccounting.*$/DefaultCPUAccounting=yes/g' /etc/systemd/system.conf


With this being the case, I am closing this BZ as NOTABUG. Please reopen in the event that enabling CPUAccounting does not achieve the end goal.

- Kyle Walker


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