Bug #64108 | Provide a global maximum_memory setting to limit unexpected memory usage | ||
---|---|---|---|
Submitted: | 23 Jan 2012 10:35 | Modified: | 23 Jan 2012 14:58 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S4 (Feature request) |
Version: | 5.1,5.5,5.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | windmill |
[23 Jan 2012 10:35]
Simon Mudd
[23 Jan 2012 14:58]
Valeriy Kravchuk
Thank you for the feature request. We had similar/related requests in the past: - http://bugs.mysql.com/bug.php?id=10139 - http://bugs.mysql.com/bug.php?id=44234 - http://bugs.mysql.com/bug.php?id=9420 - http://bugs.mysql.com/bug.php?id=24757 - maybe more... We even have (internal) Worklog about these (mentioned in some of the reports above). But as a request for simple option this your FR is unique enough.
[25 Jan 2012 23:03]
James Day
Simon, we're considering adding warnings for unusual size settings. Please let me know your thoughts on suitable warning values for the variables you've mentioned. Warnings won't prevent the setting, just alert people that it's unusually big, or perhaps small sometimes. We've improved per-session InnoDB memory allocations with the work described at: http://blogs.innodb.com/wp/2011/12/improving-innodb-memory-usage/ http://blogs.innodb.com/wp/2011/12/improving-innodb-memory-usage-continued/ While the fragmentation described there is specific to the Linux allocator the deferring of some allocations will help on all operating systems. One place where we describe InnoDB memory use is in the manual at http://dev.mysql.com/doc/refman/5.6/en/innodb-parameters.html#sysvar_innodb_buffer_pool_si... which says in part "you might set this to up to 80% of the machine physical memory size ... InnoDB reserves additional memory for buffers and control structures, so that the total allocated space is approximately 10% greater than the specified size". It may be this description that you're remembering. Most of the additional space is for locking information.