SSD或者机械硬盘的读取速度查询

1.打开终端输入一下命令

fdisk -l

SSD或者机械硬盘的读取速度查询_第1张图片
其实从这图里面也能看到一些读取速度,为了更专业点咱们直接执行第二个命令

2.第二个命令

  • 后边对应的盘
hdparm -tT /dev/nvme0n1
  • 缓存1s读取速度1.5w M
  • 正常读取速度 1s 880M
root@hfg-PC:/home/hfg# hdparm -tT /dev/nvme0n1

/dev/nvme0n1:

 Timing cached reads:   
30538 MB in  2.00 seconds = 15290.67 MB/sec
 HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
 Timing buffered disk reads: 2634 MB in  3.00 seconds = 877.79 MB/sec
root@hfg-PC:/home/hfg# 
root@hfg-PC:/home/hfg# 
root@hfg-PC:/home/hfg# 
root@hfg-PC:/home/hfg# 
root@hfg-PC:/home/hfg# hdparm -tT /dev/nvme0n1

/dev/nvme0n1:
 Timing cached reads:   31210 MB in  2.00 seconds = 15629.31 MB/sec
 HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
 Timing buffered disk reads: 2650 MB in  3.00 seconds = 883.33 MB/sec
root@hfg-PC:/home/hfg# 

你可能感兴趣的:(Liunx,centos,docker)