Unix Technical Forum

Key buffer partially unused - why

This is a discussion on Key buffer partially unused - why within the MySQL General forum forums, part of the MySQL category; --> Hi, I have allocated 500MB to key_buffer_size, but only 324MB is in use (64%). Am I right to assume ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:49 AM
Martijn van den Burg
 
Posts: n/a
Default Key buffer partially unused - why

Hi,

I have allocated 500MB to key_buffer_size, but only 324MB is in use
(64%).

Am I right to assume that this can mean one of the following: (1) all
indexes have already been cached and together they are just 324 MB, (2)
there is a limiting variable (open_files, inodb_open_files, for example)
that prevents the key buffer to be more fully utilized.

Key buffer usage is often hitting 100%, and just 0.01 tables are opened
per second. Number of queries/second is 269.


Setup:

5.0.18-standard-log
Solaris 8
2 CPU, 4GB RAM


Regards,

Martijn

--
The information contained in this communication and any attachments is confidential
and may be privileged, and is for the sole use of the intended recipient(s).. Any
unauthorized review, use, disclosure or distribution is prohibited. If you are not
the intended recipient, please notify the sender immediately by replying tothis
message and destroy all copies of this message and any attachments. ASML isneither
liable for the proper and complete transmission of the information contained in this
communication, nor for any delay in its receipt.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:49 AM
Christian Hammers
 
Posts: n/a
Default Re: Key buffer partially unused - why



On 2007-02-20 Martijn van den Burg wrote:
> Hi,
>
> I have allocated 500MB to key_buffer_size, but only 324MB is in use
> (64%).
>
> Am I right to assume that this can mean one of the following: (1) all
> indexes have already been cached and together they are just 324 MB,

Do "find /var/lib/mysql -name "*.MYI" -ls" (if you're using only MyISAM)
to get a first hint on how much indices you actually have.

> (2)
> there is a limiting variable (open_files, inodb_open_files, for example)
> that prevents the key buffer to be more fully utilized.

You can check at least open_files in "SHOW STATUS" IIRC.

> Key buffer usage is often hitting 100%, and just 0.01 tables are opened
> per second. Number of queries/second is 269.

BTW, try "mysqlreport" to find other bottlenecks.


bye,

-christian-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:53 AM
Martijn van den Burg
 
Posts: n/a
Default RE: Key buffer partially unused - why

> > Hi,
> >
> > I have allocated 500MB to key_buffer_size, but only 324MB is in use
> > (64%).
> >
> > Am I right to assume that this can mean one of the

> following: (1) all
> > indexes have already been cached and together they are just 324 MB,

> Do "find /var/lib/mysql -name "*.MYI" -ls" (if you're using
> only MyISAM)
> to get a first hint on how much indices you actually have.


Heh, thanks. I could have thought about that out myself. </sheepish>

> > (2)
> > there is a limiting variable (open_files, inodb_open_files,

> for example)
> > that prevents the key buffer to be more fully utilized.

> You can check at least open_files in "SHOW STATUS" IIRC.
>
> > Key buffer usage is often hitting 100%, and just 0.01

> tables are opened
> > per second. Number of queries/second is 269.

> BTW, try "mysqlreport" to find other bottlenecks.


Really good tool


Martijn

--
The information contained in this communication and any attachments is confidential
and may be privileged, and is for the sole use of the intended recipient(s).. Any
unauthorized review, use, disclosure or distribution is prohibited. If you are not
the intended recipient, please notify the sender immediately by replying tothis
message and destroy all copies of this message and any attachments. ASML isneither
liable for the proper and complete transmission of the information contained in this
communication, nor for any delay in its receipt.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com