博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
A little problem for pt-pmp
阅读量:7067 次
发布时间:2019-06-28

本文共 1202 字,大约阅读时间需要 4 分钟。

https://bugs.launchpad.net/percona-toolkit/+bug/1320168

 

We use the pt-pmp (a variety for pmp !http://poormansprofiler.org/! by Percona ) tool a lot to analyze our online MySQL problem.

 

But when we execute the pmp, we have found  tps/qps of mysqld drop a lot, such as:

 

[10225s] threads: 256, tps: 8738.19, reads/s: 0.00, writes/s: 8735.39
[10230s] threads: 256, tps: 8749.81, reads/s: 0.00, writes/s: 8745.21
[10235s] threads: 256, tps: 8757.80, reads/s: 0.00, writes/s: 8763.00
[10240s] threads: 256, tps: 8772.80, reads/s: 0.00, writes/s: 8766.40
[10245s] threads: 256, tps: 284.80, reads/s: 0.00, writes/s: 278.40
[10250s] threads: 256, tps: 8036.65, reads/s: 0.00, writes/s: 8038.85
[10255s] threads: 256, tps: 8772.41, reads/s: 0.00, writes/s: 8773.01 
 
We modify the code of pt-pmp to fix it. The patch is below:
 
143,148d142< if gdb -nx --quiet --batch --readnever > /dev/null 2>&1; then<     readnever=--readnever< else<     readnever=< fi<205c199<          gdb $readnever -ex "set pagination 0" -ex "thread apply all bt" -batch -p $OPT_p >> "${OPT_k:-$TMPDIR/percona-toolkit}"--->          gdb -ex "set pagination 0" -ex "thread apply all bt" -batch -p $OPT_p >> "${OPT_k:-$TMPDIR/percona-toolkit}"

 

转载地址:http://eetll.baihongyu.com/

你可能感兴趣的文章
什么是mybatis?
查看>>
【算法导论】学习笔记——第6章 堆排序
查看>>
NS3编译运行
查看>>
Python+Appium自动化环境搭建
查看>>
wap网站seo如何优化呢?
查看>>
Java基础-Date类常用方法介绍
查看>>
js 属性getset
查看>>
cursor:hand与cursor:pointer的区别介绍
查看>>
.net 4.0发布后不能正常显示图片问题
查看>>
小程序使用smart模板的方法
查看>>
HTPC家庭娱乐和XBOX未来发展畅想<另:创业工作机会>
查看>>
MUI下拉刷新
查看>>
C#操纵Excel,此工作薄包含嵌入对象,Office 2007的设定方法
查看>>
【转载】ANSYS 动力分析 (9) - 瞬态动力分析 (1)
查看>>
PHP观察者模式的简单实现
查看>>
Trivial File Transfer Protocol (TFTP)
查看>>
C++版 - LeetCode 144. Binary Tree Preorder Traversal (二叉树先根序遍历,非递归)
查看>>
前端开发之旅-zopim在线即时聊天客服
查看>>
c++模板实现抽象工厂
查看>>
节日营销!这样搞-App运营日常
查看>>