Adding nondedicated option usage
This commit is contained in:
parent
8899f10756
commit
c29168ccaf
1 changed files with 13 additions and 7 deletions
|
@ -3366,17 +3366,23 @@ sub mysql_stats {
|
||||||
. " ($mycalc{'pct_max_physical_memory'}% of installed RAM)";
|
. " ($mycalc{'pct_max_physical_memory'}% of installed RAM)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( $physical_memory <
|
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
|
badprint
|
||||||
"Overall possible memory usage with other process exceeded memory";
|
"Overall possible memory usage with other process exceeded memory";
|
||||||
push( @generalrec,
|
push( @generalrec,
|
||||||
"Dedicate this server to your database for highest performance." );
|
"Dedicate this server to your database for highest performance." );
|
||||||
}
|
}
|
||||||
else {
|
} else {
|
||||||
goodprint
|
goodprint
|
||||||
"Overall possible memory usage with other process is compatible with memory available";
|
"Overall possible memory usage with other process is compatible with memory available";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Slow queries
|
# Slow queries
|
||||||
|
|
Loading…
Reference in a new issue