# Linux 性能分析:top、vmstat、iostat 与 perf 实战 ## 快速体检 ```bash top -H -p vmstat 1 5 iostat -x 1 5 pidstat -d 1 5 ``` ## 网络与系统 ```bash sar -n DEV 1 5 ss -tna | head ``` ## CPU 热点 ```bash perf top perf record -F 99 -p -- sleep 30 && perf report ``` ## 观察要点 - CPU/负载、上下文切换与软中断 - 磁盘队列与等待、读写延迟 - 网络吞吐与错误包 ## 总结 通过分层采样与指标观察,可快速定位系统瓶颈并指导优化方向。
微信公众账号
微信扫一扫加关注
发表评论 取消回复