View previous topic :: View next topic |
Author |
Message |
no_hope Guru
Joined: 23 Jun 2003 Posts: 482
|
Posted: Sun Aug 10, 2008 6:32 pm Post subject: dstat reporting twice the actual disk activity? |
|
|
I noticed that dstat in the dsk/total column seems to report twice the amount of data transferred to and from disk.
For example, if I am transferring a file over 100Mbps network, scp will report about 10MB/s, dstat's network "send" column will report about 10MB/s, but the disk read column is reporting over 20MB/s. Similar things happens when I move data between drives. pv would report X MB/s and dstat will report 2X for both reads and writes. Copying to /dev/null is also reported to be at twice the rate it should be.
Am I missing something? |
|
Back to top |
|
|
Janne Pikkarainen Veteran
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Sun Aug 10, 2008 6:39 pm Post subject: Re: dstat reporting twice the actual disk activity? |
|
|
no_hope wrote: | I noticed that dstat in the dsk/total column seems to report twice the amount of data transferred to and from disk.
For example, if I am transferring a file over 100Mbps network, scp will report about 10MB/s, dstat's network "send" column will report about 10MB/s, but the disk read column is reporting over 20MB/s. Similar things happens when I move data between drives. pv would report X MB/s and dstat will report 2X for both reads and writes. Copying to /dev/null is also reported to be at twice the rate it should be.
Am I missing something? |
I guess dstat reports the disk throughput in blocks per second, and as one block = 512 bytes, the reported transfer speed seems to be twice the rate it should be. _________________ Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.". |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|