Where the open source database community meets: Use code PERCONA75 and secure your spot for Percona Live.  Register

Finding an optimal balance of I/O, CPU, and RAM for MySQL

May 16, 2011
Author
Baron Schwartz
Share this Post:

For a long time I’ve wanted to know how MySQL scales as you add more memory to the server. Vadim recently benchmarked the effects of increasing memory and CPU core count. He looked for a balance between utilizing the hardware as much as possible, limiting the system complexity, and lowering the price-to-performance ratio.

The outcome of the research, which was sponsored by Virident, is that as you add CPUs and increase memory size, MySQL doesn’t scale as well as we would like, and solid-state storage — specifically, the Virident tachIOn drive — has more bandwidth than MySQL can fully utilize at present. Therefore, to decrease the price-to-performance ratio and increase the utilization of the tachIOn drive, Vadim sharded the database into smaller instances and colocated them on the same machine. It’s not a new approach, but to date I’m not aware of anyone measuring the different configurations the way Vadim has done.

You can read the full details in our Scaling MySQL With Virident Flash Drives and Multiple Instances of Percona Server white paper.

0 0 votes
Article Rating
Subscribe
Notify of
guest

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Mark Leith
Mark Leith
15 years ago

I should clarify that I too think that throwing many instances on a box is not the way to scale.. :)

However, I’d also say from experience that the challenge of running two instances on a machine are just the same as 32..

Peter Zaitsev
Admin
15 years ago

Mark,

I still would state what running many instances of MySQL on the same box is a pain and it is much better if you can get to use full box resources with only single instance.

The other thing there is the difference between running 2 instances (which is there main advantage comes) and running 32 instances as the blogger in original article advices.

Mark Leith
Mark Leith
15 years ago

Interesting reading!

I’ll note, we did similar stuff back in 2008 when originally joining Sun, which you guys were pretty critical of:

http://www.mysqlperformanceblog.com/2008/11/11/scaling-to-256-way-the-sun-way/

Slightly different scalability bottlenecks discussed, but both falling back to the good old “oh just run more of them on the same machine”.. :)

Far
Enough.

Said no pioneer ever.
MySQL, PostgreSQL, InnoDB, MariaDB, MongoDB and Kubernetes are trademarks for their respective owners.
© 2026 Percona All Rights Reserved