Use this command to determine which processes are running and running, whether the process is complete, if the process is dead, which processes are consuming excessive resources, and so on.
USER PID%cpu%MEM VSZ RSS TTY STAT START time Commandroot1 0.0 0.2 119816 5628? SsGeneva:Panax Notoginseng 0: the/sbin/init auto Nopromptroot2 0.0 0.0 0 0? SGeneva:Panax Notoginseng 0:xx[Kthreadd]root4 0.0 0.0 0 0? s<Geneva:Panax Notoginseng 0:xx[kworker/0: 0h]root6 0.0 0.0 0 0? SGeneva:Panax Notoginseng 0: Geneva[ksoftirqd/0]root7 0.2 0.0 0 0? SGeneva:Panax Notoginseng 2: -[Rcu_sched]root8 0.0 0.0 0 0? SGeneva:Panax Notoginseng 0:xx[Rcu_bh]root9 0.0 0.0 0 0? SGeneva:Panax Notoginseng 0:xx[migration/0]rootTen 0.0 0.0 0 0? s<Geneva:Panax Notoginseng 0:xx[lru-add-Drain]root One 0.0 0.0 0 0? SGeneva:Panax Notoginseng 0:xx[watchdog/0]
CPU utilization of the%CPU process
Memory utilization of the%MEM process
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
TTY associated with a process terminal (TTY)
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
Start (Process start time and date)
(Total CPU time used by the process)
Command (in-line command being executed)
NI (Nice) priority
PRI Process Priority number
PPID Process ID (parent process ID)
SID Conversation ID (session ID)
The name of the kernel function in which the Wchan process is sleeping; the name of the function is obtained from the/root/system.map file.
FLAGS and process-related digital IDs
Common parameters:
- -A: All processes are displayed
- -A: All processes not related to terminal
- -U: Related processes for effective users
- -X: Generally used in conjunction with a parameter to list more complete information
- -L: Longer, the PID information is listed in more detail
Common combinations:
- PS aux # View all process data for the system
- PS Ax # View all processes not related to terminal
- Ps-la # View all process data for the system
- PS AXJF # View together with a subset of process tree states
LINUX Note-ps command