免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2907 | 回复: 3
打印 上一主题 下一主题

linux 磁盘io测试问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-07-23 00:28 |只看该作者 |倒序浏览
[root@rac1 temp]# pwd
/home/temp
[root@rac1 temp]# ./Bonnie -d /home/temp/test -s 100m -m embed
File '/home/temp/test/Bonnie.1148', size: 104857600
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
embed     100  7252 82.7 131248 51.3 353143 100.0  7766 79.6 1362680 106.5 43996.2 99.0
[root@rac1 temp]#
--Block---
K/sec
1362680 太夸张了巴 why?

论坛徽章:
0
2 [报告]
发表于 2005-07-23 15:45 |只看该作者

linux 磁盘io测试问题?

是内存里的吧,把文件加大呢?比如加大到内存的两倍或者4倍???

论坛徽章:
0
3 [报告]
发表于 2005-07-23 16:35 |只看该作者

linux 磁盘io测试问题?

参考一下这个,在我机器上做的:
[root@FC4 /]# hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads:   96 MB in  3.07 seconds =  31.32 MB/sec
[root@FC4 /]# hdparm -T /dev/sda

/dev/sda:
Timing cached reads:   1236 MB in  2.00 seconds = 618.09 MB/sec

论坛徽章:
0
4 [报告]
发表于 2005-07-23 16:37 |只看该作者

linux 磁盘io测试问题?

这是hdparm里两个参数的含义:
       -T     Perform  timings  of  cache  reads for benchmark and comparison purposes.  For meaningful results,
              this operation should be repeated 2-3 times on an otherwise inactive system (no other active  pro-
              cesses)  with  at  least a couple of megabytes of free memory.  This displays the speed of reading
              directly from the Linux buffer cache without disk access.   This  measurement  is  essentially  an
              indication of the throughput of the processor, cache, and memory of the system under test.  If the
              -t flag is also specified, then a correction factor based on the outcome of -T  will  be  incorpo-
              rated into the result reported for the -t operation.

       -t     Perform  timings  of  device reads for benchmark and comparison purposes.  For meaningful results,
              this operation should be repeated 2-3 times on an otherwise inactive system (no other active  pro-
              cesses)  with  at  least a couple of megabytes of free memory.  This displays the speed of reading
              through the buffer cache to the disk without any prior caching of data.  This  measurement  is  an
              indication  of  how  fast  the  drive  can  sustain sequential data reads under Linux, without any
              filesystem overhead.  To ensure accurate measurements, the buffer cache is flushed during the pro-
              cessing of -t using the BLKFLSBUF ioctl.  If the -T flag is also specified, then a correction fac-
              tor based on the outcome of -T will be incorporated into the result reported for the -t operation.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP