用法举例:

# 16个io线程
# 随机读写10GB的测试文件
echo "{nThreads:16,fileSizeMB:10000,r:true,w:true}" | mongoperf
 

# 先创建10GB的测试文件 9GB... testing... ... # IO跑满后,得出ops和吞吐量 new thread, total running : 16 read:write:7670 ops/sec 29 MB/sec # 可以使用iostat观察磁盘io状态 iostat -xmt 1

相关文章: