Advertisement
Guest User

pasta SQL tunning

a guest
Nov 26th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. root@pasta [~]# ./mysql.pl
  2.  
  3. >> MySQLTuner 1.2.0 - Major Hayden <major@mhtx.net>
  4. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  5. >> Run with '--help' for additional options and output filtering
  6.  
  7. -------- General Statistics --------------------------------------------------
  8. [--] Skipped version check for MySQLTuner script
  9. [OK] Currently running supported MySQL version 5.1.65-cll
  10. [OK] Operating on 32-bit architecture with less than 2GB RAM
  11.  
  12. -------- Storage Engine Statistics -------------------------------------------
  13. [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
  14. [--] Data in MyISAM tables: 262M (Tables: 937)
  15. [--] Data in InnoDB tables: 432K (Tables: 27)
  16. [OK] Total fragmented tables: 0
  17.  
  18. -------- Security Recommendations -------------------------------------------
  19. [OK] All database users have passwords assigned
  20.  
  21. -------- Performance Metrics -------------------------------------------------
  22. [--] Up for: 17s (371 q [21.824 qps], 176 conn, TX: 113K, RX: 42K)
  23. [--] Reads / Writes: 83% / 17%
  24. [--] Total buffers: 704.0M global + 9.4M per thread (100 max threads)
  25. [OK] Maximum possible memory usage: 1.6G (80% of installed RAM)
  26. [OK] Slow queries: 0% (0/371)
  27. [OK] Highest usage of available connections: 7% (7/100)
  28. [OK] Key buffer size / total MyISAM indexes: 256.0M/146.8M
  29. [OK] Key buffer hit rate: 98.1% (300K cached / 5K reads)
  30. [OK] Query cache efficiency: 83.6% (158 cached / 189 selects)
  31. [OK] Query cache prunes per day: 0
  32. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 8 sorts)
  33. [OK] Temporary tables created on disk: 0% (0 on disk / 13 total)
  34. [OK] Thread cache hit rate: 96% (7 created / 176 connections)
  35. [OK] Table cache hit rate: 80% (28 open / 35 opened)
  36. [OK] Open file limit used: 0% (56/8K)
  37. [OK] Table locks acquired immediately: 100% (63 immediate / 63 locks)
  38. [OK] InnoDB data size / buffer pool: 432.0K/350.0M
  39.  
  40. -------- Recommendations -----------------------------------------------------
  41. General recommendations:
  42. MySQL started within last 24 hours - recommendations may be inaccurate
  43.  
  44. root@pasta [~]#
  45.  
  46.  
  47.  
  48. root@pasta [~]# ./tuning-primer.sh
  49.  
  50. -- MYSQL PERFORMANCE TUNING PRIMER --
  51. - By: Matthew Montgomery -
  52.  
  53. MySQL Version 5.1.65-cll i686
  54.  
  55. Uptime = 0 days 0 hrs 0 min 51 sec
  56. Avg. qps = 47
  57. Total Questions = 2427
  58. Threads Connected = 10
  59.  
  60. Warning: Server has not been running for at least 48hrs.
  61. It may not be safe to use these recommendations
  62.  
  63. To find out more information on how each of these
  64. runtime variables effects performance visit:
  65. http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html
  66. Visit http://www.mysql.com/products/enterprise/advisors.html
  67. for info about MySQL's Enterprise Monitoring and Advisory Service
  68.  
  69. SLOW QUERIES
  70. The slow query log is enabled.
  71. Current long_query_time = 10.000000 sec.
  72. You have 0 out of 2473 that take longer than 10.000000 sec. to complete
  73. Your long_query_time seems to be fine
  74.  
  75. BINARY UPDATE LOG
  76. The binary update log is NOT enabled.
  77. You will not be able to do point in time recovery
  78. See http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html
  79.  
  80. WORKER THREADS
  81. Current thread_cache_size = 16
  82. Current threads_cached = 5
  83. Current threads_per_sec = 0
  84. Historic threads_per_sec = 0
  85. Your thread_cache_size is fine
  86.  
  87. MAX CONNECTIONS
  88. Current max_connections = 100
  89. Current threads_connected = 8
  90. Historic max_used_connections = 12
  91. The number of used connections is 12% of the configured maximum.
  92. Your max_connections variable seems to be fine.
  93.  
  94. INNODB STATUS
  95. Current InnoDB index space = 592 K
  96. Current InnoDB data space = 432 K
  97. Current InnoDB buffer pool free = 99 %
  98. Current innodb_buffer_pool_size = 350 M
  99. Depending on how much space your innodb indexes take up it may be safe
  100. to increase this value to up to 2 / 3 of total system memory
  101.  
  102. MEMORY USAGE
  103. Max Memory Ever Allocated : 753 M
  104. Configured Max Per-thread Buffers : 943 M
  105. Configured Max Global Buffers : 640 M
  106. Configured Max Memory Limit : 1.54 G
  107. Physical Memory : 2.00 G
  108. Max memory limit seem to be within acceptable norms
  109.  
  110. KEY BUFFER
  111. Current MyISAM index space = 146 M
  112. Current key_buffer_size = 256 M
  113. Key cache miss rate is 1 : 67
  114. Key buffer free ratio = 85 %
  115. Your key_buffer_size seems to be fine
  116.  
  117. QUERY CACHE
  118. Query cache is enabled
  119. Current query_cache_size = 32 M
  120. Current query_cache_used = 1 M
  121. Current query_cache_limit = 16 M
  122. Current Query cache Memory fill ratio = 4.31 %
  123. Current query_cache_min_res_unit = 4 K
  124. Your query_cache_size seems to be too high.
  125. Perhaps you can use these resources elsewhere
  126. MySQL won't cache query results that are larger than query_cache_limit in size
  127.  
  128. SORT OPERATIONS
  129. Current sort_buffer_size = 4 M
  130. Current read_rnd_buffer_size = 256 K
  131. Sort buffer seems to be fine
  132.  
  133. JOINS
  134. Current join_buffer_size = 1.00 M
  135. You have had 0 queries where a join could not use an index properly
  136. Your joins seem to be using indexes properly
  137.  
  138. OPEN FILES LIMIT
  139. Current open_files_limit = 8302 files
  140. The open_files_limit should typically be set to at least 2x-3x
  141. that of table_cache if you have heavy MyISAM usage.
  142. Your open_files_limit value seems to be fine
  143.  
  144. TABLE CACHE
  145. Current table_open_cache = 4096 tables
  146. Current table_definition_cache = 1024 tables
  147. You have a total of 987 tables
  148. You have 1000 open tables.
  149. The table_cache value seems to be fine
  150.  
  151. TEMP TABLES
  152. Current max_heap_table_size = 64 M
  153. Current tmp_table_size = 64 M
  154. Of 988 temp tables, 4% were created on disk
  155. Created disk tmp tables ratio seems fine
  156.  
  157. TABLE SCANS
  158. Current read_buffer_size = 4 M
  159. Current table scan ratio = 13925 : 1
  160. read_buffer_size seems to be fine
  161.  
  162. TABLE LOCKING
  163. Current Lock Wait ratio = 0 : 2937
  164. Your table locking seems to be fine
  165.  
  166. root@pasta [~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement