Skip to content

Commit

Permalink
Adding nondedicated option usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrenouard committed Feb 8, 2024
1 parent 8899f10 commit c29168c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3366,17 +3366,23 @@ sub mysql_stats {
. " ($mycalc{'pct_max_physical_memory'}% of installed RAM)";
}


if ( $physical_memory <
( $mycalc{'max_peak_memory'} + get_other_process_memory() ) )
( $mycalc{'max_peak_memory'} + get_other_process_memory() ) )
{
if ( $opt{nondedicated}) {
infoprint ("No warning with --nondedicated option")
infoprint
"Overall possible memory usage with other process exceeded memory";
} else {
badprint
"Overall possible memory usage with other process exceeded memory";
"Overall possible memory usage with other process exceeded memory";
push( @generalrec,
"Dedicate this server to your database for highest performance." );
}
else {
goodprint
"Overall possible memory usage with other process is compatible with memory available";
"Dedicate this server to your database for highest performance." );
}
} else {
goodprint
"Overall possible memory usage with other process is compatible with memory available";
}

# Slow queries
Expand Down

0 comments on commit c29168c

Please sign in to comment.