innodb_dict_size_limit

Description

This patch limits the size of InnoDB's data dictionary.

It fixes the following problem in standard InnoDB: the data dictionary is unlimited in size, and can grow extremely large. The size depends on the number of InnoDB tables in the server. Once opened, a table is never removed from the data dictionary in standard InnoDB, so the visible symptom is steadily increasing memory usage. See the examples to see how to compute the memory usage that may be caused by this problem.

Variables Provided

The patch provides the following variables:

innodb_dict_size_limit

TypeSystem and command-line variable
ScopeGlobal
DynamicYes
Default0

This variable places a soft upper bound on the memory used by tables in the data dictionary [in bytes]. When the allocated memory exceeds the value, InnoDB tries to remove some unused entries if possible. The default value of 0 gives the same behavior as standard InnoDB, which is unlimited memory usage.

Innodb_dict_tables

TypeStatus variable
ScopeGlobal
Dynamic
Default

This variable shows the number of entries in the InnoDB data dictionary cache.

Patch information

Author/Origin Percona
Bugs fixed
Dependencies
Introduced in Not Yet

Discussion

Enter your comment (wiki syntax is allowed):
FZSEG
 
percona-xtradb/patch/innodb_dict_size_limit.txt · Last modified: 2009/09/13 22:18 by kinoshita
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki