From 42464cbe1f364122d3019f20bd5486eb704581de Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 27 Jul 2014 17:59:19 +0800 Subject: [PATCH] add disk io test command --- trunk/src/app/srs_app_utility.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/src/app/srs_app_utility.hpp b/trunk/src/app/srs_app_utility.hpp index a8d6b6af9..63a4c60f5 100644 --- a/trunk/src/app/srs_app_utility.hpp +++ b/trunk/src/app/srs_app_utility.hpp @@ -325,6 +325,10 @@ extern void srs_update_proc_stat(); // @see: http://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed // for total disk io, @see: cat /proc/vmstat |grep pgpg // for device disk io, @see: cat /proc/diskstats +// @remark, user can use command to test the disk io: +// time dd if=/dev/zero bs=1M count=2048 of=file_2G +// @remark, the iotop is right, the iostat and dstat result seems not ok. +// where the dd command will give the write MBps, it's absolutely right. class SrsDiskStat { public: