Dstat monitoring in CentOS

Source: Internet
Author: User
If the system does not have the yum-yinstalldstat tool, install dstat. the software is small and exquisite. the package size is only 144 KB, and the installation size is 660 KB. By default, this tool dynamically displays the CPU, disk, net, page, and system load conditions, as shown in the following figure. of course, there will be different colors, which is relatively intuitive, for the moment, we will directly copy and integrate the product. We also hope that you will see Guan Haihan, and you will never take a brick. [Root @ aaa] # dstat-

Dstat
If the system does not have the yum-y install dstat tool, the software is small and exquisite. the package size is only 144 KB, and the installation size is 660 KB.
By default, this tool dynamically displays the CPU, disk, net, page, and system load conditions, as shown in the following figure. of course, there will be different colors, which is relatively intuitive, for the moment, we will directly copy and integrate the product. We also hope that you will see Guan Haihan, and you will never take a brick.

[Root @ aaa] # dstat
---- Total-cpu-usage -----dsk/total--net/total---- paging -- --- system --
Usr sys idl wai hiq siq | read writ | recv send | in out | int csw
10 1 89 0 0 0 | 76 k 339k | 0 0 | 0 0 | 208 686
16 3 82 0 0 0 | 0 280k | 126 k 125k | 0 0 | 1058 500
12 2 86 0 0 0 | 0 192k | 4600B 6204B | 0 0 | 1037 338
14 2 83 0 0 0 | 0 0 | 5042B 2648B | 0 0 | 1029 277

 

 

Common parameters

-C cpu: displays CPU system usage, user usage, idle, waiting, interrupted, software interruption, and other information.

-C when multiple CPUs exist, this parameter can display the CPU status as needed.

E. g-C displays CPU 0 and CPU 1 information

-D disk: displays the size of read/write data on the disk.

-D hda and total

-N net: displays the network status

-When N net has multiple NICs, specify the NIC to be displayed

-L load average: displays the system load

-M memory: displays memory usage

-G page: page usage

-P process: displays the process status

-S swap displays swap partition usage

-S is similar to D/N.

-R I/O requests

-Y system status

-- Ipc displays ipc message queues, signals, and other information.

-- Socket is used to display the tcp udp port status

-A all this is the default option equivalent to-cdngy

-V vmstat is equivalent to-pmgdsc-D total

-- Output file this option is also useful. you can redirect the status information to the specified file in csv format for future viewing. E. g dstat -- output/root/dstat.csv & now let the program run silently in the background and output the results to the/root/dstat.csv file

 

 

1. cpu: hiq and siq are the number of hard and soft interruptions, respectively.

2. system: int and csw are the number of system interruptions (interrupt) and context switch, respectively)

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.