MySQL Performance – Slow Query and innodb_buffer_pool_size

A small innodb_buffer_pool_size contributed to one customer slow MySQL query. The comparable SQL Server workload ran quickly.

A larger material cabinet shares finite workspace with a loom and other tools.

SHOW GLOBAL VARIABLES LIKE 'innodb_buffer_pool_size';
SHOW GLOBAL STATUS WHERE Variable_name IN ('Innodb_buffer_pool_reads','Innodb_buffer_pool_read_requests');

Several earlier changes did not help. We found a megabyte-sized allocation and increased it into an appropriate gigabyte range. That workload improved. The story does not establish a repeatable benchmark or universal target size.

The pool shares RAM with the operating system, connections and other MySQL allocations. Size from the working set and total budget. Check paging and read behavior. A fixed percentage is unsuitable for some shared and small hosts.

On Windows, inspect the configuration used by the installed service. Don’t copy the historical Linux path. Modern MySQL supports online resizing. Coordinate runtime and persistent settings for the exact release.

Reference: MySQL online buffer-pool sizing.

Related reading

A larger buffer pool is not a universal sizing rule, it is an allocation within the complete host budget.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.


Discover more from SQL Authority with Pinal Dave

Subscribe to get the latest posts sent to your email.

MySQL, SQL Memory, SQL Scripts
Previous Post
Recovery Model Changes and the Log Backup Chain
Next Post
MySQL Performance – Five Configuration Topics with Version Limits

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.