FISCO BCOS 2.9.0 中文文档件。好在我们可以选择另一种profile工具——OpenResty的SystemTap,来替代perf帮助我们收集进程调度 器的性能数据。我们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使用。 wget https://raw.githubusercontent.com/openresty/openresty-systemtap-toolkit/ out.folded > offcpu.svg 如果因为网络问题出现sample-bt-off-cpu脚本长时间下载失败,可尝试以下命令: https://gitee.com/mirrors/openresty-systemtap-toolkit/raw/master/sample-bt-off-cpu 得到的Off-CPU火焰图如下图所示: 展开执行交易的核心函数后,位于火焰图中右侧的一堆lo0 码力 | 1489 页 | 107.09 MB | 1 年前3
FISCO BCOS 2.7.2 中文文档件。好在我们可以选择另一种profile工具——OpenResty的SystemTap,来替代perf帮助我们收集进程调度 器的性能数据。我们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使用。 wget https://raw.githubusercontent.com/openresty/openresty-systemtap-toolkit/ out.folded > offcpu.svg 如果因为网络问题出现sample-bt-off-cpu脚本长时间下载失败,可尝试以下命令: https://gitee.com/mirrors/openresty-systemtap-toolkit/raw/master/sample-bt-off-cpu 得到的Off-CPU火焰图如下图所示: 展开执行交易的核心函数后,位于火焰图中右侧的一堆lo0 码力 | 1422 页 | 91.91 MB | 1 年前3
FISCO BCOS 3.6.0 中文文档件。好在我们可以选择另一种profile工具——OpenResty的SystemTap,来替代perf帮助我们收集进程调度 器的性能数据。我们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使用。 wget https://raw.githubusercontent.com/openresty/openresty-systemtap-toolkit/ out.folded > offcpu.svg 如果因为网络问题出现sample-bt-off-cpu脚本长时间下载失败,可尝试以下命令: https://gitee.com/mirrors/openresty-systemtap-toolkit/raw/master/sample-bt-off-cpu 得到的Off-CPU火焰图如下图所示: 展开执行交易的核心函数后,位于火焰图中右侧的一堆lo0 码力 | 1489 页 | 107.09 MB | 1 年前3
FISCO BCOS 2.9.0 中文文档件。好在我们可以选择另一种profile工具——OpenResty的SystemTap,来替代perf帮助我们收集进程调度 器的性能数据。我们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使用。 wget https://raw.githubusercontent.com/openresty/openresty-systemtap-toolkit/ out.folded > offcpu.svg 如果因为网络问题出现sample-bt-off-cpu脚本长时间下载失败,可尝试以下命令: https://gitee.com/mirrors/openresty-systemtap-toolkit/raw/master/sample-bt-off-cpu 得到的Off-CPU火焰图如下图所示: 展开执行交易的核心函数后,位于火焰图中右侧的一堆lo0 码力 | 1489 页 | 107.09 MB | 1 年前3
FISCO BCOS 2.9.0 中文文档眠的等待事件、进程的退出事件。 在较新的Ubuntu或CentOS系统中,上述命令可能会失效,出于性能考虑,这 些系统并不支持记录调度事件。好在我们可以选择另一种profile工具—— OpenResty的SystemTap,来替代perf帮助我们收集进程调度器的性能数据。我 们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使 用。 perf --title="Off-CPU Time Flame Graph" -- colors=io > offcpu.svg wget https://raw.githubusercontent.com/openresty/openresty-systemtap- toolkit/master/sample-bt-off-cpu chmod +x sample-bt-off-cpu ./sample-bt-off-cpu 的内存分配情况的同时不干扰程序的运行。 制作内存火焰图,首先需要向perf动态添加探针以监控标准库的malloc行为, 并采样捕捉正在进行内存申请/释放的函数的调用堆栈: https://gitee.com/mirrors/openresty-systemtap- toolkit/raw/master/sample-bt-off-cpu perf record -e probe_libc:malloc -F 1000 -p `pidof0 码力 | 2649 页 | 201.08 MB | 1 年前3
FISCO BCOS 2.7.2 中文文档眠的等待事件、进程的退出事件。 在较新的Ubuntu或CentOS系统中,上述命令可能会失效,出于性能考虑,这 些系统并不支持记录调度事件。好在我们可以选择另一种profile工具—— OpenResty的SystemTap,来替代perf帮助我们收集进程调度器的性能数据。我 们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使 用。 perf --title="Off-CPU Time Flame Graph" -- colors=io > offcpu.svg wget https://raw.githubusercontent.com/openresty/openresty-systemtap- toolkit/master/sample-bt-off-cpu chmod +x sample-bt-off-cpu ./sample-bt-off-cpu stap > out.folded ./flamegraph.pl --colors=io out.folded > offcpu.svg https://gitee.com/mirrors/openresty-systemtap- toolkit/raw/master/sample-bt-off-cpu 然后绘制内存火焰图: 得到的火焰图如下图所示: ../../../../_images/IMG_52460 码力 | 2520 页 | 211.87 MB | 1 年前3
FISCO BCOS 2.8.0 中文文档眠的等待事件、进程的退出事件。 在较新的Ubuntu或CentOS系统中,上述命令可能会失效,出于性能考虑,这 些系统并不支持记录调度事件。好在我们可以选择另一种profile工具—— OpenResty的SystemTap,来替代perf帮助我们收集进程调度器的性能数据。我 们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使 用。 perf --title="Off-CPU Time Flame Graph" -- colors=io > offcpu.svg wget https://raw.githubusercontent.com/openresty/openresty-systemtap- toolkit/master/sample-bt-off-cpu chmod +x sample-bt-off-cpu ./sample-bt-off-cpu stap > out.folded ./flamegraph.pl --colors=io out.folded > offcpu.svg https://gitee.com/mirrors/openresty-systemtap- toolkit/raw/master/sample-bt-off-cpu 然后绘制内存火焰图: 得到的火焰图如下图所示: ../../../../_images/IMG_52460 码力 | 2534 页 | 212.43 MB | 1 年前3
FISCO BCOS 2.8.0 中文文档件。好在我们可以选择另一种profile工具——OpenResty的SystemTap,来替代perf帮助我们收集进程调度 器的性能数据。我们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使用。 wget https://raw.githubusercontent.com/openresty/openresty-systemtap-toolkit/ out.folded > offcpu.svg 如果因为网络问题出现sample-bt-off-cpu脚本长时间下载失败,可尝试以下命令: https://gitee.com/mirrors/openresty-systemtap-toolkit/raw/master/sample-bt-off-cpu 得到的Off-CPU火焰图如下图所示: 展开执行交易的核心函数后,位于火焰图中右侧的一堆lo0 码力 | 1435 页 | 92.25 MB | 1 年前3
FISCO BCOS 2.9.0 中文文档件。好在我们可以选择另一种profile工具——OpenResty的SystemTap,来替代perf帮助我们收集进程调度 器的性能数据。我们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使用。 wget https://raw.githubusercontent.com/openresty/openresty-systemtap-toolkit/ out.folded > offcpu.svg 如果因为网络问题出现sample-bt-off-cpu脚本长时间下载失败,可尝试以下命令: https://gitee.com/mirrors/openresty-systemtap-toolkit/raw/master/sample-bt-off-cpu 得到的Off-CPU火焰图如下图所示: 展开执行交易的核心函数后,位于火焰图中右侧的一堆lo0 码力 | 1467 页 | 97.74 MB | 1 年前3
FISCO BCOS 2.9.0 中文文档眠的等待事件、进程的退出事件。 在较新的Ubuntu或CentOS系统中,上述命令可能会失效,出于性能考虑,这 些系统并不支持记录调度事件。好在我们可以选择另一种profile工具—— OpenResty的SystemTap,来替代perf帮助我们收集进程调度器的性能数据。我 们在CentOS下使用SystemTap时,只需要安装一些依赖kenerl debuginfo即可使 用。 perf --title="Off-CPU Time Flame Graph" -- colors=io > offcpu.svg wget https://raw.githubusercontent.com/openresty/openresty-systemtap- toolkit/master/sample-bt-off-cpu chmod +x sample-bt-off-cpu ./sample-bt-off-cpu 的内存分配情况的同时不干扰程序的运行。 制作内存火焰图,首先需要向perf动态添加探针以监控标准库的malloc行为, 并采样捕捉正在进行内存申请/释放的函数的调用堆栈: https://gitee.com/mirrors/openresty-systemtap- toolkit/raw/master/sample-bt-off-cpu perf record -e probe_libc:malloc -F 1000 -p `pidof0 码力 | 2649 页 | 201.08 MB | 1 年前3
共 21 条
- 1
- 2
- 3













