|
1 | 1 | #!/usr/bin/env perl |
2 | | -# mysqltuner.pl - Version 2.3.2 |
| 2 | +# mysqltuner.pl - Version 2.4.0 |
3 | 3 | # High Performance MySQL Tuning Script |
4 | 4 | # Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com |
5 | 5 | # Copyright (C) 2006-2023 Major Hayden - major@mhtx.net |
@@ -57,7 +57,7 @@ package main; |
57 | 57 | #use Env; |
58 | 58 |
|
59 | 59 | # Set up a few variables for use in the script |
60 | | -my $tunerversion = "2.3.2"; |
| 60 | +my $tunerversion = "2.4.0"; |
61 | 61 | my ( @adjvars, @generalrec ); |
62 | 62 |
|
63 | 63 | # Set defaults |
@@ -2526,7 +2526,7 @@ sub check_architecture { |
2526 | 2526 | } |
2527 | 2527 | elsif ( `uname` =~ /Darwin/ && `uname -m` =~ /x86_64/ ) { |
2528 | 2528 |
|
2529 | | -# Darwin gibas.local 12.3.2 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 |
| 2529 | +# Darwin gibas.local 12.4.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 |
2530 | 2530 | $arch = 64; |
2531 | 2531 | goodprint "Operating on 64-bit architecture"; |
2532 | 2532 | } |
@@ -3179,11 +3179,11 @@ sub calculations { |
3179 | 3179 | = ( 1, 1 ) |
3180 | 3180 | unless defined $mystat{'Innodb_buffer_pool_reads'}; |
3181 | 3181 | $mycalc{'pct_read_efficiency'} = percentage( |
3182 | | - ( |
3183 | | - $mystat{'Innodb_buffer_pool_read_requests'} - |
| 3182 | + $mystat{'Innodb_buffer_pool_read_requests'}, |
| 3183 | + ( |
| 3184 | + $mystat{'Innodb_buffer_pool_read_requests'} + |
3184 | 3185 | $mystat{'Innodb_buffer_pool_reads'} |
3185 | | - ), |
3186 | | - $mystat{'Innodb_buffer_pool_read_requests'} |
| 3186 | + ) |
3187 | 3187 | ) if defined $mystat{'Innodb_buffer_pool_read_requests'}; |
3188 | 3188 | debugprint "pct_read_efficiency: " . $mycalc{'pct_read_efficiency'} . ""; |
3189 | 3189 | debugprint "Innodb_buffer_pool_reads: " |
@@ -6513,19 +6513,17 @@ sub mysql_innodb { |
6513 | 6513 | { |
6514 | 6514 | badprint "InnoDB Read buffer efficiency: " |
6515 | 6515 | . $mycalc{'pct_read_efficiency'} . "% (" |
6516 | | - . ( $mystat{'Innodb_buffer_pool_read_requests'} - |
6517 | | - $mystat{'Innodb_buffer_pool_reads'} ) |
6518 | | - . " hits / " |
6519 | 6516 | . $mystat{'Innodb_buffer_pool_read_requests'} |
| 6517 | + . " hits / " |
| 6518 | + . ( $mystat{'Innodb_buffer_pool_reads'} + $mystat{'Innodb_buffer_pool_read_requests'} ) |
6520 | 6519 | . " total)"; |
6521 | 6520 | } |
6522 | 6521 | else { |
6523 | 6522 | goodprint "InnoDB Read buffer efficiency: " |
6524 | 6523 | . $mycalc{'pct_read_efficiency'} . "% (" |
6525 | | - . ( $mystat{'Innodb_buffer_pool_read_requests'} - |
6526 | | - $mystat{'Innodb_buffer_pool_reads'} ) |
6527 | | - . " hits / " |
6528 | 6524 | . $mystat{'Innodb_buffer_pool_read_requests'} |
| 6525 | + . " hits / " |
| 6526 | + . ( $mystat{'Innodb_buffer_pool_reads'} + $mystat{'Innodb_buffer_pool_read_requests'} ) |
6529 | 6527 | . " total)"; |
6530 | 6528 | } |
6531 | 6529 |
|
@@ -7369,7 +7367,7 @@ sub which { |
7369 | 7367 |
|
7370 | 7368 | =head1 NAME |
7371 | 7369 |
|
7372 | | - MySQLTuner 2.3.2 - MySQL High Performance Tuning Script |
| 7370 | + MySQLTuner 2.4.0 - MySQL High Performance Tuning Script |
7373 | 7371 |
|
7374 | 7372 | =head1 IMPORTANT USAGE GUIDELINES |
7375 | 7373 |
|
|
0 commit comments