Commit Graph

58 Commits

Author SHA1 Message Date
Sveta Smirnova
19aa46d1a5 PT-1052 include numa information in pt tool output (#547)
* PT-1052: fix for pt-summary

* Re-added fix from commit 71fae6d117 into proper place: library directory
Added tests for PT-1052 (pt-summary only)

* Fixed tests for pt-summary,
set locale for pt-summary tests, so they are not affected by user environment.
Finished tests for PT-1052

* Added fix for PT-1983 into the proper place: library file

* PT-1052: fix for pt-stalk which now includes numastat data
2022-08-15 15:45:24 +03:00
Sveta Smirnova
ac3843bcb7 Pt 1897 lock information in8.0 in pt stalk (#544)
* PT-1897 pt-stalk on MySQL 8 not collecting lock information

For version prior 8.0 pt-stalk continue using Information Schema INNODB_LOCKS and INNODB_LOCK_WAITS tables for collecting lock information.
For version 8.0 and higher pt-stalk uses tables data_locks and data_lock_waits in Performance Schema

* PT-1897 - Better MariaDB support

We cannot simply compare version number with 8.0 to identify if lock tables are in Performance Schema,
because MariaDB 10.x still have them in the Information Schema.
Therefore added additional flag, indicating which syntax we should use

* Tests for PT-1897
2022-07-25 10:01:14 -03:00
Sveta Smirnova
07ee5eb1bf PS-2033, proof of concept (#540) 2022-07-11 15:51:29 +03:00
Sveta Smirnova
22ed941238 PT-1218: pt-stalk ominous open_tables function (#535)
After discussion change only affects error message that is more user-friendly now.
I also added two tests that check how open_tables function works in both cases:
with number of open tables less tha 1000 and greater than 1000
2022-03-22 09:33:05 -03:00
svetasmirnova
9427c16314 PT-2037 - regression fixes
Re-added fix for PT-1340 that was reverted by fix for PT-1398
2022-01-23 03:55:35 +03:00
svetasmirnova
623fdaec91 PT-2037 - option --system-only for pt-stalk
This commit:
1. Moves all changes to the proper place: lib/bash/collect.sh
2. Refactors pt-stalk so it is more modular
3. Places fix for PT-1734 into the right place: lib/bash/collect.sh
4. Fixes tests for PT-1336
2022-01-22 21:21:05 +03:00
Carlos Salguero
951a333c81 PT-1398 Updated way of getting MySQL PID (#517) 2021-10-01 09:27:20 -03:00
Carlos Salguero
53ce571bf1 PT-633 Added --mysql-only option to pt-stalk 2018-02-12 16:40:30 -03:00
Carlos Salguero
0786db016d PT-218 Added RocksDB status section to pt-stalk 2017-12-13 13:51:08 -03:00
guriandoro
b775701551 Merge branch '3.0' into pt-stalk-collect-prepared-statements-LP1642750
Conflicts:
	bin/pt-stalk
	lib/bash/collect.sh
2017-06-10 11:45:33 -04:00
guriandoro
437d28837b Changes for LP1510809. ps -eaF is captured now.
Modified f argument, for F. From man pages:

" -F     Extra full format.  See the -f option, which -F implies."

The following columns have been added to the output, due to this
change:

SZ   size in physical pages of the core image of the process.
     This includes text, data, and stack space.  Device mappings
     are currently excluded; this is subject to change.

RSS  resident set size, the non-swapped physical memory that a
     task has used (inkiloBytes).

PSR  processor that process is currently assigned to.
2017-04-11 19:15:14 -04:00
Carlos Salguero
fac4be64b4 Merge branch '3.0' into issue-1642754 2017-03-28 14:08:51 -03:00
Carlos Salguero
1926bd60b4 PT-111 Collect MySQL variables 2017-03-28 14:03:40 -03:00
Carlos Salguero
be971eeee5 PT-80 Collect replication slave information 2017-03-27 17:30:06 -03:00
Carlos Salguero
ad73055a5b Changed how we invoke MySQL from pt-stalk 2017-03-22 19:38:09 -03:00
guriandoro
0e5a08342d Merge branch '3.0' into pt-stalk-collect-prepared-statements-LP1642750 2017-03-22 16:34:34 -04:00
Carlos Salguero
759ee9196e Updated collect.sh because of a syntax error 2017-03-22 17:32:14 -03:00
guriandoro
32745039b5 Merge branch '3.0' into pt-stalk-collect-prepared-statements-LP1642750 2017-03-22 16:19:19 -04:00
Carlos Salguero
a117e63e89 Added MySQL version check to stalk ps queries 2017-03-22 12:38:11 -03:00
guriandoro
e8ad42955d PT-90 Adding collect for LP:1642750
pt-stalk will now also collect from P_S.prepared_statements_instances
2017-03-22 10:53:34 -04:00
Carlos Salguero
91ec593da5 Merge pull request #174 from percona/PT-89
PT-89 Now top runs using -bn${OPT_RUN_TIME}
2017-03-21 19:25:30 +02:00
Carlos Salguero
4a056cf3b0 PT-81 Collect information about locks and transactions using P_S 2017-03-21 13:45:59 -03:00
Carlos Salguero
076864c79e PT-89 Now top runs using -bn${OPT_RUN_TIME} 2017-03-01 13:30:09 -03:00
Carlos Salguero
90e1e9cf1e PT-81 Moved functions to the collect module 2017-02-25 10:41:07 -03:00
frank-cizmich
c3f4705b67 pt-stalk sort transactions - lp1537416 2016-06-09 14:31:19 -03:00
frank-cizmich
377b50144b new var binlog_error_action caused bug in collect module 2016-02-11 17:44:20 -03:00
Frank Cizmich
1e2e7b5a18 pt-stalk now collects 1 minute of dmesg output preceding trigger event - 1349086 2014-10-22 16:16:13 -02:00
Daniel Nichter
69586fdf50 Revert r587: *do* sync on clock ticks. Fix pt-stalk.t (127.1 no longer works?). Enhance --sleep-collect docs. 2013-12-13 20:19:51 -08:00
Daniel Nichter
5035de3fbb Calc cnt for iostat, vmstat, mpstat, and mysqladmin -c as --run-time/--sleep-collect. 2013-07-24 13:29:23 -07:00
Daniel Nichter
47ef093a58 Calc collect loop run time based on start ts - curr ts so arbitrary --sleep-collect work. Do not sync on clock ticks. 2013-07-24 12:49:28 -07:00
Daniel Nichter
86a949253d Allow string interpol in collect sleep calc so --sleep-collect works. 2013-07-24 12:08:01 -07:00
Daniel Nichter
50301e51d5 Add --sleep-collect, default 1. 2013-07-24 11:53:08 -07:00
Daniel Nichter
5a5fe75130 Merge pt-stalk-1019648. 2013-03-12 15:23:02 -06:00
Daniel Nichter
7f728acddd Move code to get InnoDB status into its own sub. 2013-03-12 15:08:25 -06:00
Daniel Nichter
f7f63555ee Add lib/bash/subshell.sh and use in pt-stalk to fix/improve subprocess waiting. 2013-03-04 17:47:02 -07:00
Fernando Ipar
177c2aaef7 Changed collect so that innodb status is read from tmp file if the original output is truncated 2013-03-04 17:40:41 -02:00
Brian Fraser fraserb@gmail.com
22ec559b38 Fix for 986847: Allow setting which commands (and extra options) pt-stalk uses through env vars 2012-11-12 11:26:01 -03:00
Daniel Nichter
d04529a64b Wait --run-time more for collector procs to finish, then kill them, then remove empty files. 2012-10-13 12:21:52 -06:00
Daniel Nichter
e1bd108aa4 Collect INNODB_TRX, INNODB_LOCKS, and INNODB_LOCK_WAITS. Fix update-module so it works again with Bash tools. 2012-08-30 15:40:09 -06:00
Daniel Nichter
b5ba79bb6d Collect df -k instead of df -h. Set log_error with abs path to fix failing t/lib/bash/collect.t test. 2012-08-14 09:11:41 -06:00
Daniel Nichter
94d9483d03 Make vmstat, iostat, and mpstat run for --run-time not --interval. 2012-03-30 11:35:32 -06:00
Daniel Nichter
0ac6c35211 Fix _pidof() calls in collect.sh. Update Bash libs in pt-ioprofile. 2012-02-03 10:49:27 -07:00
Daniel Nichter
7be99c5140 Add _which() to alt_cmds.sh and update pt-stalk. 2012-02-02 12:04:28 -07:00
Daniel Nichter
c40e5db1bf Fix lib tests for MySQL 5.0. 2012-02-02 10:56:55 -07:00
Daniel Nichter
d1a684b55b Use _pidof() and _lsof() from Percona Monitoring Plugins. Use "" and "yes" exclusively in collect(). Don't exec cmds that need mysqld_pid unless mysqld_pid is defined. Use log() instead of echo. 2012-01-30 08:59:19 -07:00
Daniel Nichter
e954505dd2 Don't print errors in data files; let the general -output file catch them. Print TS lines before data. Try to find sysctl manually. Add _pidof() to alt_cmds.sh. 2012-01-27 17:37:59 -07:00
Daniel Nichter
05ac0be136 Change --disk-byte-limit to --disk-bytes-free and --disk-pct-limit to --disk-pct-free. 2012-01-26 12:45:44 -07:00
Daniel Nichter
c2fd3f54c2 Use "yes" for true, "" for false. Use $PO_DIR instead of $TMP_DIR/po. Add and test Baron's code for 'Options and values after processing arguments'. Make --help exit 0 unless there were errors. 2012-01-24 12:49:18 -07:00
Daniel Nichter
2412e01aa0 Use which to get programs. Don't create file unless the program or file exists. 2012-01-19 10:46:48 -07:00
Daniel Nichter
cfce6e6eb2 More quoting and tweaking re Baron's review. 2012-01-13 10:02:17 -07:00