Skip to content

Instantly share code, notes, and snippets.

@filler
Created June 25, 2012 20:53
Show Gist options
  • Save filler/2991176 to your computer and use it in GitHub Desktop.
Save filler/2991176 to your computer and use it in GitHub Desktop.
mysqltuner @ iwdevdb
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.49sp1-enterprise-gpl-advanced
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 979M (Tables: 7160)
[--] Data in InnoDB tables: 11G (Tables: 70686)
[!!] Total fragmented tables: 3820
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 53d 18h 11m 6s (613M q [131.987 qps], 3M conn, TX: 2025B, RX: 376B)
[--] Reads / Writes: 75% / 25%
[--] Total buffers: 20.6G global + 6.4M per thread (1200 max threads)
[!!] Maximum possible memory usage: 28.0G (89% of installed RAM)
[OK] Slow queries: 0% (1K/613M)
[OK] Highest usage of available connections: 18% (216/1200)
[OK] Key buffer size / total MyISAM indexes: 512.0M/86.9M
[OK] Key buffer hit rate: 99.9% (24M cached / 26K reads)
[OK] Query cache efficiency: 45.8% (153M cached / 335M selects)
[!!] Query cache prunes per day: 354082
[OK] Sorts requiring temporary tables: 0% (5K temp sorts / 2M sorts)
[!!] Joins performed without indexes: 37776
[!!] Temporary tables created on disk: 37% (17M on disk / 47M total)
[OK] Thread cache hit rate: 93% (209K created / 3M connections)
[!!] Table cache hit rate: 0% (1K open / 27M opened)
[OK] Open file limit used: 0% (0/21K)
[OK] Table locks acquired immediately: 99% (230M immediate / 230M locks)
[OK] InnoDB data size / buffer pool: 11.7G/20.0G
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Reduce your overall MySQL memory footprint for system stability
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (> 32M)
join_buffer_size (> 128.0K, or always use indexes with joins)
tmp_table_size (> 32M)
max_heap_table_size (> 32M)
table_cache (> 1200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment