部分运行macOS的笔记本电脑出现了惊人的SSD写入量

OwerGrowen-avatar

OwerGrowen

2021-02-18T09:41:40+00:00

M1的新款,两个月写入18TB
[url]https://twitter.com/never_released/status/1360657594197671941[/url]
部分x86的机型也出现了这种情况,状况较轻,一个月写了1T
[url]https://www.v2ex.com/t/755498[/url]
从M1机型的状况来看,无论8G内存还是16G内存版本,都存在高写入量的问题,推测跟macOS的swap机制有关
[url]https://www.reddit.com/r/mac/comments/kjlpo8/a_potential_longevity_problem_with_the_m1_macs/[/url]
[url]https://linustechtips.com/topic/1306757-m1-mac-owners-are-experiencing-extremely-high-ssd-writes-over-short-periods-of-time-likely-thanks-to-aggressive-swap/[/url]
这是我的黑果本的数据,感觉还算正常,8G内存,swap使用量400M左右,开了一个远程桌面,10来个Chrome标签,QQ微信iterm和Word
[img]https://img.nga.178.com/attachments/mon_202102/23/9aQj04-1b4jKjT3cSsg-59.jpg[/img]

可以用brew install smartmontools和smartctl -a /dev/diskX来确定自己的写入量,diskX要根据diskutil list的内容来判断

更新:疯狂写入的进程是kernel_task和msd,如果msd的读写量异常请在Spotlight设置中排除掉系统盘,推测是索引建立异常导致疯狂读写。
[url]https://applech2.com/archives/20210216-macos-swap-affect-apple-m1-mac-ssd-health.html[/url]
FBL-avatar

FBL

我觉得还要看看那个程序导致的
之前我系统Safari因为一个扩展内存泄漏也是大量写磁盘
sPwn-avatar

sPwn

这个可能是 Big Sur 的 bug

我司有几台普通的 MBP 升级系统后也出现了长期疯狂读写硬盘的现象,我们估计大概是索引出了问题
Mohamed_Ahmed-avatar

Mohamed_Ahmed

加速硬盘报废之后就可以换新款了,反正ssd也是焊死的。[img]http://img.nga.178.com/attachments/mon_201209/14/-47218_5052bc4cc6331.png[/img]
Mohamed_Ahmed-avatar

Mohamed_Ahmed

[quote][pid=495378837,25655015,1]Reply[/pid] Post by [uid=23172124]Minath[/uid] (2021-02-23 18:15):
这个可能是 Big Sur 的 bug
我司有几台普通的 MBP 升级系统后也出现了长期疯狂读写硬盘的现象,我们估计大概是索引出了问题[/quote]内存够大全程不使用swap能避免疯狂写入么?
WoIf-avatar

WoIf

果子的SSD不是拿a12芯片跑的么

那寿命怕不是比tlc闪存都久
OwerGrowen-avatar

OwerGrowen

Reply to [pid=495378837,25655015,1]Reply[/pid] Post by [uid=23172124]Minath[/uid] (2021-02-23 18:15)
我的黑果是11.2,暂时没有这个问题,swap使用量也正常,看起来可能是跟机器本身的配置也有一定的关系
wasian-avatar

wasian

也可能是数据统计问题,毕竟是新平台
OwerGrowen-avatar

OwerGrowen

Reply to [pid=495398588,25655015,1]Reply[/pid] Post by [uid=62165221]我要开小号A[/uid] (2021-02-23 19:31)
smartctl的结果里是有寿命百分比一栏的,以写入量来推算的寿命和现在的TLC SSD差不多
OwerGrowen-avatar

OwerGrowen

Reply to [pid=495378837,25655015,1]Reply[/pid] Post by [uid=23172124]Minath[/uid] (2021-02-23 18:15)
msd和kernel_task疯狂读写基本确定是Spotlight的问题了
Tupyop-avatar

Tupyop

没中招,17款mbp[s:a2:那个…]

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 31 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Read: 66,957,568 [34.2 TB]
Data Units Written: 62,039,639 [31.7 TB]
Host Read Commands: 1,344,843,586
Host Write Commands: 1,008,266,067
Controller Busy Time: 2,311
Power Cycles: 45,911
Power On Hours: 1,244
Unsafe Shutdowns: 80
Media and Data Integrity Errors: 0
Error Information Log Entries: 2
Oscidor-avatar

Oscidor

过分了呀[s:ac:愁]