Solved

How to fix my key efficiency?

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user 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…

772 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

11 Experts available now in Live!

Get 1:1 Help Now