Git Product home page Git Product logo

Comments (10)

dagwieers avatar dagwieers commented on May 28, 2024

What version of dstat are you using ?

from dstat.

valgog avatar valgog commented on May 28, 2024
$ dstat --version
Dstat 0.7.2
Written by Dag Wieers <[email protected]>
Homepage at http://dag.wieers.com/home-made/dstat/

Platform posix/linux2
Kernel 2.6.32-5-amd64
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) 
[GCC 4.4.5]

Terminal type: xterm (color support)
Terminal size: 77 lines, 167 columns

Processors: 16
Pagesize: 4096
Clock ticks per secs: 100

internal:
        aio, cpu, cpu24, disk, disk24, disk24old, epoch, fs, int, int24, io, ipc, load, lock, mem, net, page, page24, proc, raw, socket, swap, swapold, sys, tcp, 
        time, udp, unix, vm
/usr/share/dstat:
        battery, battery-remain, cpufreq, dbus, disk-tps, disk-util, dstat, dstat-cpu, dstat-ctxt, dstat-mem, fan, freespace, gpfs, gpfs-ops, helloworld, 
        innodb-buffer, innodb-io, innodb-ops, lustre, memcache-hits, mysql-io, mysql-keys, mysql5-cmds, mysql5-io, mysql5-keys, net-packets, nfs3, nfs3-ops, nfsd3, 
        nfsd3-ops, ntp, postfix, power, proc-count, qmail, rpc, rpcd, sendmail, snooze, squid, test, thermal, top-bio, top-bio-adv, top-childwait, top-cpu, 
        top-cpu-adv, top-cputime, top-cputime-avg, top-int, top-io, top-io-adv, top-latency, top-latency-avg, top-mem, top-oom, utmp, vm-memctl, vmk-hba, vmk-int, 
        vmk-nic, vz-cpu, vz-io, vz-ubc, wifi

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

You are correct, this wasn't the case in older kernels because /sys/block did not include certain types of block devices. Unfortunately this is no longer the case :-/

from dstat.

franklimstrand avatar franklimstrand commented on May 28, 2024

Hi Dag

(Dstat 0.7.0 on RH6)

The same issue is with virtual Veritas (VxVM) devices:

Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util
sdh 0,00 1,00 1,00 1800,00 0,01 108,95 123,90 2,04 1,14 0,11 19,40
VxVM32993 0,00 4,00 1340,00 1804,00 73,63 108,96 118,94 2,84 0,90 0,22 70,50

dstat doubles the disk throughput:

----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
3 8 84 3 0 2| 84M 218M| 123M 61M| 0 0 | 101k 84k
3 8 84 2 0 2| 92M 220M| 126M 67M| 0 0 | 110k 96k

/FrankL

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

Can someone verify if this problem still affects master ? Since I cannot reproduce it, someone may already have fixed it.

I'd like to release 0.7.3 sooner rather than later...

from dstat.

franklimstrand avatar franklimstrand commented on May 28, 2024

Hi Dag

I will test this, give me a day or two.

/FrankL

from dstat.

franklimstrand avatar franklimstrand commented on May 28, 2024

Hi Dag

Tested with "Dstat 0.7.2svn" and the problem is still present.

With regards
Frank Limstrand

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

@franklimstrand I cannot reproduce it on a RHEL6.5 system:

[dag@moria ~]$ dstat -d -D total,sda,dm-0,dm-1,dm-2,dm-3
-dsk/total----dsk/sda-----dsk/dm-0----dsk/dm-1----dsk/dm-2----dsk/dm-3-
 read  writ: read  writ: read  writ: read  writ: read  writ: read  writ
  41k  134k:  28k  134k:  17B    0 :9890B 5030B:  11k   85k:7423B   44k
   0    44k:   0    44k:   0     0 :   0     0 :   0    44k:   0     0 
   0   728k:   0   728k:   0     0 :   0     0 :   0   728k:   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0   488k:   0   488k:   0     0 :   0     0 :   0   488k:   0     0 
   0   448k:   0   448k:   0     0 :   0     0 :   0   448k:   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0    12k:   0    12k:   0     0 :   0     0 :   0     0 :   0    12k
   0   472k:   0   472k:   0     0 :   0     0 :   0   472k:   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 
   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 

As you can tell, the total value does not include the logical volumes (dm) devices.

from dstat.

franklimstrand avatar franklimstrand commented on May 28, 2024

Hi Dag

Let me show you:

[root@myhost fs18]# dd if=/dev/zero of=myfile.bin bs=1M count=20000
^C8480+0 records in
8480+0 records out
8891924480 bytes (8.9 GB) copied, 19.9872 s, 445 MB/s

iostat -dmx 1 sdct sdan VxVM32977
Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util
sdan 0.00 0.00 0.00 842.00 0.00 210.44 511.85 1.25 1.48 0.99 83.70
sdct 0.00 0.00 0.00 845.00 0.00 211.06 511.55 1.26 1.49 1.00 84.40
VxVM32977 0.00 0.00 0.00 845.00 0.00 422.00 1022.79 1.73 2.04 1.03 87.40

./dstat -d --disk-util
-dsk/total->
read writ>
2650k 6396k>
2208k 851M>
1216k 843M>
1344k 852M>
3888k 837M>
824k 841M>

Dstat is including the VxVM (meta) device which it should not? The VxVM device is the sum of sdan and sdct.
HTH.

/FrankL

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

@franklimstrand Oh I am sorry. I thought this was still related to LVM devices (from the topic) and misread your comments. VxVM devices are new to me, but I included it now to the diskfilter so these devices are excluded from the total value. (See commit 5f5481b)

Please test and reopen if it doesn't do what is expected. Thanks !

from dstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.