How to install Linux using dstat monitoring tool

  
                

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

Copyright © Windows knowledge All Rights Reserved