Solved

How to fix my key efficiency?

Posted on 2007-11-28
2
6,278 Views
Last Modified: 2011-02-15
In the mysql administrator, under the health section, under the 'memory health' tab I see that the hit rate in my 'key efficiency' spends alot of time at 100% (on the same page, key buffer usage sits around 22,650,000 and key buffer reads 314,000,000).  On the web it said that I should increase my 'key_cache_size'  in startup variables (in the administrator)  but I cannot find anything that says explicitly 'key_cache_size'.  Does it have another name?  If so where is it?  

I also looked in 'my.ini', searched for 'key_cache_size' and found nothing.  Should I put in an entry into that file that looks like this:

'key_cache_size=100M'

If so, how large should I set it?

Thanks!

Server info:
MySQL 5.0.45-community-nt via TCP/IP
MySQL Client Version 5.1.11
InnoDB tables
0
Comment
Question by:jmokrauer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
ina_don earned 500 total points
ID: 20367383
Yes its supposed to be added to your startup file. Depending on what you have on your machine then it might as well be my.ini or my.cnf (on windows). Just as you have put it set it like that without the quotes.

With regards to size, start at a fair amount depending on the other functions of the machine and the available resources.

Try starting at the 100M and see what that does for you. Tweak it until it meets your requirements
0
 
LVL 5

Assisted Solution

by:ina_don
ina_don earned 500 total points
ID: 20367392
Also note what this graph means as your read it hey, 100% might be a good thing. Read this and see

http://dev.mysql.com/doc/administrator/en/mysql-administrator-health-memory-health.html

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question