寻觅生命中的那一片浅草......

文章带标签 进程读写

【转】pt-ioprofile定位负载来源文件

pt-ioprofile定位负载来源文件
官网介绍
http://www.percona.com/doc/percona-toolkit/2.0/index.html
wget percona.com/get/percona-toolkit.tar.gz
tar xf percona-toolkit.tar.gz
cd percona-toolkit
perl Makefile.PL
make
make install
查看pid为6378 的进程io情况分析 这里是mysqld进程,对于定位问题更有用的是通过IO的吞吐量来进行定位。使用参数 –cell=sizes,该参数将结果已 B/s 的方式展示出来
pt-ioprofile –profile-pid=6378 –cell=sizes –run-time=1
下面这条可以进行时时观察,
watch -n 1 pt-ioprofile –profile-pid=6378 –cell=sizes –run-time=1

转载自:http://www.huanglihuang.com/post/20.html

2024年三月
« 5月    
 123
45678910
11121314151617
18192021222324
25262728293031