Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-27 17:59:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
42464cbe1f364122d3019f20bd5486eb704581de
42464cbe
1 parent
4f4b15f5
add disk io test command
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
trunk/src/app/srs_app_utility.hpp
trunk/src/app/srs_app_utility.hpp
查看文件 @
42464cb
...
...
@@ -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
:
...
...
请
注册
或
登录
后发表评论