just want to check and see if anyone willing to share their my.cnf here? My server is using celeron 1.7Ghz , 512mb ram. Just wondering if my configuration for my.cnf can be enhanced further?
My current my.cnf is as belows :
[mysqld]
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 128
wait_timeout = 7600
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb
[mysqld_safe]
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
My mysqlinfo :
Mon Jul 14 11:04:00 SGT 2003
11:04am up 27 days, 14:14, 0 users, load average: 0.26, 0.31, 0.43
132 processes: 131 sleeping, 1 running, 0 zombie, 0 stopped
Mem: 506024K av, 465360K used, 40664K free, 0K shrd, 10896K buff
Swap: 1020116K av, 44664K used, 975452K free 282844K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
23627 nobody 16 0 1040 1040 788 R 8.2 0.2 0:00 top
Http processes currently running = 56
Mysql processes currently running = 22
Netstat information summary
1 CLOSE_WAIT
1 SYN_RECV
3 FIN_WAIT1
5 FIN_WAIT2
31 LISTEN
39 TIME_WAIT
42 ESTABLISHED
+---------------------------+-----------------+
| Variable_name | Value |
+---------------------------+-----------------+
| Aborted_clients | 7 |
| Aborted_connects | 0 |
| Bytes_received | 344469290 |
| Bytes_sent | 1431494183 |
| Com_admin_commands | 0 |
| Com_alter_table | 57 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 96193 |
| Com_change_master | 0 |
| Com_check | 32 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 9 |
| Com_delete | 31372 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_flush | 4 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 32084 |
| Com_insert_select | 983 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 0 |
| Com_optimize | 30 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 1 |
| Com_replace | 3262 |
| Com_replace_select | 26 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_select | 681921 |
| Com_set_option | 120 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 120 |
| Com_show_databases | 77 |
| Com_show_fields | 171 |
| Com_show_grants | 4 |
| Com_show_keys | 17 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 685 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 3 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 139 |
| Com_show_variables | 3 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 0 |
| Com_update | 194483 |
| Connections | 96880 |
| Created_tmp_disk_tables | 91 |
| Created_tmp_tables | 50203 |
| Created_tmp_files | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 95524 |
| Handler_read_first | 53765 |
| Handler_read_key | 14237009 |
| Handler_read_next | 32303252 |
| Handler_read_prev | 475510 |
| Handler_read_rnd | 10558465 |
| Handler_read_rnd_next | 142707732 |
| Handler_rollback | 0 |
| Handler_update | 190479 |
| Handler_write | 12176587 |
| Key_blocks_used | 15586 |
| Key_read_requests | 33220164 |
| Key_reads | 110684 |
| Key_write_requests | 314035 |
| Key_writes | 202172 |
| Max_used_connections | 15 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 101 | 10% of table_cache in use
| Open_files | 161 |
| Open_streams | 0 |
| Opened_tables | 241 |
| Questions | 2093304 |
| Qcache_queries_in_cache | 2979 |
| Qcache_inserts | 681666 |
| Qcache_hits | 954636 |
| Qcache_lowmem_prunes | 3016 |
| Qcache_not_cached | 247 |
| Qcache_free_memory | 26484640 |
| Qcache_free_blocks | 3581 |
| Qcache_total_blocks | 9621 |
| Rpl_status | NULL |
| Select_full_join | 87 |
| Select_full_range_join | 996 |
| Select_range | 113118 |
| Select_range_check | 0 |
| Select_scan | 62258 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 0 |
| Slow_queries | 10 | (execution time > 10 secs)
| Sort_merge_passes | 0 |
| Sort_range | 101072 |
| Sort_rows | 10988769 |
| Sort_scan | 57117 |
| Table_locks_immediate | 1347839 |
| Table_locks_waited | 688 |
| Threads_cached | 14 |
| Threads_created | 16 |
| Threads_connected | 2 |
| Threads_running | 1 |
| Uptime | 205709 | 2 days 9 hrs 8 mins 29 secs
+---------------------------+-----------------+
Key Reads/Key Read Requests = 0.003332 (Cache hit = 99.996668%)
Key Writes/Key Write Requests = 0.643788
Connections/second = 0.471 (/hour = 1695.444)
KB received/second = 1.635 (/hour = 5887.064)
KB sent/second = 6.796 (/hour = 24464.631)
Temporary Tables Created/second = 0.244 (/hour = 878.575)
Opened Tables/second = 0.001 (/hour = 4.218)
Slow Queries/second = 0.000 (/hour = 0.175)
% of slow queries = 0.000%
Queries/second = 10.176 (/hour = 36633.761)