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:
parent
4f4b15f500
commit
42464cbe1f
1 changed files with 4 additions and 0 deletions
|
@ -325,6 +325,10 @@ extern void srs_update_proc_stat();
|
||||||
// @see: http://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed
|
// @see: http://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed
|
||||||
// for total disk io, @see: cat /proc/vmstat |grep pgpg
|
// for total disk io, @see: cat /proc/vmstat |grep pgpg
|
||||||
// for device disk io, @see: cat /proc/diskstats
|
// 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
|
class SrsDiskStat
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue