Linux Performance Monitoring with dstat


dstat

ekg heart monitor display
I use this tool more than any other performance monitoring tool I’ve come across. It’s great for looking at overall network input and output, individual disks, and memory usage.

It’s probably pretty insignificant, but I really like that the header repeats after awhile so you can easily keep track of the columns. Sometimes it’s the little things that make all the difference.

Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting.

Dstat allows you to view all of your system resources in real-time, you can eg. compare disk utilization in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).

Here’s an example of dstat output while writing out some data on sdb.

This handy little app replaces common uses of netstat and iostat. You can tell it to monitor individual block devices, cpu’s, memory, swap usage, etc. If dstat isn’t available in your Linux distribution’s repositories add the maintainer’s repository, which just happens to be the DAG repo.



Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">