vmstat 指标异常

2016-09-29 16:52:06 +08:00
 defias


使用 vmstat 查看服务器资源指标成这样了, CPU 资源都去哪了?
2205 次点击
所在节点    Linux
5 条回复
gino86
2016-09-29 17:10:31 +08:00
ps aux 看一下程序的运行情况
douyang
2016-09-29 17:14:01 +08:00
你这截图咋看咋不对 , cpu 那栏加起来 等于 100 才对啊
换个命令: dstat -c 截图 瞧瞧
defias
2016-09-29 17:22:03 +08:00
@douyang

root@web-01:~# dstat
You did not select any stats, using -cdngy by default.
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
0 0 100 0 0 0| 72B 4398B| 0 0 | 0 1B| 104 272
0 0 100 0 0 0| 0 0 | 216B 158B| 0 0 | 145 338
0 0 100 0 0 0| 0 0 |2125B 2852B| 0 0 | 142 335
0 0 100 0 0 0| 0 0 | 108B 66B| 0 0 | 127 319
0 0 100 0 0 0| 0 0 | 378B 868B| 0 0 | 113 298
0 0 100 0 0 0| 0 0 | 66B 78B| 0 0 | 417 1209
0 0 100 0 0 0| 0 0 | 280B 774B| 0 0 | 113 340
0 0 100 0 0 0| 0 36k| 346B 478B| 0 0 | 127 363
0 0 100 0 0 0| 0 12k|4635B 14k| 0 0 | 159 411 ^
defias
2016-09-29 17:22:40 +08:00
@gino86 运行情况正常
defias
2016-09-29 17:23:09 +08:00
@douyang 貌似都是空闲的 但不知道为啥 vmstat 的结果会这样

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

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

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

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

© 2021 V2EX