V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coolloves
V2EX  ›  问与答

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

  •  
  •   coolloves · 5 天前 · 746 次点击
    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]

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

    如果确实想减少,可以 Google 一下 chrome cache tmpfs ,多半是 chrome cache 的问题,放到 tmpfs 就行了。
    coolloves
        4
    coolloves  
    OP
       5 天前
    @Dreax #3
    @phrack #2
    @billlee #1
    感谢指点,我目前感觉可能 chrome 的概率较大.顺便我也优化下服务.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5559 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:44 · PVG 14:44 · LAX 23:44 · JFK 02:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.