CPU性能瓶颈分析定位
1.当一个系统CPU,空闲时间或等待时间小于5%时------------CPU资源耗尽。
2.uptime命令
loadaverage 长期>1-------CPU处理能力不足
3.Vmstat
r b supd free buft cache si so bi in cs us sy id wa st
0 0 8 19900 34680 696816 0 0 29 40 36 43 2 92 2 0
长期r>1 CPU不足
us>50% 优化用户程序,用户过程消耗CPU多
us+sy>80% CPU存在不足
wa>30% IO等待严重,磁盘可能存在瓶颈