Solved

How to fix my key efficiency?

Posted on 2007-11-28
2
6,202 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
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

790 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