Today was expecting mysql server with average 50 queries per second. Version of mysql server installed is 4.0.24. Found that query_cache_size is default to 0 so it's switched off. Changed /etc/my.cnf for a new size and noticed good cache hit ratio. Too bad this server is only 1Gb of ram, so i can't increase read_buffer_size/read_rnd_buffer_size to bigger values. Also seen too much of 'Opened tables', the value was 10222, so increased 'table_cache' from defaults.
PS: it's pretty cold in Moscow right now, about -25C and i'm falling in love with my girl.
mysql cache
ok. 22 hours of work gives following numbers:
notice a good cache hit ratio. i wonder why mysql.com don't enabled Qcache by default.
PS: i seen only debian OS having /etc/mysql/my.cnf with enabled QueryCache.
/mator
new article
new article explaining
http://jayant7k.blogspot.com/2007/07/mysql-query-cache.html