背景:
阅读新闻
Linux磁盘或者其他类型服务器压力测试的几款工具简介
[日期:2013-01-05] 来源:Linux社区 作者:linwaterbin [字体:]
㈣ iozone
可支持多进程并发测试
能够输出到excel中进行绘图
也是日常压力测试用得最多的一款工具
安装:
[root@ ~]# yum install -y iozone
参数说明:
-l:最小进程数量
-u:最大进程数量
-r:基本读写单位,以测试对象的块大小为准
如Oracle的块设为8k,则你可以设置为8k
-s:和bonnie++的s参数含义一致
这个值如果太小会影响测试结果
因为很多程序都已经在内存中跑完了
-f:缓存文件
[root@ ~]# iozone -l 1 -u 1 -r 8K -s 128M
Record Size 8 KB
File size set to 131072 KB
Command line used: iozone -l 1 -u 1 -r 8K -s 128M
Output is in Kbytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
Min process = 1
Max process = 1
Throughput test with 1 process
Each process writes a 131072 Kbyte file in 8 Kbyte records
Children see throughput for 1 initial writers = 125057.24 KB/sec
Parent sees throughput for 1 initial writers = 30640.70 KB/sec
Min throughput per process = 125057.24 KB/sec
Max throughput per process = 125057.24 KB/sec
Avg throughput per process = 125057.24 KB/sec
Min xfer = 131072.00 KB
Children see throughput for 1 rewriters = 513780.34 KB/sec
Parent sees throughput for 1 rewriters = 31989.50 KB/sec
Min throughput per process = 513780.34 KB/sec
Max throughput per process = 513780.34 KB/sec
Avg throughput per process = 513780.34 KB/sec
Min xfer = 131072.00 KB
Children see throughput for 1 readers = 889758.12 KB/sec
Parent sees throughput for 1 readers = 849615.75 KB/sec
Min throughput per process = 889758.12 KB/sec
Max throughput per process = 889758.12 KB/sec
Avg throughput per process = 889758.12 KB/sec
Min xfer = 131072.00 KB
这里的值都很大,是因为我们的s参数设置的有点小。
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯