There are many commands for system monitoring in Linux system operation. (See the system home to monitor the performance of Linux system?), today Xiaobian wants to introduce the use of the Linux system monitoring tool dstat, one Get up and get to know it.
dstat allows you to see all system resources in real time. For example, you can compare disk utilization by counting the current state of the IDE controller, or compare the disk throughput directly through the network bandwidth value (in the same Within the time interval).
dstat will provide you with option information in a list and clearly tell you in what magnitude and unit the output is displayed. This better avoids information confusion and false positives. More importantly, it makes it easier for you to write plugins to collect the data you want and extend it in ways you have never had before.
The default output of Dstat is designed for people to view in real time, but you can also export the details to a file via CSV and import it into a Gnumeric or Excel spreadsheet.
Features
Combine vmstat, iostat, ifstat, netstat and more
Display statistics in real time
During analysis and troubleshooting By enabling monitoring items and sorting
Modular design
Writing in python makes it easier to extend existing work tasks
Easily extend and add your counters (please This contributes.
A number of extensions are included to illustrate the convenience of adding new monitoring items.
You can group statistical block devices/network devices and give the total number
can display the current status of each device
Extremely accurate time accuracy, even if the system load is high, it will not delay display
Display accurate unit and limit conversion error range
Displaying different units in different colors
Displaying intermediate results with less than 1 second delay
Supports outputting CSV format reports and importing them into Gnumeric and Excel to generate graphics
Installation Method
Ubuntu/M Int and Debin systems:
There are related installation packages in the local software library, you can install them with the following command:
# sudo apt-get install dstat
RHEL/CentOS and Fedora System:
You can add related installation packages to the romforge software library. Refer to the instructions and install them easily with the following command:
# yum install dstat
ArchLinux System:
Related Packages In the Community Resource Library, you can use this command to install:
# pacman -S dstat
How to use
is the basic usage dstat dstat command input, the following output:
this is the default display information output:
CPU status: CPU usage. The more interesting part of this report is the display of the user, system and idle parts, which better analyzes the current usage of the CPU. If you see the status of the CPU in the <quo;wait” column, the CPU status is a high usage value, which indicates that the system has some other problems. When the state of the CPU is at "waits", it is because it is waiting for a response from an I/O device (such as memory, disk or network) and has not received it.
Disk Statistics: Disk read and write operations, this column shows the total number of read and write disks.
Network Statistics: Data sent and received by network devices. This column shows the total number of data received and sent by the network.
Pagination Statistics: The paging activity of the system. Pagination refers to a memory management technique used to find system scenarios. A large page indicates that the system is using a lot of swap space, or the memory is very scattered. In most cases, you want to see page in. And the value of page out is 0 0.
System Statistics: This item shows interrupt (int) and context switch (csw). This statistic only makes sense when there is a baseline comparison. Higher statistics in this column usually indicate that a large number of processes are causing congestion and require attention to the CPU. Your server will normally run some programs, so this always shows some values.
Previous12Next Total 2 Pages
In the Linux system operation certificate, Vim is a text editor. When using Vim, it actually display
We often download some compressed files online, so compression and decompression ar
Usually the network card name is automatically recognized by the system and exists
Lighttpd is an open source web server software, many friends encountered a lot of trouble during the
Fedora 21 upgrade Fedora 22 method
What if the iPad cannot be charged in Ubuntu?
A brief introduction to the Linux signal mechanism
Techniques for setting up multiple network cards as virtual network cards under Linux
Linux VirtualBox installation Win8.1 error 0x000000C4 how to do?
Ways to view and modify DNS configuration in Linux
Ubuntu how to use PPA to install Pragha player
How to restart Tomcat regularly on Linux system
Steps to install StarDict software on Linux
Trial Discovery - Four Reasons to Like Windows 7
Adobe CS6 series failed to solve the WIN7 WIN8 installation
Teach you to change the lock screen pattern, say goodbye to the same
Causes and solutions for common mouse failures under Win7 system
How to improve the shutdown speed of Win8.1 system?
Win7, Vista, XP LAN drive sharing
How to adjust the mouse double-click speed under the Win8 system
Integrated SP2: XP installation saves an hour
Play around windows7 absolutely can not close the top 10 services (2)
The consequences of installing win7 with the wrong hard disk partitioning tool