1. The Linux down-fetch process consumes the highest CPU of the top 10 processes
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|head
PS Auxw|head-1;ps auxw|sort-rn-k3|head-10
2.linux the top 10 processes taking up memory (MEM)
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +4|head
PS Auxw|head-1;ps auxw|sort-rn-k4|head-10
3. The top 10 processes that use the most virtual memory
PS Auxw|head-1;ps auxw|sort-rn-k5|head-10
4. You can also try
PS Auxw--sort=rss
PS Auxw--sort=%cpu
5. Take a look at a few parameter meanings
Memory utilization of the%MEM process
MAJFL is the major page fault count,
The size of the virtual memory used by the VSZ process
The size of the resident set used by the RSS process or the size of the actual memory (RSS is the "resident set size" meaning physical memory used)
TTY associated with a process terminal (TTY)
Serial port terminal (/DEV/TTYSN)
Pseudo Terminal (/dev/pty/)
Control Terminal (/dev/tty)
Console Terminal (/dev/ttyn,/dev/console)
Virtual Terminal (/dev/pts/n)
STAT Check Status: The process state is represented by a character, such as R (running is running or ready to run), S (sleeping Sleep), I (Idle idle), Z (Zombie), D (non-disruptive sleep, usually I/O), P (Waiting for swap pages), W (swap out, Indicates the current page is not in memory), N (Low priority Task) T (terminate termination), W has no resident pages
D Non-interruptible uninterruptible sleep (usually IO)
R is running, or the process in the queue
S is in a dormant state
T stop or be traced
Z Zombie Process
W enters memory swap (invalid starting from kernel 2.6)
X dead Process
< high-priority
N Low-priority
L Some pages are locked into memory
s contains child processes
+ Process Group located in the background;
L multi-threading, Clone thread multi-threaded (using Clone_thread, like NPTL pthreads do)
The Linux fetch process consumes the top 10 cpu/memory processes