Solved

How to fix my key efficiency?

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
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…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now