全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1474|回复: 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 编辑 ]
2#
发表于 2011-10-20 01:16:03 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
3#
 楼主| 发表于 2011-10-20 01:17:16 | 只看该作者
单硬盘怎么也是几十MB/s嘛,

Raid0的怎么会2.5M/s。
4#
发表于 2011-10-20 01:19:38 | 只看该作者
我的raid0 最高再800m左右 最少也要100左右浮动
5#
 楼主| 发表于 2011-10-20 01:21:58 | 只看该作者
原帖由 metalx 于 2011-10-20 01:19 发表
我的raid0 最高再800m左右 最少也要100左右浮动



所以说很蛋疼,不过你也是用我测2.5MB/s的代码测的?
6#
发表于 2011-10-20 08:19:27 | 只看该作者
原帖由 metalx 于 2011-10-20 01:19 发表
我的raid0 最高再800m左右 最少也要100左右浮动
7#
发表于 2011-10-20 08:19:27 | 只看该作者
原帖由 metalx 于 2011-10-20 01:19 发表
我的raid0 最高再800m左右 最少也要100左右浮动
8#
发表于 2011-10-20 08:24:34 | 只看该作者
你这不正常啊。。。
9#
发表于 2011-10-20 08:50:26 | 只看该作者
10#
发表于 2011-10-20 08:56:34 | 只看该作者
这么少
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-13 16:36 , Processed in 0.062681 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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