Solved

How to fix my key efficiency?

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is Dropbox the only way to upload large files? 3 51
Help With Simple Database Design 7 57
converting integer data type to time data type in sql 4 46
Database maintenance 36 101
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

756 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