Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 23
    Under Linux, simply press M to sort by physical memory usage (RES column). Under *BSD, run top -o res or top -o size. But htop is a lot nicer and doesn't even consume more memory than top (however it's not part of the basic toolset so you might not have it installed). Commented Dec 19, 2010 at 13:38
  • 3
    I had to press s to sort by %MEM and, then hit escape for top. Commented Jun 26, 2016 at 20:40
  • Doesn't work on Solaris 9. Commented Apr 30, 2020 at 14:19
  • @Steven How can we group process with same parent? Basically firefox shows up in multiple times may be as it spawns multiple child processes. Is it possible to get combined memory usage? Commented Mar 7, 2021 at 21:45
  • 1
    $ top > -bash: fork: Cannot allocate memory - In case anyone else appreciates this Commented Oct 4, 2021 at 22:39