dstat -dnyc -N eth0 -C total -f 5
dstat - versatile tool for generating system resource statistics
dstat [-afv] [options..] [delay [count]]
Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat overcomes some of the limitations and adds some extra features.
Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).
Dstat also cleverly gives you the most detailed information in columns and clearly indicates in what magnitude and unit the output is displayed. Less confusion, less mistakes, more efficient.
Dstat is unique in letting you aggregate block device throughput for a certain diskset or network bandwidth for a group of interfaces, ie. you can see the throughput for all the block devices that make up a single filesystem or storage system.
Dstat allows its data to be directly written to a CSV file to be imported and used by OpenOffice, Gnumeric or Excel to create graphs.
Note
|
Users of Sleuthkit might find Sleuthkit's dstat being renamed to datastat to avoid a name conflict. See Debian bug #283709 for more information. |
enable cpu stats
include cpu0, cpu3 and total
enable disk stats
include hda and total
enable page stats
enable interrupt stats
include interrupt 5 and 10
enable load stats
enable memory stats
enable network stats
include eth1 and total
enable process stats
enable swap stats
include swap1 and total
enable time/date output
enable time counter (seconds since epoch)
enable system stats
enable ipc stats
enable lock stats
enable raw stats
enable tcp stats
enable udp stats
enable unix stats
enable internal stats and external plugin stats
cpu, cpu24, disk, disk24, disk24old, epoch, int, int24, ipc, load, lock, mem, net, page, page24, proc, raw, swap, swapold, sys, tcp, time, udp, unix
dstat -M list
equals -cdngy (default)
expand -C, -D, -I, -N and -S discovery lists
equals -pmgdsc -D total
show integer values
disable colors (implies --noupdate)
disable repetitive headers
disable intermediate updates when delay > 1
write CSV output to file
delay is the delay in seconds between each update
count is the number of updates to display before exiting
The default delay is 1 and count is unspecified (unlimited)
When invoking dstat with a delay greater than 1 and without the --noupdate option, it will show intermediate updates, ie. the first time a 1 sec average, the second update a 2 second average, etc. until the delay has been reached.
So in case you specified a delay of 10, the 9 intermediate updates are NOT snapshots, they are averages over the time that passed since the last final update. The end result is that you get a 10 second average on a new line, just like with vmstat.
dstat -dnyc -N eth0 -C total -f 5
dstat -taf --debug
dstat -tcndylp -M app
this is identical to
dstat -M time,cpu,net,disk,sys,load,proc,app
Since it's practically impossible to test dstat on every possible permutation of kernel, python or distribution version, I need your help and your feedback to fix the remaining problems. If you have improvements or bugreports, please send them to: dag@wieers.com
Note
|
Please see the TODO file for known bugs and future plans. |
Paths that may contain external dstat_* plugins:
~/.dstat/ ./ ./plugins/ (path of binary)/plugins/ /usr/share/dstat/ /usr/local/share/dstat/
ifstat(1), iftop(8), iostat(1), mpstat(1), netstat(1), nfsstat(1), nstat, vmstat(1), xosview(1)
htop, lslk(1), lsof(8), top(1)
ltrace(1), pmap(1), ps(1), pstack(1), strace(1)
ldd(1), file(1), nm(1), objdump(1), readelf(1)
free(1), memusage, memusagestat, slabtop(1)
dump-acct, dump-utmp, sa(8)
dmidecode, ifinfo(1), lsdev(1), lshal(1), lshw(1), lsmod(8), lspci(8), lsusb(8), smartctl(8), x86info(1)
mailstats(8), qshape(1)
xdpyinfo(1), xrestop(1)
proc(5)
Written by Dag Wieers dag@wieers.com
Homepage at http://dag.wieers.com/home-made/dstat/
This manpage was initially written by Andrew Pollock apollock@debian.org for the Debian GNU/Linux system, and updated by Dag Wieers dag@wieers.com