如何检测硬盘的读写IO速度
2016-09-18 19:27
260 查看
检测硬盘的读写IO速度 1. 使用hdparm命令[root@server0 ~]# hdparm -Tt /dev/sda/dev/sda: Timing cached reads: 8528 MB in 2.00 seconds = 4266.81 MB/sec Timing buffered disk reads: 218 MB in 3.05 seconds = 71.38 MB/sec可以看到,2秒钟读取了8528M的缓存,约合4266.81MB/sec在3.05秒钟读取了218M磁盘(物理读),读取速度约合71.38MB/sec 2.使用dd命令相对于hdparm来说,不够专业,但对于平时的简单评估来说是首选的在使用前首先了解两个特殊设备:
/dev/null 伪设备,回收站.写该文件不会产生IO
/dev/zero 伪设备,会产生空字符流,对它不会产生IO
测试方法:测试io写的速度[root@server0 mnt]# time dd if=/dev/zero of=/mnt/test bs=1M count=10241024+0 records in1024+0 records out1073741824 bytes (1.1 GB) copied, 23.6557 s, 45.4 MB/s real0m23.737suser0m0.000ssys0m0.858s可以看到,在23s中,生成了一个1.1G的文件,IO写的速度约为45.4M/sec测试io读的速度[root@server0 mapper]# time dd if=/dev/mapper/rhel-home of=/dev/null bs=8k391065+0 records in391064+0 records out3203596288 bytes (3.2 GB) copied, 42.3702 s, 75.6 MB/sreal0m42.371suser0m0.109ssys0m10.093s在42s里读取了3.2G的文件,计算得75.6MB/sec同时测试io读写速度[root@server0 mnt]# time dd if=/dev/sda1 of=/mnt/test bs=8k25600+0 records in25600+0 records out209715200 bytes (210 MB) copied, 2.89722 s, 72.4 MB/sreal0m2.898suser0m0.012ssys0m0.470s
/dev/null 伪设备,回收站.写该文件不会产生IO
/dev/zero 伪设备,会产生空字符流,对它不会产生IO
测试方法:测试io写的速度[root@server0 mnt]# time dd if=/dev/zero of=/mnt/test bs=1M count=10241024+0 records in1024+0 records out1073741824 bytes (1.1 GB) copied, 23.6557 s, 45.4 MB/s real0m23.737suser0m0.000ssys0m0.858s可以看到,在23s中,生成了一个1.1G的文件,IO写的速度约为45.4M/sec测试io读的速度[root@server0 mapper]# time dd if=/dev/mapper/rhel-home of=/dev/null bs=8k391065+0 records in391064+0 records out3203596288 bytes (3.2 GB) copied, 42.3702 s, 75.6 MB/sreal0m42.371suser0m0.109ssys0m10.093s在42s里读取了3.2G的文件,计算得75.6MB/sec同时测试io读写速度[root@server0 mnt]# time dd if=/dev/sda1 of=/mnt/test bs=8k25600+0 records in25600+0 records out209715200 bytes (210 MB) copied, 2.89722 s, 72.4 MB/sreal0m2.898suser0m0.012ssys0m0.470s
相关文章推荐
- VPS性能测试:CPU内存,硬盘IO读写,带宽速度,UnixBench和压力测试
- Linux 如何测试 IO 性能(磁盘读写速度)
- linux下CPU、内存、IO、网络的压力测试,硬盘读写速度测试,Linux三个系统资源监控工具
- Linux 如何测试 IO 性能(磁盘读写速度)
- Linux 如何测试 IO 性能(磁盘读写速度)
- Linux有问必答:如何使用Linux命令行检测DVD刻录机的名字和读写速度
- VPS性能测试:CPU内存,硬盘IO读写,带宽速度,UnixBench和压力测试
- 如何用命令测试Linux 硬盘的读写速度
- 检测硬盘读写速度的命令
- Linux 如何测试 IO 性能(磁盘读写速度)
- Linux 如何测试 IO 性能(磁盘读写速度)
- VPS性能测试:CPU内存,硬盘IO读写,带宽速度,UnixBench和压力测试
- 如何使用Linux命令行检测DVD刻录机的名字和读写速度
- VPS性能测试:CPU内存,硬盘IO读写,带宽速度,UnixBench和压力测试
- 查看linux服务器硬盘IO读写负载
- [转]如何在sql2005里简单查看sql语句的执行时间和IO读写
- Centos下测试硬盘读写速度
- 【讨论】如何降低nandflash读写速度?
- 使用time+dd测试硬盘读写速度
- linux测试硬盘读写速度