MySQL IO高定位 pt-ioprofile

1. pt-ioprofile
功能:方便定位IO问题,可通过IO吞吐量来定位。 

原理:pt-ioprofile的原理是对某个pid附加一个strace进程进行IO分析。

 

2. [root@node3 bin]# ./pt-ioprofile 

通过这个报告我们可以看到,哪个文件占用IO的时间比较多,跟磁盘交互最为繁忙,便于锁定IO问题。

 

3. 参数

-cell            The cell contents.

有三个值:

count  Count of I/O operations

sizes  Sizes of I/O operations

times  I/O operation timing(默认)

 

------------------------------------------

  --run-time        How long to profile.

#监控时长,默认30S

  --save-samples    Filename to save samples in; these can be used for later  analysis.

 参考:https://yq.aliyun.com/articles/647781

posted @ 2021-03-15 11:45  littlevigra  阅读(112)  评论(0编辑  收藏  举报