pve 磁盘写入很高,求帮助!

112 天前
 sparkssssssss
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 33 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 942,409 [482 GB]
Data Units Written: 1,494,231 [765 GB]
Host Read Commands: 11,254,531
Host Write Commands: 33,710,969
Controller Busy Time: 1,257
Power Cycles: 98
Power On Hours: 550
Unsafe Shutdowns: 18
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0

2025-05-31
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 35 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Read: 1,332,881 [682 GB]
Data Units Written: 5,833,975 [2.98 TB]
Host Read Commands: 14,934,034
Host Write Commands: 223,420,452
Controller Busy Time: 4,397
Power Cycles: 98
Power On Hours: 1,603
Unsafe Shutdowns: 18
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0

pve 起了两个 debian(server 版本),一个虚拟化,一个 lxc,上面就跑几个脚本,和部分应用(无头 chrome 访问写网站),以前都是泡在 N1 上,后来有了虚拟化,迁移过来的,都是没啥大 io 的操作,什么网络代理,之类的小程序,没有下载 但是不知道为什么会有这么高的写入,

iotop 查看了一小段时间,期间也没看到有什么大的 io,就是有个 mysql 几十秒左右会有一次刷写日志的操作吧,io 瞬时在 10 多 M/s,除此没看到有什么明显大的,
http://cdnjson.com/image/S7jLF2

上面的信息是下午查的,现在又看了一眼,又涨了几十个 G.

Data Units Read: 1,333,394 [682 GB]
Data Units Written: 5,883,858 [3.01 TB]

1219 次点击
所在节点    问与答
4 条回复
billlee
112 天前
先看看 iostat 吧,mysql 默认是每个事务 commit 都会 sync 的。你这 iotop 怎么连 iops 都不显示?
phrack
112 天前
这点写入基本不用担心,之前也遇到过,一天几十 TB 的写入,那种才是异常,一天 100GB 写入,如果有各种程序跑着挺正常的。

如果确实想减少,可以 Google 一下 chrome cache tmpfs ,多半是 chrome cache 的问题,放到 tmpfs 就行了。
Dreax
112 天前
sparkssssssss
112 天前
@Dreax #3
@phrack #2
@billlee #1
感谢指点,我目前感觉可能 chrome 的概率较大.顺便我也优化下服务.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://ex.noerr.eu.org/t/1135655

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX