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.


Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

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

Notify of
avatar
Sort by:   newest | oldest | most voted
meagan
Guest

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!

Jas
Guest

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!

Jenny
Guest

This is one awesome article post. Really Great.

faye valentine
Guest

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

Camery
Guest

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!

Rutha
Guest

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

Urfer
Guest

Very informative article post. Really Great.

wpDiscuz