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 1807046 - [RFE] allow atop to sort processes according to their state
Summary: [RFE] allow atop to sort processes according to their state
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.0
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: rc
: 8.0
Assignee: Nathan Scott
QA Contact: Jan Kurik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-25 14:19 UTC by Yogesh Babar
Modified: 2021-11-09 21:04 UTC (History)
5 users (show)

Fixed In Version: pcp-5.3.0-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:49:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4171 0 None None None 2021-11-09 17:49:56 UTC

Description Yogesh Babar 2020-02-25 14:19:10 UTC
Description of problem:

The pcp atop miss one crucial feature in terms of support engineer's perspective and that is we can not list the processes according to its state. For example, if we want to see processes that are stuck in D state. 

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

pcp-4.3.0-3.el8.x86_64

How reproducible:


Steps to Reproduce:
1. run pcp atop
2. there is no switch to sort the processes according to their state
3.

Actual results:

You can not sort the processes according to their state in atop. At least the man page of atop does not talk of such a flag. 

Expected results:

Being support engineers we rely heavily on sorting the processes according to their state. For example - what was the top 10 D state processes. 


Additional info:

I am sure there will be some other way to get this info but it will be great if the atop provides such a flag. 

As of now, I do not see any specific matric on default pcp-zeroconf installation which will collect the process states related information.

Comment 1 Nathan Scott 2020-07-21 02:20:17 UTC
Hi Yogesh,

Indeed there is no such flag, as you found.  I think what you may want here is a filter on state (which also does not yet exist), so that only processes matching certain state(s) would be shown?  Perhaps something like the interactive 'S' key, except for process states.

I'm not sure how it would work otherwise - there's only 5 or so process states, so 'sorting' on that column would end up being pretty arbitrary (compare this to sorting on numeric values like memory use, CPU utilization, etc which are good sort keys for common process counts because there's a clear linear progression, eg from 0 to 100%).

Comment 4 Nathan Scott 2021-03-22 05:49:42 UTC
I've implemented something like #c1 - a comma-separated list of states can now be filtered on.

Upstream atop pull request is:  https://github.com/Atoptool/atop/pull/151

I'll see if Gerlof (original atop author) has any reservations and if not, will add to pcp-atop.

Comment 9 errata-xmlrpc 2021-11-09 17:49:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pcp bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4171


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