1、查看文档
2、root@pm1:/root# pt-diskstats --devices-regex=sda1 --interval=5 --iterations=10 --show-timestamps
#ts device rd_s rd_avkb rd_mb_s rd_mrg rd_cnc rd_rt wr_s wr_avkb wr_mb_s wr_mrg wr_cnc wr_rt busy in_prg io_s qtime stime
22:43:05 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:05 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.4 16.0 0.0 75% 0.0 2.0 0% 0 0.4 0.0 2.0
22:43:10 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:15 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:20 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:25 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:30 sda1 17.6 4.0 0.1 0% 0.1 7.1 0.0 0.0 0.0 0% 0.0 0.0 1% 0 17.6 6.7 0.4
22:43:35 sda1 0.0 0.0 0.0 0% 0.0 0.0 1.2 4.0 0.0 0% 0.0 0.0 0% 0 1.2 0.0 0.0
22:43:40 sda1 2.0 20.0 0.0 0% 0.0 15.6 0.2 32.0 0.0 0% 0.0 0.0 2% 0 2.2 7.0 7.2
22:43:45 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.4 20.0 0.0 80% 0.0 0.3 0% 0 0.4 0.0 0.3
--devices-regex:查看某块磁盘的状态
--interval:每次输出IO的间隔时间
--show-timestamps:在每行的输出显示时间
--iterations:打印N行的磁盘IO状态
未完待续
- root@pm1:/root# perldoc pt-diskstats
#ts device rd_s rd_avkb rd_mb_s rd_mrg rd_cnc rd_rt wr_s wr_avkb wr_mb_s wr_mrg wr_cnc wr_rt busy in_prg io_s qtime stime
22:43:05 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:05 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.4 16.0 0.0 75% 0.0 2.0 0% 0 0.4 0.0 2.0
22:43:10 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:15 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:20 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:25 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.0 0.0 0.0 0% 0.0 0.0 0% 0 0.0 0.0 0.0
22:43:30 sda1 17.6 4.0 0.1 0% 0.1 7.1 0.0 0.0 0.0 0% 0.0 0.0 1% 0 17.6 6.7 0.4
22:43:35 sda1 0.0 0.0 0.0 0% 0.0 0.0 1.2 4.0 0.0 0% 0.0 0.0 0% 0 1.2 0.0 0.0
22:43:40 sda1 2.0 20.0 0.0 0% 0.0 15.6 0.2 32.0 0.0 0% 0.0 0.0 2% 0 2.2 7.0 7.2
22:43:45 sda1 0.0 0.0 0.0 0% 0.0 0.0 0.4 20.0 0.0 80% 0.0 0.3 0% 0 0.4 0.0 0.3
--devices-regex:查看某块磁盘的状态
--interval:每次输出IO的间隔时间
--show-timestamps:在每行的输出显示时间
--iterations:打印N行的磁盘IO状态
未完待续
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1736944/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12219480/viewspace-1736944/