阿里云服务器负载很高, iowait 占用 cpu 极高

19 天前
 jiuzhougege
只要使用,就过一会卡顿几分钟,终端都登录不上;
如果不使用,通过抓取的日志发现一天至少卡顿一两次;
始终没有排查出问题来,难道是内存过小(看 kswapd0)?但是使用了两年了没有问题,从今年 7 月开始的,系统服务,磁盘使用等
并没有大的变化

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
36 root 20 0 0 0 0 R 41.9 0.0 57:34.89 kswapd0
262 root 0 -20 0 0 0 S 0.9 0.0 5:09.37 kworker/0:+
32142 mysql 20 0 1571572 259932 0 S 0.5 14.6 2:41.64 mysqld
1 root 20 0 60120 1040 72 D 0.3 0.1 90:48.59 systemd
4751 root 20 0 214372 11624 1312 D 0.3 0.7 0:00.34 python3
4720 root 20 0 214372 11600 1304 D 0.2 0.7 0:00.50 python3
4744 root 20 0 214036 11428 1264 R 0.2 0.6 0:00.38 python3
5024 root 20 0 936544 22668 0 R 0.2 1.3 232:10.54 npm start
5030 root 20 0 871604 22972 0 D 0.2 1.3 232:39.24 npm start
7552 root 20 0 1383000 6824 608 S 0.2 0.4 10:21.88 BT-Task
22361 root 20 0 912376 25300 0 D 0.2 1.4 192:15.47 PM2 v5.4.3+
29400 root 20 0 19452 832 0 S 0.2 0.0 9:28.97 assist_dae+
4705 root 20 0 300892 30668 1252 D 0.1 1.7 0:00.72 python3


12:24:39 AM UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
12:24:42 AM 0 1 2442.75 0.00 0.00 systemd
12:24:42 AM 0 36 0.00 332.82 0.00 kswapd0

Average: UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
Average: 0 1 2813.94 0.00 0.00 systemd
Average: 0 36 0.00 104.81 0.00 kswapd0



有这么一片文章: https://developer.aliyun.com/article/1596569 ,不知道可靠不?
826 次点击
所在节点    服务器
5 条回复
JoeJoeJoe
19 天前
有可能是配置太低,我之前白嫖过一台 1C2G 的,尝试装了个 gitlab ,现象跟 op 差不多
SoulSleep
19 天前
systemd read 这么高 中毒了吧.....
coolair
19 天前
我的机器最近也是 io 占用高,远程都连不上,只能关机重启。
重启就好了。
xiaoxiaomingming
18 天前
可以找阿里云官方售后排查下原因: https://smartservice.console.aliyun.com/service/create-ticket
jiuzhougege
16 天前
@JoeJoeJoe 有道理,确实是内存不足

@SoulSleep 没有,严格检查了各种挖矿和病毒


@coolair 重启也没有解决,但是最后排查的原因是 redis 内存占用过高,没有内存使用限制又没有配置 key 过期策略,导致系统内存极限然后使用 swap ,把 redis key 清理后并且设置了内存使用上限后就好了


@xiaoxiaomingming 官方已经打电话给我推荐配置更好的服务器了,哈哈

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

https://www.v2ex.com/t/1152231

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

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

© 2021 V2EX