Bug 547749 - top utility can't sort by memory usage in batch mode
Summary: top utility can't sort by memory usage in batch mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: procps
Version: 5.3
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jaromír Cápík
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-15 15:32 UTC by Matt Miller
Modified: 2018-11-14 12:47 UTC (History)
4 users (show)

Fixed In Version: procps-3.2.7-18.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 746997 (view as bug list)
Environment:
Last Closed: 2011-11-29 14:07:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to add -m option to top.c (488 bytes, patch)
2009-12-15 15:32 UTC, Matt Miller
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1497 0 normal SHIPPED_LIVE procps enhancement update 2011-11-29 19:03:50 UTC

Description Matt Miller 2009-12-15 15:32:53 UTC
Created attachment 378537 [details]
patch to add -m option to top.c

Description of problem:
We need to be able to capture output from 'top' in batch mode, but sort the processes via memory consumption. Currently this option is only available in interactive mode via Shift-M

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

Additional info:
Please mark this as a feature request if that is appropriate. I'm attaching a patch to the procps-3.2.7 SRPM that would add a "-m" option that would automatically sort by memory usage. It would be great if this type of option could be added to this, as well as the RHEL4 package as well.

Comment 1 Daniel Novotny 2010-04-01 11:38:57 UTC
hello Matt,
thanks for the patch. if procps gets into next rhel update, we will add it

Comment 9 errata-xmlrpc 2011-11-29 14:07:03 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHEA-2011-1497.html


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