跳转至

dd hdparm 磁盘测速

概要: 使用ddhdparm命令简单地测试Linux磁盘读写性能

创建时间: 2023.07.31 23:43:18

更新时间: 2023.07.31 23:52:45

关闭缓存测速

关闭缓存命令

Bash
hdparm -W 0 /dev/sdb
测速1GB大小文件
Bash
dd if=/dev/zero of=/mnt/sdb/testfile bs=1G count=1 oflag=direct

开启缓存测速

开启缓存命令

Bash
hdparm -W 1 /dev/sdb
测速1GB大小文件
Bash
dd if=/dev/zero of=/mnt/sdb/testfile bs=1G count=1 oflag=direct