por cierto, el tamaño de la bbdd es de unos 10GB.
Por si sirve de refernecia, este es el my.cnf
Código MySQL:
Ver original[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords
back_log = 50
max_connections = 600
key_buffer_size = 800M
myisam_sort_buffer_size = 256M
innodb_buffer_pool_size=46M
join_buffer_size = 8M
read_buffer_size = 8M
sort_buffer_size = 8M
table_cache = 8000
thread_cache_size = 768
wait_timeout = 20
connect_timeout = 10
tmp_table_size = 384M
max_heap_table_size = 128M
max_allowed_packet = 128M
net_buffer_length = 16384
max_connect_errors = 100000
thread_concurrency = 16
concurrent_insert = 2
table_lock_wait_timeout = 30
read_rnd_buffer_size = 2M
bulk_insert_buffer_size = 64M
query_cache_limit = 4M
query_cache_size = 256M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
max_write_lock_count = 8
long_query_time = 5
log
-slow
-queries
= /root
/slow.
log
[mysqld_safe]
pid-file=/var/run/mysqld/mysqld.pid
nice = -5
open_files_limit = 8192
[mysqldump]
max_allowed_packet = 64M
[myisamchk]
key_buffer = 1024M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M