[MDEV-573] mysqlreport updated version that adds AriaDB pagecache stats, binlog cache stats, subquery cache stats, TokuDB stats and bugfixes Created: 2012-10-04 Updated: 2016-02-17 Resolved: 2016-02-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Fix Version/s: | 10.1.12 |
| Type: | Task | Priority: | Minor |
| Reporter: | Jean Weisbuch | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | mysqlreport | ||
| Description |
The latest revision can be found on : https://github.com/jb-boin/mariadb/blob/5.5.30/debian/additions/mysqlreportRead the comments to follow the new revisions additions (such as subquery cache, binary log cache, TokuDB stats, returned rows stats, threadpool usage stats and many small fixes/improvements).— Patch is pretty trivial and based on how mysqlreport reports the MyISAM key cache informations. Tested on MySQL 5.1 (no AriaDB infos shown) and on Maria 5.5.27 (shows informations without any error). Here is an example of the produced output :
ps: there is a warning when launching mysqlreport :
Its an upstream bug (same error encountered on Debian 6 with non MariaDB mysqlreport and MySQL 5.1) as mysqlreport reads "Innodb_buffer_pool_read_ahead_seq" value but it seems that this value has been replaced by "Innodb_buffer_pool_read_ahead" on MySQL/MariaDB for a long time, correcting this could also be a good idea. |
| Comments |
| Comment by Jean Weisbuch [ 2012-10-09 ] | ||||||||||||||
|
This is an updated version of the patch which now verify that the ariadb engine is present and active rather than checking that the server version string contains The "Innodb_buffer_pool_read_ahead value isnt shown anymore to avoid the warning (variable was removed on innodb plugin on 5.1 and not present on 5.5). Submitting this patch "upstream" could also be a good idea. | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-01-14 ] | ||||||||||||||
|
This new revision adds a subquery cache section with hit rate and hit/miss informations for it. Another addition is the percentage of disk created temporary tables. A check has been added to verify if innodb is enabled before showing and computing innodb variables (in case you have skip-innodb you wont end up with many warnings). Plus some small code cleanups such as the $query that is now local on the functions. | ||||||||||||||
| Comment by George L [ 2013-02-01 ] | ||||||||||||||
|
Jean seems I am having problem applying r6 diff ? patch mysqlreport -i aria.diff -o mysqlreport_patched.txt rej file contents @@ -1410,3 +1524,22 @@ ) ) ) | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-02-01 ] | ||||||||||||||
|
I attached the up-to-date patched mysqlreport. | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-03-12 ] | ||||||||||||||
|
This revision adds the binary log cache hit ratio for both transactionnal and statements (not shown if bin_log is not activated). eg: | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-03-29 ] | ||||||||||||||
|
I uploaded a new revision (mysqlreport-29mar2013) that corrects a regression added in the 12mar2013 revision, mysqlreport would hit a division by 0 error in case the bin_log would be activated with Binlog_cache_use = 0 or Binlog_stmt_cache_use = 0. Also, in case both of the ratios = 0.00%, the whole binlog cache section wont be shown. | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-05-06 ] | ||||||||||||||
|
The 6 may revision adds TokuDB engine support : cachetable usage and miss rate are shown. eg: | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-05-13 ] | ||||||||||||||
|
This revision fixes the per seconds stats that were truncated to 5 chars max on the Subquery Cache, Questions and Query Cache sections (for example 153.6k/s was truncated to 153.6/s). | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-05-28 ] | ||||||||||||||
|
The 28 may release is a small bugfix that supress a warning about an uninitialized variable when ran on MySQL/MariaDB 5.1 which doesn't have the "Binlog_stmt_cache_use" variable. | ||||||||||||||
| Comment by George L [ 2013-05-28 ] | ||||||||||||||
|
Hi Jean would like to say thank you so much for the updates, I find mysqlreport very useful and it's awesome that your contributions are keeping this tool up to date for MariaDB | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-05-29 ] | ||||||||||||||
|
The 29 may 2013 revision adds :
Also, historical comments about MySQL 6.0 have been removed from the code. ps: thanks George for your support. | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-06-07 ] | ||||||||||||||
|
I put the code on Github as its simpler to manage and have a revision history : https://github.com/jb-boin/mariadb/blob/5.5.30/debian/additions/mysqlreport The new revision i made today includes informations about row count : the number of rows returned by the server, the number of rows returned using indexes (and its percentage) and the average number of rows returned by question. eg: | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-06-07 ] | ||||||||||||||
|
TODO: Upstream bug to fix : | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-07-04 ] | ||||||||||||||
|
I updated mysqlreport to include threadpool usage stats when used on MariaDB (i don't know how it is implemented on MySQL). It also don't show the "Cached" line anymore when the thread pool is used as the thread_cache_size variable is not used when activated and the Threads_cached status always return 0 which was resulting on bogus values (often negative percentage of %Cache). Here is an example of the output on a server with thread_handling=pool-of-threads : The revision diff : https://github.com/jb-boin/mariadb/commit/b25a7dfc2b7c5fbaf7bf83e2a16498cfdd5e3c10#debian/additions/mysqlreport | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-09-17 ] | ||||||||||||||
|
Threadpool usage calculation doesnt seems to be correct, i got these values on a live server (the threadpool was not full at the moment) : __ Threads _____________________________________________________________ -----------------------------------------
-----------------------------------------
----------------------------------------- | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-10-02 ] | ||||||||||||||
|
Today's revision adds the XtraDB flushes LRU stats : https://github.com/jb-boin/mariadb/commit/a9922df1095d2b87d8541c1cce623df4b0f82656 Example of the output : | ||||||||||||||
| Comment by Jean Weisbuch [ 2013-12-22 ] | ||||||||||||||
|
New revision :https://github.com/jb-boin/mariadb/commit/7598e45acb42b89a9de29600f46066350cf5494d#diff-7552e4de9944e68ad76cc2faaba80034
| ||||||||||||||
| Comment by Jean Weisbuch [ 2014-11-18 ] | ||||||||||||||
|
This new revision (3.5-maria15 : https://github.com/jb-boin/mariadb/commit/a612dac0f4e3c7db358db10f740ca0cfd3b5121f) adds support for MariaDB 10.0 :
Tested without any errors/warnings issued on MySQL 5.1.72, MariaDB 5.5.40 and MariaDB 10.0.14 with TokuDB and tested both with XtraDB and Innodb plugin. | ||||||||||||||
| Comment by Jean Weisbuch [ 2015-01-05 ] | ||||||||||||||
|
New revision (3.5-maria16 : https://github.com/jb-boin/mariadb/commit/bbd68f13b1cf90279e4713fc163bafc787df32ff) :
| ||||||||||||||
| Comment by Jean Weisbuch [ 2015-10-23 ] | ||||||||||||||
|
New revision (4.0 : https://github.com/jb-boin/mariadb/blob/0e765c8cdf70cbfc85fbe42c4c6a08f379b6a1a2/debian/additions/mysqlreport) :
|