1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add disk io test command

This commit is contained in:
winlin 2014-07-27 18:05:54 +08:00
parent 42464cbe1f
commit b8ae5c63fc

View file

@ -327,7 +327,8 @@ extern void srs_update_proc_stat();
// 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.
// @remark, the iotop is right, the dstat result seems not ok,
// while the iostat only show the number of writes, not the bytes,
// where the dd command will give the write MBps, it's absolutely right.
class SrsDiskStat
{