The use of dstat in the process management of Linux system

Source: Internet
Author: User
Tags disk usage

Dstat a versatile system resource monitoring tool that supports a wide range of features such as CPU, memory, load, file locks, socket sockets, networks, processes, paging files, file systems, and much more can be displayed individually.

dstat:http://pkgs.repoforge.org/dstat/If there is no installation in CentOS, you can install it directly using Yum, if you do not want to use Yum installation, you can go to the above site download. 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/6C/wKioL1SBzxjDo-9hAAHsPVWiNvw709.jpg "title=" 2014-12-05 23:25:36 screen. png "alt=" wkiol1sbzxjdo-9haahspvwinvw709.jpg "/>

This is the Dstat open interface, it will always refresh the system state and return the content to the screen, if you enter Dstat directly, the program will prompt "You did not make any filtering status, will use-cdngy as the default option" next introduce these options.

Common options:

-C: Show CPU usage

-D: Show disk usage

-N: Show Network IO

-G: Show paging file

-Y: System-related data

-M: memory-related data

-P: Show process

-S: Exchanging space related information

--FS: File system-related data

-r: Total IO

--lock: File Lock

--socket: Socket file

--TOP-CPU: Show CPU-intensive processes

--top-bio: Shows the process that most consumes block device IO

--top-mem: Shows the process that consumes most memory

--top-io: Show most io-intensive processes

............

Of course, there are more options for users to choose from, you can use the-H or--help or man manual page for help information

If we need to let the program output a certain content automatically stop when you can enter "Dstat 1 3" The final program will automatically exit after the fourth display (these numbers can be customized by the user. )

When we give too many parameters Dstat will determine whether the terminal can be displayed intact, if the display is not complete, according to the standard output to display.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/6C/wKioL1SB0nTjYCuLAAHSe2svRcI664.jpg "title=" 2014-12-05 23:40:07 screen. png "alt=" wkiol1sb0ntjyculaahse2svrci664.jpg "/>

I gave it to-cdngymp. (Shows CPU, disk, network, paging file, System information, memory, and process, etc.) seven options after execution the program returns the first line of content indicating that the end width is too small. You need to end the program to enlarge the terminal and use it.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/6D/wKiom1SB0ovT1VnUAAI7cIi4r_M711.jpg "title=" 2014-12-05 23:42:47 screen. png "alt=" wkiom1sb0ovt1vnuaai7cii4r_m711.jpg "/>

Let's see if it exits automatically. It says that using Dstat 1 3 means that after the first line is finished, the three rows are refreshed and then exited.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/6D/wKioL1SCYWHzyPKFAAISU7MvuYs062.jpg "title=" 2014-12-06 09:49:48 screen. png "alt=" wkiol1scywhzypkfaaisu7mvuys062.jpg "/>

If the number 1 is changed to 2 then it represents the start of the second row from the beginning of each row refreshed two times before returning to the user, this please try your own it is not able to demonstrate (I also want to do gif chart ...) But I use Ubuntu), the rest is a lot of practice just fine, write here.

This article is from the "Yxn" blog, make sure to keep this source http://jyxnt.blog.51cto.com/9581167/1586988

The use of dstat in the process management of Linux system

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.