I have two database servers - one is Windows - 2008 and another is RHEL5 with similar hardware configuration. Both OS are 64 bit.
MySQL 5.1.58 community edition is installed on Windows servers while MySQL 5.1.73 is installed on Oracle Linux. Same database is installed on both servers - i..e same number of tables with same data. At a time, if I run `show global status like 'Qcache%' on both servers and below is the comparison result:
Status variables Linux Windows
Qcache_free_blocks 24 54301
Qcache_free_memory 53025440 151737216
Qcache_hits 162509 44648032
Qcache_inserts 33073 6866308
Qcache_lowmem_prunes 0 657080
Qcache_not_cached 11291 994889
Qcache_queries_in_cache 7446 112378
Qcache_total_blocks 14959 279520
Below is the result of show global variables like 'query_cache%';:
Status variables Linux Windows
query_cache_limit 2097152 4194304
query_cache_min_res_unit 1024 4096
query_cache_size 67108864 367001600
query_cache_type ON ON
query_cache_wlock_invalidate OFF OFF
- Why is there huge differences?
- Also, In Linux, Qcache_free_blocks is only 3 while Qcache_free_memory is about 53MB?