在FreeBSD上如何查看SATA盘的速度?

时间:2019-11-20 08:53:58  来源:igfitidea点击:

在Linux中,如何查看硬盘的硬件信息?
如何查看硬盘的转速?Linux中如何查看硬盘是多少转的?

最常见的SATA速度:

  • SATA 2.0版:3 Gbit/s,300 MB/s
  • SATA 3.0版:6 Gbit/s,600 MB/s

使用dmesg命令查看硬盘速度

执行以下命令:

# dmesg | grep -i SATA

或者

# dmesg | grep -i transfers

或者,您可以直接查询日志文件:

# grep -i --color transfers /var/log/dmesg.today
# grep -i --color transfers /var/run/dmesg.boot

输出示例:

ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)

使用camcontrol命令查看硬盘速度

语法:

# camcontrol identify {diskNameHere}
# camcontrol identify ada0 | more
# camcontrol identify ada0 | grep -i sata

输出示例:

pass0:  ATA-9 SATA 3.x device
pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
protocol              ATA/ATAPI-9 SATA 3.x

smartctl命令示例

执行以下命令:

# smartctl -a /dev/ada0 | more
# smartctl -a /dev/ada0 | grep '^SATA'
# smartctl -a /dev/ada0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p26 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD60EFRX-68MYMN1
Serial Number:    WD-WX31D55A4CLC
LU WWN Device Id: 5 0014ee 26195240d
Firmware Version: 82.00A82
User Capacity:    6,001,175,126,016 bytes [6.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5700 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Oct 13 22:43:51 2015 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled