Centos测试磁盘读写速度

  |   0 评论   |   0 浏览

测试磁盘写速度

time dd if=/dev/zero of=test.dd bs=1M count=2000

以下是测试结果。

[root@in800.com ~]# time dd if=/dev/zero of=test.dd bs=1M count=2000

2000+0 records in

2000+0 records out

2097152000 bytes (2.1 GB) copied, 2.22858 s, 941 MB/s

real 0m2.469s

user 0m0.003s

sys 0m2.373s

测试磁盘读速度

**time dd if=test.dd of=/dev/null bs=1M **

[root@in800.com ~]# time dd if=test.dd of=/dev/null bs=1M

2000+0 records in

2000+0 records out

2097152000 bytes (2.1 GB) copied, 1.66884 s, 1.3 GB/s

real 0m1.673s

user 0m0.002s

sys 0m1.570s

从数据来看,这台机器的读写速度是不错的,写速度941M/s 读速度达到1.3GB/s

由于测试的机器是全新的,数值会比较华丽。配置越好数值越好。读写速度只要不低于50M/s 用起来都算可以的。


标题:Centos测试磁盘读写速度
作者:zytops
地址:https://www.zytops.com/articles/2022/11/09/1667986787327.html