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

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2021-11-04
  • 2021-09-13
  • 2022-01-25
  • 2022-12-23
相关资源
相似解决方案