Free
Displays memory usage, with the default unit of KB.
Top
Dynamic display, see Figure 1.
Figure 1 Top command
Res indicates memory consumption.
Ps
-aux Displays the primary information for all processes. See Figure 2.
Figure 2 PS Command
Main parameter explanation.
%MEM, the percentage of memory consumption.
RSS, memory consumption, in kilobytes. %MEM is calculated from this value.
Time, the total CPU time the lock occupies since it was started, not the length of time represented by (now-moment-start time).
- eDisplays information for all processes.
--formatCustomize the columns to display, separating the columns with commas.
PIDRepresents the process ID.
RSSRepresents a memory footprint in which the Kb,rss column means the same as the Res column of the top command.
PmemRepresents the percentage of memory consumption that is calculated based on the value of RSS.
pcpuRepresents the percentage of memory consumption.
CommandRepresents the Start command.
etimeRepresents the run time, such as 16-21:48:28, 16 days, 21 hours, 48 minutes, 28 seconds, 02:47:35 means 2 hours, 47 minutes, 35 seconds, and 47:35 for 47 minutes and 35 seconds.
Linux Process Management