【Mac】教你看Mac的硬盘写入量,估算使用强度和剩余寿命
MacBook Pro一直用固态硬盘,但固态硬盘是有写入量限制的,up总觉得自己MacBook Pro两年来算是比较中高强度的使用了,今天来看看我自己的MacBook Pro硬盘写入量是多少?
安装工具(免费的)
1、下载smartmontools命令行工具,Homebrew方式安装
brew install smartmontools
然后提示:
brew install smartmontools
Running `brew update --preinstall`...
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/smartmontools
#=#=# ######################################################################## 100.0%
==> Pouring smartmontools-7.2.big_sur.bottle.tar.gz
* /usr/local/Cellar/smartmontools/7.2: 36 files, 1.9MB
==> Running `brew cleanup smartmontools`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
2、使用--smart (-s)命令打开S.M.A.R.T监控:
smartctl -s on disk0
smartctl 7.2 2020-12-30 r5155 [Darwin 20.6.0 x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
NVMe device successfully opened
Use 'smartctl -a' (or '-x') to print SMART (and more) information
3、然后使-a命令查看状态:
smartctl -a disk0
关键信息如下:
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 36 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 107,836,335 [55.2 TB]
Data Units Written: 60,725,169 [31.0 TB]
Host Read Commands: 1,434,337,759
Host Write Commands: 1,143,456,469
Controller Busy Time: 0
Power Cycles: 200
Power On Hours: 1,596
Unsafe Shutdowns: 83
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Read 1 entries from Error Information Log failed: GetLogPage failed: system=0x38, sub=0x0, code=745
可以看到,我的MacBook Pro 写入31T,读取55T,持续使用1600h,非正常关机83次
相比起M1芯片的MacBook Pro就好很多,因为M1的MacBook Pro被爆两个月就100多T出去了

如何看剩余寿命
简单看Percentage Used是多少就行,这个值越高说明寿命不行了,例如这个M1芯片的SSD两个月损耗了3%,而我的intel的MacBook Pro 两年了损耗为0%

总结
我个人觉得自己算是比较重度使用了,剪视频比较多一点,曾经一个台式机的SSD都被我整报废了。这台mbp自购买起到现在刚不到2年的时间,希望有mac的朋友分享你的数据,大家比对一下。