Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 4 down vote accepted

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>.

share|improve this answer
works, just what I needed, thanks! – timeon Mar 20 '12 at 18:07

Try pressing F or O in top, that should allow you to select the column you want to sort by.

share|improve this answer
then hit enter (other keys are possible) to get back to the initial view – euphoria83 May 6 '15 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.