Set of cpu monitoring tools for Linux

Source: Internet
Author: User

Set of cpu monitoring tools for Linux

Set of cpu monitoring tools for Linux

1. top tools provided by the system

Detailed parameter description:
15:46:08: current system time
45 days: the system runs for 45 days.
2 users: the system currently has two users logging on
Load average: 0.04, 0.01, 0.00 -- load of cpu every 5 minutes, 10 minutes, 15 minutes
Tasks: 105 total -- the system has a total of 105 processes.
1 running -- one process is running
104 sleeping -- 104 processes sleep
0 stopped -- 0 processes stopped
0 zombie -- 0 zombie Processes
Cpu (s): 0.4% us -- 0.4% of the cpu used by the user
0.1% sy-0.1% of the total cpu usage by the System
0.0% ni -- Process Priority occupies 0.0% Of the total cpu
98.5% id -- idle cpu is 98.5%
1.0% wa -- cpu occupied by I/O wait is 1.0%
0.0% hi -- hard interrupt cpu usage is 0.0%
0.0% si -- 0.0% cpu used by Soft Interrupt
Mem: 3887260 k total -- physical memory capacity
3688496 k used -- Memory used
198764 k free -- Memory remaining
12200 k buffers -- Memory occupied by buffers Cache
Swap: 2097144 K -- Swap partition size
20300 k used -- use swap Partition
2076844 k free -- number of remaining swap partitions
2028132 k cached -- swap the cache size in the Partition
PID -- pid value of the process
USER-the USER who runs the process
PR -- Process Priority
NI -- nice value (negative value indicates high priority, positive value indicates low priority)
VIRT-virtual memory used by the Process
RES -- physical memory used by the Process
SHR-share the internal size
S -- Process status
% CPU -- percentage of CPU used by processes
% MEM -- percentage of memory used by the Process
TIME + -- CPU usage TIME of the process
COMMAND -- process name

Practical top Command

Why does Linux's htop command win the top command?

Use the most powerful process monitor htop in Ubuntu

Install htop process management and monitoring tools in CentOS 6.5
 
2. built-in vmstat Tool

Detailed description:
Procs r -- process running queue
B -- Process Blocking
Swpd-switch internal use
Free-physical internal use
Buff-system cache (memory cache)
Cache-File cache (disk cache)
Si -- size of the disk input by the System
So -- size of the system output on the disk
Bi-data block input size
Bo -- data block output size
In -- number of cpu interruptions
Cs-cpu usage time on the client
Us-cpu usage time
Sy-cpu usage time
Id -- idle cpu
Wa -- wait for the cpu time occupied by I/O

Linux vmstat command details

Detailed description of vmstat display results in Linux

Vmstat for Linux monitoring tools

Linux vmstat commands

Linux vmstat monitors system load

Vmstat command details-Linux Performance Analysis


 
3. mpstat tool provided by the system

Parameter description:
CPU -- indicates all CPUs
% Usr -- cpu used by the user
% Nice -- cpu occupied by priority
% Sys -- cpu used by the System
% Iowait -- cpu occupied by the hard disk
% Irq -- hard interrupt time
% Soft -- soft Interrupt time
% Idle -- idle cpu
 
4. the uptime tool provided by the system

Parameter description:
16:29:26 up -- current system time
Up 45 days, -- how many days does the system run?
2 users-online system users
Load average: 0.00, 0.00, 0.00 -- cpu load per 5, 10, 15 minutes

Use the w command and uptime command in Linux to view the system load
 
5. Use the htop tool installed in the epel source repository (htop is an upgraded version of top)

Parameter description:
H ,? -- Help information
/-- Search process
T -- display Tree Structure
K-transmit signals to processes
Q -- exit

This article permanently updates the link address:

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.