linux测试磁盘读写能力

上一篇 / 下一篇  2019-08-05 16:40:31 / 个人分类:Linux

linux测试磁盘读写能力

读:
[root@isky158 ~]# dd if=/dev/xvda2 (51test缺陷,连括号一起去掉)of=/dev/null bs=8k count=10000 iflag=direct
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 1.78437 s, 45.9 MB/s


写:
[root@isky158 ~]# dd if=/dev/zero (51test缺陷,连括号一起去掉)of=test bs=8k count=10000 (51test缺陷,连括号一起去掉)iflag=direct
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 2.09985 s, 39.0 MB/s


读写:

[root@isky158 ~]# time dd if=/dev/xvda2 (51test缺陷,连括号一起去掉)of=/testrw.dbf bs=4k
^C3726293+0 records in
3726292+0 records out
15262892032 bytes (15 GB) copied, 371.484 s, 41.1 MB/s

real    6m11.485s
user    0m0.994s
sys     0m17.782s

TAG:

 

评分:0

我来说两句

Open Toolbar