From ad9228d029ea0f92277a93efd896be509b339fc5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Oct 2016 16:54:45 +0200 Subject: [PATCH] * Event per wait total latency * Event per wait read latency * Event per wait write latency --- INTERNALS.md | 32 ++++++++++++++++++++++++++++---- mysqltuner.pl | 29 ++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 5 deletions(-) diff --git a/INTERNALS.md b/INTERNALS.md index ad9b1f3..6094b6a 100644 --- a/INTERNALS.md +++ b/INTERNALS.md @@ -17,13 +17,17 @@ * [Global buffer information](#mysqltuner-global-buffer-information) * [Query cache checks](#mysqltuner-query-cache-checks) * [Slow queries checks](#mysqltuner-slow-queries-checks) +* [ThreadPool information](#mysqltuner-threadpool-information) * [Replication checks](#mysqltuner-replication-checks) * [InnoDB information](#mysqltuner-innodb-information) -* [ARIADB information](#mysqltuner-ariadb-information) * [MYISAM information](#mysqltuner-myisam-information) -* [GALERA information](#mysqltuner-galera-information) +* [ARIADB information](#mysqltuner-ariadb-information) +* [XTRADB information](#mysqltuner-xtradb-information) * [TOKUDB information](#mysqltuner-tokudb-information) -* [ThreadPool information](#mysqltuner-threadpool-information) +* [ROCKDB information](#mysqltuner-rockdb-information) +* [CONNECT information](#mysqltuner-connect-information) +* [SPIDER information](#mysqltuner-spider-information) +* [GALERA information](#mysqltuner-galera-information) * [Performance Schema information](#mysqltuner-performance-schema-and-sysschema-information) ## MySQLTuner steps @@ -266,6 +270,22 @@ * tokudb_cleaner_iterations * tokudb_fanout +## MySQLTuner XtraDB information + +* Nothing for the moment + +## MySQLTuner Connect information + +* Nothing for the moment + +## MySQLTuner Spider information + +* Nothing for the moment + +## MySQLTuner RocksDb information + +* Nothing for the moment + ## MySQLTuner Thread pool information * thread_pool_size between 16 to 36 for Innodb usage @@ -322,4 +342,8 @@ * File per IO read latency * File per IO write latency * Event Wait by read bytes -* Event Wait by write bytes \ No newline at end of file +* Event Wait by write bytes +* Event per wait total latency +* Event per wait read latency +* Event per wait write latency + diff --git a/mysqltuner.pl b/mysqltuner.pl index 5978dd4..6c2e2b9 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -3612,9 +3612,36 @@ sub mysqsl_pfs { } infoprint "No information found or indicators desactivated." if ($nbL == 1); +# event per wait total latency + subheaderprint "Performance schema: event per wait total latency"; + $nbL=1; + for my $lQuery(select_array ('use sys;select event_name, total_latency from io_global_by_wait_by_latency ORDER BY total_latency DESC LIMIT 20;')) { + infoprint " +-- $nbL: $lQuery"; + $nbL++; + } + infoprint "No information found or indicators desactivated." if ($nbL == 1); + + # event per wait read latency + subheaderprint "Performance schema: event per wait read latency"; + $nbL=1; + for my $lQuery(select_array ('use sys;select event_name, read_latency from io_global_by_wait_by_latency ORDER BY read_latency DESC LIMIT 20;')) { + infoprint " +-- $nbL: $lQuery"; + $nbL++; + } + infoprint "No information found or indicators desactivated." if ($nbL == 1); + + # event per wait write latency + subheaderprint "Performance schema: event per wait write latency"; + $nbL=1; + for my $lQuery(select_array ('use sys;select event_name, write_latency from io_global_by_wait_by_latency ORDER BY write_latency DESC LIMIT 20;')) { + infoprint " +-- $nbL: $lQuery"; + $nbL++; + } + infoprint "No information found or indicators desactivated." if ($nbL == 1); + ################################################################################## -#io_global_by_wait_by_latency + # Latest file IO by latency subheaderprint "Performance schema: Latest FILE IO by latency"; $nbL=1;