全球主机交流论坛

标题: Raid 0 下面DD出来仅2.5MB/s? [打印本页]

作者: fktol    时间: 2011-10-20 01:14
标题: Raid 0 下面DD出来仅2.5MB/s?
CentOS 6.0 with Raid 0
  1. [root@test ~]# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
  2. ^C124+0 records in
  3. 124+0 records out
  4. 8126464 bytes (8.1 MB) copied, 3.3087 seconds, 2.5 MB/s
复制代码
这个神马问题。
  1. [root@test ~]# dd if=/dev/zero of=./test.bin bs=1M count=256 conv=fsync
  2. 256+0 records in
  3. 256+0 records out
  4. 268435456 bytes (268 MB) copied, 2.82364 seconds, 95.1 MB/s
  5. [root@test ~]#
  6. [root@test ~]# dd if=./test.bin of=/dev/zero bs=1M count=256 iflag=direct
  7. 256+0 records in
  8. 256+0 records out
  9. 268435456 bytes (268 MB) copied, 2.44573 seconds, 110 MB/s
复制代码
收到了回复,

Hello,

The dsync flag will slow down the test with thousands of extra syncs - this isn't appropriate for testing raw write speed. If you'd like to test the raw write speed of the raid set then you can dd directly over the meta device (note that this will destroy the data on the /raid0/ partition - so do it only if you don't have any critical data there). Something like:

----
umount /raid0

dd if=/dev/zero of=/dev/md2 bs=64k count=128k
----


After you're done you will need to recreate the /raid0 filesystem and remount it:

----
mkfs.ext4 /dev/raid0

mount /raid0
----

Regards.


--------------------------------------------------------------------------------

[ 本帖最后由 fktol 于 2011-10-20 11:16 编辑 ]
作者: caboo    时间: 2011-10-20 01:16
提示: 作者被禁止或删除 内容自动屏蔽
作者: fktol    时间: 2011-10-20 01:17
单硬盘怎么也是几十MB/s嘛,

Raid0的怎么会2.5M/s。
作者: metalx    时间: 2011-10-20 01:19
我的raid0 最高再800m左右 最少也要100左右浮动
作者: fktol    时间: 2011-10-20 01:21
原帖由 metalx 于 2011-10-20 01:19 发表
我的raid0 最高再800m左右 最少也要100左右浮动



所以说很蛋疼,不过你也是用我测2.5MB/s的代码测的?
作者: aigo    时间: 2011-10-20 08:19
原帖由 metalx 于 2011-10-20 01:19 发表
我的raid0 最高再800m左右 最少也要100左右浮动

作者: aigo    时间: 2011-10-20 08:19
原帖由 metalx 于 2011-10-20 01:19 发表
我的raid0 最高再800m左右 最少也要100左右浮动

作者: lofsy    时间: 2011-10-20 08:24
你这不正常啊。。。
作者: yu.gs尊    时间: 2011-10-20 08:50

作者: cquyf    时间: 2011-10-20 08:56
这么少
作者: ATOM    时间: 2011-10-20 08:59
raid1的话会是几M的,我的是softriad1.
作者: mapleaf    时间: 2011-10-20 09:39
问题大了
作者: tobeychan    时间: 2011-10-20 09:41
跟机器的内核有关系的
作者: 格格男    时间: 2011-10-20 09:56
提示: 作者被禁止或删除 内容自动屏蔽
作者: fktol    时间: 2011-10-20 11:17
原帖由 ATOM 于 2011-10-20 08:59 发表
raid1的话会是几M的,我的是softriad1.



Raid0.~
作者: Kvm    时间: 2011-10-20 11:20
让你格式成ext4再看看速度
作者: 瘦够了    时间: 2011-10-20 16:37
我也是这个情况,3块300G的SAS做raid0,跑出来只有几M,蛋疼
作者: onepx    时间: 2011-10-20 17:35
我一直怀疑dd命令测的是什么,我也有楼上的情况,企业级硬盘,raid卡,dd出来2m...




欢迎光临 全球主机交流论坛 (https://loc.888543.xyz/) Powered by Discuz! X3.4