Browse files

Preparation for v0.6.7

  • Loading branch information...
1 parent 4caa3b5 commit 3d1773b95f92e95d3883e35d088f7c3a76780f83 @dagwieers committed Feb 26, 2008
Showing with 443 additions and 77 deletions.
  1. +1 −1 ChangeLog
  2. +8 −0 docs/cplugins.txt
  3. +270 −0 docs/dstat.1
  4. +8 −5 dstat
  5. +3 −3 dstat.spec
  6. +136 −68 dstat15
  7. +17 −0 plugins/
@@ -1,4 +1,4 @@
-* 0.6.6svn - ... - released 15/10/2007
+* 0.6.7 - Cambridge overdue - released 26/02/2008
- Only rewrite xterm title when XTERM_SHELL is set to bash
- Added more Dbt (Debian bug tracker) ids in the ChangeLog and TODO
- Use sys.exit() instead of exit() before color support is detected
@@ -0,0 +1,8 @@
+Defining Python class methods in C
+python class in c / global calls
+How to create a python class in C
@@ -0,0 +1,270 @@
+.\" ** You probably do not want to edit this file directly **
+.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
+.\" Instead of manually editing it, you probably should edit the DocBook XML
+.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
+.TH "DSTAT" "1" "02/26/2008" "" ""
+.\" disable hyphenation
+.\" disable justification (adjust text to left margin only) l
+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.
+.sp 1 an-trap an-no-space-flag 1 an-break-flag 1
+Users of Sleuthkit might find Sleuthkit's dstat being renamed to datastat to avoid a name conflict. See Debian bug #283709 for more information.
+\-c, \-\-cpu
+enable cpu stats
+\-C 0,3,total
+include cpu0, cpu3 and total
+\-d, \-\-disk
+enable disk stats
+\-D total,hda
+include hda and total
+\-g, \-\-page
+enable page stats
+\-i, \-\-int
+enable interrupt stats
+\-I 5,10
+include interrupt 5 and 10
+\-l, \-\-load
+enable load stats
+\-m, \-\-mem
+enable memory stats
+\-n, \-\-net
+enable network stats
+\-N eth1,total
+include eth1 and total
+\-p, \-\-proc
+enable process stats
+\-s, \-\-swap
+enable swap stats
+\-S swap1,total
+include swap1 and total
+\-t, \-\-time
+enable time/date output
+\-T, \-\-epoch
+enable time counter (seconds since epoch)
+\-y, \-\-sys
+enable system stats
+enable ipc stats
+enable lock stats
+enable raw stats
+enable tcp stats
+enable udp stats
+enable unix stats
+\-M stat1,stat2
+enable internal stats and external plugin stats
+Possible internal stats are
+cpu, cpu24, disk, disk24, disk24old, epoch, int, int24, ipc, load, lock, mem, net, page, page24, proc, raw, swap, swapold, sys, tcp, time, udp, unix
+Possible external plugin stats can be listed using
+dstat \-M list
+\-a, \-\-all
+equals \-cdngy (default)
+\-f, \-\-full
+expand \-C, \-D, \-I, \-N and \-S discovery lists
+\-v, \-\-vmstat
+equals \-pmgdsc \-D total
+show integer values
+disable colors (implies \-\-noupdate)
+disable repetitive headers
+disable intermediate updates when delay > 1
+\-\-output file
+write CSV output to file
+\fBdelay\fR is the delay in seconds between each update
+\fBcount\fR is the number of updates to display before exiting
+The default delay is 1 and count is unspecified (unlimited)
+When invoking dstat with a \fBdelay\fR greater than 1 and without the \fB\-\-noupdate\fR 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, \fBthe 9 intermediate updates are NOT snapshots\fR, 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.
+Using dstat to relate disk\-throughput with network\-usage (eth0), total CPU\-usage and system counters:
+dstat \-dnyc \-N eth0 \-C total \-f 5
+Checking dstat's behaviour and the system's impact on dstat:
+dstat \-taf \-\-debug
+Using the time plugin together with cpu, net, disk, system, load, proc and topcpu plugins:
+dstat \-tcndylp \-M topcpu
+this is identical to
+dstat \-M time,cpu,net,disk,sys,load,proc,topcpu
+Using dstat to relate cpu stats with interrupts per device:
+dstat \-tcyif
+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: [1]\&\\fR
+.sp 1 an-trap an-no-space-flag 1 an-break-flag 1
+Please see the TODO file for known bugs and future plans.
+Paths that may contain external dstat_* plugins:
+(path of binary)/plugins/
+.SS "Performance tools"
+ifstat(1), iftop(8), iostat(1), mpstat(1), netstat(1), nfsstat(1), nstat, vmstat(1), xosview(1)
+.SS "Debugging tools"
+htop, lslk(1), lsof(8), top(1)
+.SS "Process tracing"
+ltrace(1), pmap(1), ps(1), pstack(1), strace(1)
+.SS "Binary debugging"
+ldd(1), file(1), nm(1), objdump(1), readelf(1)
+.SS "Memory usage tools"
+free(1), memusage, memusagestat, slabtop(1)
+.SS "Accounting tools"
+dump\-acct, dump\-utmp, sa(8)
+.SS "Hardware debugging tools"
+dmidecode, ifinfo(1), lsdev(1), lshal(1), lshw(1), lsmod(8), lspci(8), lsusb(8), smartctl(8), x86info(1)
+.SS "Application debugging"
+mailstats(8), qshape(1)
+.SS "Xorg related tools"
+xdpyinfo(1), xrestop(1)
+.SS "Other useful info"
+Written by Dag Wieers [1]\&\\fR
+Homepage at [2]\&\fI\-made/dstat/\fR
+This manpage was initially written by Andrew Pollock [3]\&\\fR for the Debian GNU/Linux system, and updated by Dag Wieers [1]\&\\fR
+.TP 3
+.TP 3
+.TP 3
13 dstat
@@ -16,7 +16,7 @@
from __future__ import generators
-VERSION = '0.6.6svn'
+VERSION = '0.6.7'
def inspath(path):
if os.path.isdir(path) and path not in sys.path:
@@ -90,9 +90,9 @@ class Options:
### Implicit if no terminal is used
if not sys.stdout.isatty():
- self.update = False
- self.header = False
self.color = False
+ self.header = False
+ self.update = False
### Temporary hardcoded for my own project
self.diskset = {
@@ -1865,12 +1865,14 @@ def main():
if 'dstat_'+mod not in globals().keys():
import imp
file, pathname, description = imp.find_module('dstat_'+mod)
### Try loading python plugin
if description[0] == '.py':
# exec compile(readfile(pathname), pathname, 'exec')
exec 'o = dstat_%s()' % mod
- ### Try loading C plugin
+ ### Try loading C plugin
elif description[0] == '.so':
exec 'import dstat_%s' % mod
exec 'o =' % mod
@@ -1880,7 +1882,8 @@ def main():
# print
info(1, 'Module is of unknown type.')
- ### Remove defect stat objects and calculate line length
+ ### Remove defect stat objects and calculate line length
if not o.check():
raise Exception, 'Unknown problem, please report'
# except Exception, e:
@@ -9,7 +9,7 @@
Summary: Versatile resource statistics tool
Name: dstat
-Version: 0.6.6svn
+Version: 0.6.7
Release: 1
License: GPL
Group: System Environment/Base
@@ -60,8 +60,8 @@ confusion, less mistakes.
-* Sun Jun 24 2007 Dag Wieers <> - 0.6.6svn-1
-- Updated to release 0.6.6svn.
+* Tue Feb 26 2008 Dag Wieers <> - 0.6.7-1
+- Updated to release 0.6.7.
* Sat Apr 28 2007 Dag Wieers <> - 0.6.6-1
- Updated to release 0.6.6.
Oops, something went wrong.

0 comments on commit 3d1773b

Please sign in to comment.