Human readable memory sizes in top?

Is there an option in top to show memory sizes in human readable format?


PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                            
3960 phil      20   0 1347280 383112  30316 S   0.0  9.5   6:59.45 firefox

It would be nicer to show RES as 374m (instead of 383112).

I’m currently using Arch Linux. Ubuntu seems to use human readable representations by default.

(I tried man top but could not find the option. Maybe I missed it.)

Asked By: Philipp Claßen


You can switch the memory unit by pressing e. E will select the memory unit in the top summary bar.

Use W to permanently write your configuration to /home/user/.toprc and see also ? for more configuration options.

Answered By: Hauke Laging
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.