Sugerencia aceptada.
Ya se han cambiado los "alt" de los emoticonos.
Ya se han cambiado los "alt" de los emoticonos.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCitar[root@ns58 ~]# ./tuning-primer.sh
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.1.52-log i686
Uptime = 7 days 18 hrs 23 min 56 sec
Avg. qps = 100
Total Questions = 67734325
Threads Connected = 157
Server has been running for over 48hrs.
It should be safe to follow these recommendations
To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service
SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 3.000000 sec.
You have 1158 out of 67734355 that take longer than 3.000000 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html
WORKER THREADS
Current thread_cache_size = 8
Current threads_cached = 6
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 600
Current threads_connected = 156
Historic max_used_connections = 289
The number of used connections is 48% of the configured maximum.
Your max_connections variable seems to be fine.
INNODB STATUS
Current InnoDB index space = 75 M
Current InnoDB data space = 147 M
Current InnoDB buffer pool free = 30 %
Current innodb_buffer_pool_size = 250 M
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory
MEMORY USAGE
Max Memory Ever Allocated : 4.42 G
Configured Max Per-thread Buffers : 7.21 G
Configured Max Global Buffers : 978 M
Configured Max Memory Limit : 4.16 G
Physical Memory : 5.21 G
KEY BUFFER
Current MyISAM index space = 416 M
Current key_buffer_size = 600 M
Key cache miss rate is 1 : 6013
Key buffer free ratio = 38 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere
QUERY CACHE
Query cache is enabled
Current query_cache_size = 100 M
Current query_cache_used = 31 M
Current query_cache_limit = 20 M
Current Query cache Memory fill ratio = 31.97 %
Current query_cache_min_res_unit = 4 K
Query Cache is 32 % fragmented
Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
If you have many small queries lower 'query_cache_min_res_unit' to reduce fragme ntation.
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 8 M
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 132.00 K
You have had 1433 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.
Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.
OPEN FILES LIMIT
Current open_files_limit = 3000 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
TABLE CACHE
Current table_open_cache = 512 tables
Current table_definition_cache = 256 tables
You have a total of 72 tables
You have 427 open tables.
The table_cache value seems to be fine
TEMP TABLES
Current max_heap_table_size = 64 M
Current tmp_table_size = 64 M
Of 131907 temp tables, 29% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.
TABLE SCANS
Current read_buffer_size = 2 M
Current table scan ratio = 84 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 1407
You may benefit from selective use of InnoDB.
CitarMySQLTuner is a high-performance MySQL tuning script written in perl that will provide you with a snapshot of a MySQL server's health. Based on the statistics gathered, specific recommendations will be provided that will increase a MySQL server's efficiency and performance. The script gives you automated MySQL tuning that is on the level of what you would receive from a MySQL DBA.
Citarmysqlreport makes a friendly report of important MySQL status values. mysqlreport transforms the values from SHOW STATUS into an easy-to-read report that provides an in-depth understanding of how well MySQL is running. mysqlreport is a better alternative (and practically the only alternative) to manually interpreting SHOW STATUS.
#!/bin/bash
# Written by James Crow crow.jamesm <at> google email domain name <dot> com
# 2010-09-16
# This script connects to the MythTV mythconverg database to pull
# the two most important tuning parameters. This script only works
# for MyISAM tables at the moment. The only part that needs to be
# configured is the variables at the top of the script
# ver 0.1
# *** Change these to match you environment ***
mysql='/usr/bin/mysql'
mythconverg='mythconverg'
sql_user='mythtv'
sql_pass='mythtv'
sql_host='192.168.1.2'
# *** You should not need to change anything after this line ***
# determine if we are using MyISAM tables
$mysql -h $sql_host -u $sql_user -p$sql_pass $mythconverg -e 'show
create table record' | grep -q MyISAM
myisam=$?
if [ $myisam -ne 0 ]; then
echo "You do not appear to be using MyISAM tables for the myth database"
exit;
fi
#echo $myisam
# The most important tuning parameters are the key_buffer_size and
table_open_cache
# find the key_buffer_size and % in use first
key_blocks_unused=`$mysql -h $sql_host -u $sql_user -p$sql_pass -e
'show status like "key_blocks_unused"' | grep "[Kk]ey_blocks_unused" |
sed 's/[^0-9]//g'`
key_cache_block_size=`$mysql -h $sql_host -u $sql_user -p$sql_pass -e
'show variables like "key_cache_block_size"' | grep
key_cache_block_size | sed 's/[^0-9]//g'`
key_buffer_size=`$mysql -h $sql_host -u $sql_user -p$sql_pass -e 'show
variables like "key_buffer_size"' | grep key_buffer_size | sed
's/[^0-9]//g'`
# using a simple formula from the MySQL doc we get the key_buffer_cache in use
key_buffer_cache_in_use=`echo "scale=2; 1-(($key_blocks_unused *
$key_cache_block_size)/$key_buffer_size)" | bc`
# this next line rounds each value to an even integer, but that is the
best way to display the result
key_buffer_use_pct=`echo "scale=0; $key_buffer_cache_in_use*100" | bc`
key_buffer_use_pct=`echo "($key_buffer_use_pct+0.5)/1" | bc`
#echo "scale=0; $key_buffer_cache_in_use*100"
echo ""
echo "**** key_buffer_cache section *****************************"
if [ $key_buffer_use_pct -eq 100 ]; then
echo "!!!!!! WARNING: You are using 100% of your key_buffer_cache."
echo " You should raise the value!"
elif [ $key_buffer_use_pct -gt 80 ]; then
echo "NOTE: You are using more than 80% of your key_buffer_cache."
echo " You may may want to raise the value."
fi
echo "key_buffer_size: $key_buffer_size, $(($key_buffer_size/1024))
kb, $(($key_buffer_size/(1024*1024))) mb"
echo "key_buffer_cache in use: $key_buffer_use_pct%"
echo "***********************************************************"
# the second of two most important variables is the table_open_cache
open_tables=`$mysql -h $sql_host -u $sql_user -p$sql_pass -e 'show
status like "open_tables"' | grep Open_tables | sed 's/[^0-9]//g'`
open_table_cache=`$mysql -h $sql_host -u $sql_user -p$sql_pass -e
'show variables like "table_open_cache"' | grep table_open_cache | sed
's/[^0-9]//g'`
free_tables=$(($open_table_cache-$open_tables))
open_tables_free_pct=`echo "scale=2; $free_tables/$open_table_cache*100" | bc`
open_tables_free_pct=`echo "($open_tables_free_pct+0.5)/1" | bc`
#echo "scale=0; $free_tables/$open_table_cache*100"
echo ""
echo "**** table_open_cache section *****************************"
if [ $free_tables -eq 0 ]; then
echo "!!!!!! WARNING: You have no free tables."
echo " You should raise the value."
elif [ $open_tables_free_pct -lt 10 ]; then
echo "NOTE: You have less than 10% free in the table_open_cache."
echo " You may want to raise the value."
fi
echo "table_open_cache: $free_tables free out of $open_table_cache,
$open_tables used"
echo "table_open_cache used pct: $((100-$open_tables_free_pct))%"
echo "***********************************************************"
Citarcreo que imageshack esta restringido en el foro
http://foro.elhacker.net/index.php?board=19
no carga correctamente, pero siforo.elhacker.net/index.php?board=13;action=display;threadid=16664
Cita de: Freeze. en 7 Mayo 2008, 17:32 PM
Aca trae "Instrucciones" debo hacer todo eso?
http://custom.simplemachines.org/mods/index.php?action=parse