sh 测试存储的READ和WRITE速度#speed #storage

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 测试存储的READ和WRITE速度#speed #storage相关的知识,希望对你有一定的参考价值。

--TEST SPEED WITH EXT3--

Go to where the filesystem you mounted is at:

# cd /mnt/r55

-WRITE TEST:-

ZEROS DATA:

# dd if=/dev/zero of=testfile0 bs=8k count=10000; sync;
Hit CONTROL-C after 5 seconds to get results
30703616 bytes (31 MB) copied, 7.94884 s, 3.9 MB/s

RANDOM DATA:

# dd if=/dev/urandom of=testfileR bs=8k count=10000; sync;
Hit CONTROL-C after 5 seconds to get results
65994752 bytes (66 MB) copied, 21.8919 s, 3.0 MB/s

-READ TEST:-

ZEROS DATA:

# dd if=testfile0 of=/dev/null
29368320 bytes (29 MB) copied, 0.780934 s, 37.6 MB/s

RANDOM DATA:

dd if=testfileR of=/dev/null 
30842880 bytes (31 MB) copied, 1.05709 s, 29.2 MB/s

OTHER READ TEST:

# hdparm -Tt /dev/md0
 Timing cached reads:   16280 MB in  2.00 seconds = 8158.98 MB/sec
 Timing buffered disk reads:  42 MB in  3.13 seconds =  13.42 MB/sec
# hdparm -Tt --direct /dev/md0
 Timing O_DIRECT cached reads:   6928 MB in  2.00 seconds = 3466.79 MB/sec
 Timing O_DIRECT disk reads:  58 MB in  3.30 seconds =  17.55 MB/sec

DONT FORGET TO REMOVE THE TEST FILES
# rm testfileR
# rm testfile0

以上是关于sh 测试存储的READ和WRITE速度#speed #storage的主要内容,如果未能解决你的问题,请参考以下文章

FIO read测试结果偏离

在 READ_WRITE 模式下使用大量 MappedByteBuffer 会减慢 Windows 7 的速度

提高 iOS UI 测试速度

缓存模式:Caching Aside / Read Through / Write Through / Write Behind

如何赋予目标存储桶日志传递组 WRITE 和 READ_ACP 权限?

read() 和 recv() 以及 send() 和 write() 之间有啥区别?