LINUX Note-ps command

Source: Internet
Author: User

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:

    1. -A: All processes are displayed
    2. -A: All processes not related to terminal
    3. -U: Related processes for effective users
    4. -X: Generally used in conjunction with a parameter to list more complete information
    5. -L: Longer, the PID information is listed in more detail

Common combinations:

    1. PS aux # View all process data for the system
    2. PS Ax # View all processes not related to terminal
    3. Ps-la # View all process data for the system
    4. PS AXJF # View together with a subset of process tree states

LINUX Note-ps command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.