Re: Extreme disk writes and server IO load from mysqld.
After running the script I got this result:
>> MySQLTuner 1.1.2 - Major Hayden <
[email protected]>
>> Bug reports, feature requests, and downloads at
http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.91-community
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated -InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 5M (Tables: 217)
[!!] Total fragmented tables: 1
-------- Performance Metrics -------------------------------------------------
[--] Up for: 18m 15s (6K q [6.058 qps], 260 conn, TX: 19M, RX: 1M)
[--] Reads / Writes: 65% / 35%
[--] Total buffers: 314.0M global + 2.8M per thread (500 max threads)
[OK] Maximum possible memory usage: 1.7G (66% of installed RAM)
[OK] Slow queries: 0% (0/6K)
[OK] Highest usage of available connections: 3% (16/500)
[OK] Key buffer size / total MyISAM indexes: 256.0M/2.3M
[OK] Key buffer hit rate: 99.8% (121K cached / 236 reads)
[OK] Query cache efficiency: 74.1% (3K cached / 5K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 264 sorts)
[!!] Joins performed without indexes: 20
[OK] Temporary tables created on disk: 17% (19 on disk / 107 total)
[OK] Thread cache hit rate: 93% (16 created / 260 connections)
[OK] Table cache hit rate: 97% (244 open / 250 opened)
[OK] Open file limit used: 5% (478/8K)
[OK] Table locks acquired immediately: 99% (2K immediate / 2K locks)
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
Variables to adjust:
join_buffer_size (> 132.0K, or always use indexes with joins)
I change joing_buffer_size to 256K but simlar error has been generated
in addition I do not know how should I Enable the slow query log to troubleshoot bad queries
and
my current: my.conf configuration files is this:
[mysqld]
datadir=/var/lib/mysql
skip-locking
skip-innodb
skip-networking
safe-show-database
query_cache_limit=2M
query_cache_size=32M ## 32MB for every 1GB of RAM
query_cache_type=1
max_user_connections=200
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
thread_cache_size=128
table_cache = 4096
join_buffer_size =132K
key_buffer=256M ## 128MB for every 1GB of RAM
thread_concurrency=2 ## Number of CPUs x 2
myisam_sort_buffer_size=64M
server-id=1
[safe_mysqld]
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysqlhotcopy]
interactive-timeout
Database Collation is UTF-General-Ci
Please help me to modify setting to best performance my VPS configuration is:
Dual Core 2GHZ Processor
4GB RAM