Linux Process Management, linux
Free
Displays memory usage. The default unit is kB.
Top
Dynamic display, as shown in figure 1.
Figure 1 top Command
Res indicates memory usage.
Ps
-Aux displays the main information of all processes. See figure 2.
Figure 2 ps command
Main Parameter description.
% MEM, memory usage percentage.
Rss, memory usage, in kB. % MEM is calculated based on this value.
Time, the total cpu time occupied by the lock since the start, not (current time-Start time) represents the length of time.
-E: displays information about all processes.
-- Format: customizes the columns to be displayed. Each column is separated by a comma.
Pid indicates the process id.
Rss indicates memory usage, in kB. The meaning of the rss column is the same as that of the res column of the top command.
Pmem indicates the memory usage percentage, which is calculated based on the rss value.
Pcpu indicates the memory usage percentage.
Command indicates the startup command.
Etime indicates the running time. For example, 16-21:48:28 indicates 16 days, 21 hours, 48 minutes, 28 seconds, 02:47:35 indicates 2 hours, 47 minutes, 35 seconds, and 47 minutes, 35 seconds.