winlin

add disk io test command

@@ -325,6 +325,10 @@ extern void srs_update_proc_stat(); @@ -325,6 +325,10 @@ extern void srs_update_proc_stat();
325 // @see: http://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed 325 // @see: http://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed
326 // for total disk io, @see: cat /proc/vmstat |grep pgpg 326 // for total disk io, @see: cat /proc/vmstat |grep pgpg
327 // for device disk io, @see: cat /proc/diskstats 327 // for device disk io, @see: cat /proc/diskstats
  328 +// @remark, user can use command to test the disk io:
  329 +// time dd if=/dev/zero bs=1M count=2048 of=file_2G
  330 +// @remark, the iotop is right, the iostat and dstat result seems not ok.
  331 +// where the dd command will give the write MBps, it's absolutely right.
328 class SrsDiskStat 332 class SrsDiskStat
329 { 333 {
330 public: 334 public: