全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1473|回复: 17
打印 上一主题 下一主题

Raid 0 下面DD出来仅2.5MB/s?

[复制链接]
跳转到指定楼层
1#
发表于 2011-10-20 01:14:56 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
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 编辑 ]
18#
发表于 2011-10-20 17:35:03 | 只看该作者
我一直怀疑dd命令测的是什么,我也有楼上的情况,企业级硬盘,raid卡,dd出来2m...
17#
发表于 2011-10-20 16:37:38 | 只看该作者
我也是这个情况,3块300G的SAS做raid0,跑出来只有几M,蛋疼
16#
发表于 2011-10-20 11:20:22 | 只看该作者
让你格式成ext4再看看速度
15#
 楼主| 发表于 2011-10-20 11:17:12 | 只看该作者
原帖由 ATOM 于 2011-10-20 08:59 发表
raid1的话会是几M的,我的是softriad1.



Raid0.~
14#
发表于 2011-10-20 09:56:48 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
13#
发表于 2011-10-20 09:41:15 | 只看该作者
跟机器的内核有关系的
12#
发表于 2011-10-20 09:39:28 | 只看该作者
问题大了
11#
发表于 2011-10-20 08:59:20 | 只看该作者
raid1的话会是几M的,我的是softriad1.
10#
发表于 2011-10-20 08:56:34 | 只看该作者
这么少
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-13 13:00 , Processed in 0.073284 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表