全球主机交流论坛

标题: dd if=/dev/zero of=test bs=64k count=4k oflag=dsync [打印本页]

作者: winder    时间: 2011-7-12 21:15
标题: dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
[root@localhost tmp]# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
4096+0 records in
4096+0 records out
268435456 bytes (268 MB) copied, 228.962 seconds, 1.2 MB/s
机房给出的答复

  1. The oflag=dsync is a improper test mode for RAID arrays it disables the use of
  2. write caching and produces invalid results like in this test:

  3. [root@localhost tmp]# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
  4. 4096+0 records in
  5. 4096+0 records out
  6. 268435456 bytes (268 MB) copied, 228.962 seconds, 1.2 MB/s

  7. The RAID10 array is not operating at 1.2MB/s, also if you run dd if=/dev/zero
  8. of=test bs=64k count=4k oflag=dsync on a single sata drive that's not a RAID it
  9. will produce a value larger then 1.2MB/s and a single sata drive is simply not
  10. faster then a RAID10
复制代码
这是传说中的悲剧还是什么??

[ 本帖最后由 winder 于 2011-7-12 21:16 编辑 ]
作者: xen    时间: 2011-7-12 21:15
1.2M/S还叫杯具?
作者: ericls    时间: 2011-7-12 21:16
悲剧了……
作者: 我累了    时间: 2011-7-12 21:18
原帖由 winder 于 2011-7-12 21:15 发表
[root@localhost tmp]# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
4096+0 records in
4096+0 records out
268435456 bytes (268 MB) copied, 228.962 seconds, 1.2 MB/s
机房给出的答复
The oflag=dsync ...


HE也有这样的情况
做了RD10才30MB左右
把RD10拿了不要还有40MB多
可能是近期出来的卡有问题
发现不是一家机房有这样的情况
作者: ekucn    时间: 2011-7-12 21:18
提示: 作者被禁止或删除 内容自动屏蔽
作者: winder    时间: 2011-7-12 21:21
原帖由 ekucn 于 2011-7-12 21:18 发表
其实做网站根本不要看这个,文件都是几十k的要看的是iops,这个值才是关键。

不知道论坛里面一些人测来测去dd干嘛,也不知道谁带的头

都喜欢折腾硬盘嘛
作者: 245439491    时间: 2011-7-12 21:21
新机,呵呵!悲剧哥
作者: neverno    时间: 2011-7-12 21:26
原帖由 ekucn 于 2011-7-12 09:18 PM 发表
其实做网站根本不要看这个,文件都是几十k的要看的是iops,这个值才是关键。

不知道论坛里面一些人测来测去dd干嘛,也不知道谁带的头

绿帽哥真理帝····
作者: wdlth    时间: 2011-7-12 21:28
有谁的网站一直读写的?MySQL5.5?360%性能优化还包邮啊亲。
作者: winder    时间: 2011-7-12 21:42
原帖由 wdlth 于 2011-7-12 21:28 发表
有谁的网站一直读写的?MySQL5.5?360%性能优化还包邮啊亲。

太牛B了..




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4