There is an interactive key "M" to sort by memory, which seems to be sorting on resident memory. Is there a way to sort on virtual memory? I happen to be working on Redhat Linux, but the question is not specific to this distribution.
3 Answers
You get a list of things you can sort by by pressing O. Virtual segment size is option o, so you can get what you want by pressing Oo<Enter>.
Try pressing F or O in top, that should allow you to select the column you want to sort by.
- then hit enter (other keys are possible) to get back to the initial vieweuphoria83– euphoria832015-05-06 22:32:21 +00:00Commented May 6, 2015 at 22:32
- Letter [O],
-memor-vsize, [enter] works on MacOS.Cees Timmerman– Cees Timmerman2017-04-06 08:39:58 +00:00Commented Apr 6, 2017 at 8:39
