CentOS 6.0 with Raid 0- [root@test ~]# dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
- ^C124+0 records in
- 124+0 records out
- 8126464 bytes (8.1 MB) copied, 3.3087 seconds, 2.5 MB/s
复制代码 这个神马问题。 - [root@test ~]# dd if=/dev/zero of=./test.bin bs=1M count=256 conv=fsync
- 256+0 records in
- 256+0 records out
- 268435456 bytes (268 MB) copied, 2.82364 seconds, 95.1 MB/s
- [root@test ~]#
- [root@test ~]# dd if=./test.bin of=/dev/zero bs=1M count=256 iflag=direct
- 256+0 records in
- 256+0 records out
- 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 编辑 ] |