美文网首页
Linux磁盘测速

Linux磁盘测速

作者: Armlinux | 来源:发表于2023-02-24 08:30 被阅读0次

写入测速

 root@armbian:~# time dd of=test.file if=/dev/zero  bs=1M count=1000 oflag=direct
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 7.4243 s, 141 MB/s

读取测速

root@armbian:~# time dd if=test.file of=/dev/null  bs=1M count=1000 iflag=direct
976+1 records in
976+1 records out
1024000000 bytes (1.0 GB, 977 MiB) copied, 6.56319 s, 156 MB/s
root@armbian:~# for i in 1 2 3 4 5; do hdparm -tT /dev/mmcblk2; done
/dev/mmcblk2:
 Timing cached reads:   2028 MB in  2.00 seconds = 1014.24 MB/sec
 Timing buffered disk reads: 456 MB in  3.00 seconds = 151.99 MB/sec

相关文章

网友评论

      本文标题:Linux磁盘测速

      本文链接:https://www.haomeiwen.com/subject/wggakdtx.html