Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of Common usage of dstat tools in Linux system

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "summary of common usage of dstat tools in Linux system". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "summary of common usage of dstat tools in Linux system".

1) tool description

Dstat is a tool used to replace vmstat,iostat netstat,nfsstat and ifstat commands, is an omnipotent system information statistics tool. Compared with sysstat, dstat has a color interface, which makes the data more conspicuous and easy to observe when manually observing performance; and dstat supports instant refresh, such as typing dstat 3, that is, collecting every three seconds, but the latest data will be refreshed every second. Like sysstat, dstat can also collect specified performance resources.

2) Software installation

The code is as follows:

# cd / tmp

# rz

# rpm-Uvh dstat-0.6.7-1.el*.rf.noarch.rpm

# which dstat

/ usr/bin/dstat

Or under Ubuntu (Debian):

The code is as follows:

$apt-get install dstat

3) dstat option

-C 0Pol 3 total include cpu0, cpu3 and total

-d,-disk shows the disk condition

-D total,hda include hda and total

-g.-page enable page stats.

-I.-int enable interrupt stats.

-I 5 include int5 and interrupt used by eth3 eth3

-l.-load enable load stats.

-m,-mem shows memory condition

-n,-net shows the network

-N eth2,total can specify network interface

-p.-proc enable process stats.

-s,-swap shows swap

-S swap1,total can specify multiple swap

-t.-time enable time counter.

-y.-sys enable system stats.

-ipc reports the use of IPC message queues and semaphores

-lock enable lock stats

-raw enable raw stats

-tcp enable tcp stats

-udp enable udp stats

-unix enable unix stats

-M stat1,stat2 enable external stats

-mods stat1,stat2

-a,-all uses-cdngy is displayed this way by default

-f,-full use-C,-D,-I,-N and-S display

-v,-vmstat uses-pmgdsc-D display

-integer show integer values

-nocolor disable colors (implies-noupdate)

-noheaders displays the header only once and then does not show it. It is useful when using redirection to write to a file.

-noupdate disable intermediate updates

-output file is written to the CVS file

This software is very similar to vmstat, but it seems to lack the display of io compared with vmstat. Dstat can only show disk throughput rather than load. Dstat, like almost all monitoring software, can only monitor the whole system without in-depth analysis of a process or program. The parameter I often use is dstat-cdlmnpsy. Make an alias link to alias dstat='dstat-cdlmnpsy'.

4) Common usage

View details about cpu, hard drive, and network.

The code is as follows:

$dstat

View details about cpu, hard drive, and network.

-c cpu

The code is as follows:

$dstat-c

-d disk

The code is as follows:

$dstat-d

Displays details of cpu, disks, and so on.

The code is as follows:

$dstat-cdl-D sda1

Thank you for your reading. the above is the content of "Summary of Common usage of dstat tools in Linux system". After the study of this article, I believe you have a deeper understanding of the problem of summarizing the common usage of dstat tools in Linux system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report