【性能】性能瓶颈分析(综合)--编辑中

分析思路

1、带宽达到阈值

2、软件处理不过来:用top命令查看是否有线程已经占满cpu、是否锁太多、是否内存拷贝太多

3、内存使用量、换页中断/缺页中断频率

网络性能瓶颈

分析手段

用profile 工具查找软件性能瓶颈

https://blog.csdn.net/bandaoyu/article/details/107970558

如何判断网络达到瓶颈

https://blog.csdn.net/bandaoyu/article/details/120218024

内核优化(减少解决time_wait连接过多)

http://t.csdn.cn/56s6u

测试手段

使用iPerf进行网络吞吐量测试

https://blog.csdn.net/bandaoyu/article/details/108604995

软件性能瓶颈

分析软件在哪些函数耗时最多:《perf + 火焰图分析程序性能》https://blog.csdn.net/bandaoyu/article/details/108765693

sysstat--系统性能监控神器(性能信息收集)--iostat、sar、top、htop

https://blog.csdn.net/bandaoyu/article/details/103195128

缺页中断:https://blog.csdn.net/bandaoyu/article/details/113559126

综合性能分析工具

Linux工具进阶

https://linuxtools-rst.readthedocs.io/zh_CN/latest/advance/index.html

 iostat 监视I/O子系统

https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/iostat.html

nmon工具。里面记录的参数很全,基本上定位性能的指标(比如cpu、内存、每个cpu、每个磁盘分区的读写、磁盘busy情况、网络吞吐、网络包数据等)都能够统计到。

Nmon工具介绍:http://venus3.desktopqa.com/AppStore/Wiki/Pages/WikiArticles.aspx?id=5256

Nmon分析指标详解:http://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.cmds4/nmon.htm

案例:

性能测试问题排查一例——网络带宽瓶颈

https://blog.csdn.net/lin443514407lin/article/details/54580047

使用nmon analyzer 分析网络性能 

https://zhuanlan.zhihu.com/p/143219027

优化方向

内核优化

http://t.csdn.cn/eGYot

NUMA(Non-Uniform Memory Access)

https://blog.csdn.net/bandaoyu/article/details/122959097

 

posted on 2022-10-04 01:22  bdy  阅读(80)  评论(0编辑  收藏  举报

导航