Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 547749 - top utility can't sort by memory usage in batch mode
top utility can't sort by memory usage in batch mode
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: procps (Show other bugs)
5.3
All Linux
low Severity low
: rc
: ---
Assigned To: Jaromír Cápík
BaseOS QE - Apps
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-15 10:32 EST by Matt Miller
Modified: 2013-04-12 16:33 EDT (History)
4 users (show)

See Also:
Fixed In Version: procps-3.2.7-18.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 746997 (view as bug list)
Environment:
Last Closed: 2011-11-29 09:07:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1497 normal SHIPPED_LIVE procps enhancement update 2011-11-29 14:03:50 EST

  None (edit)
Description Matt Miller 2009-12-15 10:32:53 EST
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 07:38:57 EDT
hello Matt,
thanks for the patch. if procps gets into next rhel update, we will add it
Comment 9 errata-xmlrpc 2011-11-29 09:07:03 EST
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.