2020年1月14日 星期二

Simple dd command to test HDD read/write performance under linux

Simple dd command to test HDD read/write performance under linux



Read

#dd oflag=direct if=/dev/zero of=/mnt/test bs=512k count=20000

Write
#dd iflag=direct if=/mnt/test of=/dev/null bs=512k count=20000



If you want to test different disk, you can mount /mnt to diffect /dev/sdx
#mkfs -t ext4 /dev/sdb1
#mount /dev/sdb1 /mnt

沒有留言:

張貼留言

How to check CPU&memory loading under ubuntu

How to check CPU&memory loading under ubuntu Memory #free -m CPU #top Or install sw # sudo apt-get install htop #htop