MySQL: Script to determine the size of innodb_buffer_pool_size

In this post, I am providing a script to determine the size of innodb_buffer_pool_size in MySQL Server.

The Buffer pool is very important for the InnoDB engine because InnoDB maintains this storage area for caching data and indexes in memory.

I have one rough figure like, if you have 3 GB of InnoDB data and indexes, you require at least 1 GB size of innodb_buffer_pool_size.

Below is a one script to calculate require size for InnoDB buffer pool.

After executing above statement, You will get one RIBPS value. e.g. result 2 RIBPS so you require 2 GB size of the buffer pool.
You can change this parameter in mysql in config file and restart your MySQL Service.

InnoDB reserves additional memory for buffers and control structures, so that the total allocated space is approximately 10% greater than the specified size.

Anvesh Patel

Leave a Reply

7 Comments on "MySQL: Script to determine the size of innodb_buffer_pool_size"

Notify of
Sort by:   newest | oldest | most voted

You really make it seem so easy with your presentation but I find this topic to be actually something
which I think I would never understand. It seems too
complicated annd very broad for me. I’m looking forward for ypur next post,
I will try to get thhe hang of it!


Howdy! This post couldn’t be written any better!
Looking through this post reminds me of my previous roommate!
He continually kept talking about this. I’ll send thus information to him.
Fairly certain he’ll have a great read. Thank you for sharing!


This is one awesome article post. Really Great.

faye valentine

Im grateful for the blog post.Thanks Again. Really Cool.


magnificent post, very informative. I wonder why the other experts of this sector don’t notice this. You should continue your writing. I’m sure, you’ve a great readers’ base already!


Major thanks for the post.Really looking forward to read more. Really Cool.


Very informative article post. Really Great.