Bug #46872 | very high Key_blocks_unused after upgrade to 5.0.84 | ||
---|---|---|---|
Submitted: | 23 Aug 2009 22:35 | Modified: | 24 Aug 2009 12:05 |
Reporter: | Tom Keyser | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | 5.0.84-log | OS: | Other (CentOS 5.3) |
Assigned to: | CPU Architecture: | Any | |
Tags: | CentOS, innodb, Key_blocks_unused, Key_blocks_used |
[23 Aug 2009 22:35]
Tom Keyser
[24 Aug 2009 9:05]
Valeriy Kravchuk
Why do you think that this is an indication of any problem? Do you use any MyISAM tables in your databases? Are you sure that you had same/similar queries to the same tables in both cases? Please, send your entire my.cnf files from both servers also.
[24 Aug 2009 9:57]
Tom Keyser
I was using 5.0.45 then 5.0.82 and now 5.0.84 All tables are Innodb except the default mysql tables and the schema views. Under 5.0.45 I saw a lot of activity in the key cache, and if I am not mistake I saw the same in 5.0.82. Are you suggesting that this is normal with all tables being Innodb and the default value for key cache is enough when all tables are Innodb?
[24 Aug 2009 10:00]
Tom Keyser
my.cnf for MYSQL1
Attachment: my.cnf (application/octet-stream, text), 21.67 KiB.
[24 Aug 2009 10:01]
Tom Keyser
my.cnf for MYSQL2
Attachment: my.cnf (application/octet-stream, text), 21.68 KiB.
[24 Aug 2009 12:05]
Valeriy Kravchuk
Blocks in key cache are used when they are needed. With all the really big tables being InnoDB it is used for (seldom) queries to the tables in the mysql database and for temporary tables created as MyISAM and having indexes (if any). I do not see any problem with key_buffer_size (check key cache hit ratios, see http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html#statvar_Key_blocks_use... etc) or any bug in your case.