性能分析

 

1、vmstat--虚拟内存统计

root@local:~# vmstat 2 1
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 0 3498472 315836 3819540 0 0 0 1 2 0 0 0 100 0

 

    b 表示阻塞的进程,

 

 

 2、iostat--用于报告中央处理器统计信息

备注:如果 %util 接近 100%,说明产生的I/O请求太多,I/O系统已经满负荷,该磁盘可能存在瓶颈。如果 svctm 比较接近 await,说明 I/O 几乎没有等待时间;如果 await 远大于 svctm,说明I/O 队列太长,io响应太慢,则需要进行必要优化。如果avgqu-sz比较大,也表示有当量io在等待。

3、sar

https://blog.csdn.net/liyongbing1122/article/details/89517282

 

posted @ 2021-12-23 21:27  harrison辉  阅读(57)  评论(0)    收藏  举报