Wednesday, 02 April, 2014
A next MySQL 5.7 milestone release is available an it just rocks! ;-)
few benchmark results to see where we're today comparing:
- MySQL 5.7 / 5.6 / 5.5
- Percona Server 5.6 / 5.5
- MariaDB 10 / 5.5
for all engines the latest available versions were used; the data set is fitting memory size, so the main focus is on the internal contentions here: already fixed for some engines, or still remained for another ones ;-)
Sysbench OLTP_RO 8-tables :
Sysbench OLTP_RO Point-Selects 8-tables :
Sysbench OLTP_RW 8-tables :
All details about these benchmark results and others (IO-bound OLTP_RW, Uniform & Pareto, DBT2, LinkBench) - I'll present during my talk tomorrow at PerconaLive 2014. I will also cover: all internals about InnoDB flushing design and how we're making it yet more improved it in 5.7, fixed and pending issues we have for today, the impact of InnoDB purge, filesystem and flash storage choices on IO-heavy workloads, and several still pending unexplained mysteries around.. - prepare your brain for some storming ;-)
If you're attending Percona Live, don't miss the following talks from MySQL Team :
- A keynote by Tomas Ulin this morning
- All New InnoDB stuff in MySQL 5.7 by Sunny Bains
- All MySQL 5.7 Replication news by Luis Soares
- All MySQL 5.7 Sharding with Fabric News by Mats Kindahl
- All about MySQL 5.7 Core Server Improvements by Morgan Tocker
- And awesome stuff around MySQL 5.7 Performance Schema by Mark Leith
as well we'll be present all here this evening during our "Meeting MySQL Team" BOF session to answer any questions you want and discuss any issues you have - your valuable feedback helps us to make MySQL yet more better! - and nothing is better here than live and fair face to face discussions.. - so, don't miss ;-)
Also, to get an overview of all the new features and improvements coming within this 5.7 milestone release - you may find many interesting information for you by reading Geir's article - http://mysqlserverteam.com/the-mysql-5-7-4-milestone-release-is-available/
Friday, 31 January, 2014
February was yet so far.. - and finally it's just tomorrow, starting
with MySQL & Friends Dev Room at FOSDEM 2014 in Brussels. I have a
talk about "Starting
with MySQL PERFORMANCE SCHEMA" - in fact I would call it rather
"Using PFS with zero configuration" ;-) -- many people are thinking
PFS is complicate, while in reality it's very simple, and just need
little bit of love ;-) Since MySQL 5.6 PFS is enabled by default,
and as the result - there are several very useful instrumentation
stats available out-of-the-box, and my talk will be about them..
Of course I'll speak about MySQL Performance as well, and feel free to ask any questions about.
Also, don't miss talks from our MySQL Team :
See you all there!
(and hurry up to not miss MySQL & Friends Community Dinner - only few places left)
Friday, 22 November, 2013
Last week, during Tomas' keynote
at MySQL Percona Live
Conference in London we announced as one of "previews" of the
following MySQL 5.7 release(s) -- an over 1,000,000 Query/sec
result obtained with InnoDB
Memcached plugin on a Read-Only workload. This article here is just
to confirm the announced results without going too much in details..
In fact we have no idea yet for today what are exactly the scalability and performance limits for this solution.. The huge gain in performance was possible here due initial overall speed-up made recently in MySQL 5.7 and letting us reach 500K QPS in a "normal" SQL Read-Only workload. Then yet more improvement in the InnoDB Memcached Plugin code were possible and came just naturally. Specially since Facebook Team challenged us here pretty well by expressing all performance limitations they are hitting in their workloads. As well Facebook provided us a test case workload which we successfully used to improve even more our code. And finally the same test case was used to obtain the following benchmark results ;-)
The test was executed in "standalone" mode (both server and client are running on the same server). So, we used our biggest HW box we have in the LAB - a 48cores machine. This server was able very quickly to point us into any existing or potential performance issues and bottlenecks (and what is interesting that most of them were now on the memcached code itself). However, Query/sec rate (QPS) is depending a lot here of memory latency and CPU frequency, while this server is having 2Ghz CPU cores only, so on a faster HW you may expect even better results ;-)
Now, comparing best-to-best QPS results obtained on this server we have the following :
and for people who prefer 2D charts :
I've placed in legend "MySQL 5.6", while a true label should be rather "the best result we observed until now" ;-)) -- because some part of Memcached code improvement will be back-ported to MySQL 5.6 as well, so we may expect to see next 5.6 releases running here better too. However - only with MySQL 5.7 code base you'll be able to go really high..
During my talk at Percona Live in London I've also presented the following graphs - the Memcached QPS is corresponding here to the InnoDB "dml_reads/sec" stats :
There are 4 tests on these graphs representing "previous" MySQL code running on Memcached workload :
- #1 - running on 48cores as it.. - we're hitting a severe contentions related to the MVCC code (which was fixed in the latest MySQL 5.7)..
- #2 - limiting MySQL server to run on 16cores only to lower this contention.. - and then hitting transaction related contentions (which was also fixed in the latest MySQL 5.7 code)..
- #3 - tune memcached plugin to keep several reads within a single internal transaction -- helps, but hitting other contentions..
- #4 - limiting MySQL server to run on 8cores to see if contentions may be lowered -- indeed, the max peak QPS becomes higher (on 32 users), but overall performance is worse..
While on the latest MySQL 5.7 code things are looking completely differently :
There are 2 tests on these graphs:
- #1 - is running on 48cores as it (no comments ;-))
- #2 - is using "tuning" option to keep several reads within a single internal transaction - just slightly better on a peak max QPS, otherwise no significant difference anymore..
And to really feel the difference in obtained QPS gap, let's bring them all together to the same graph :
As you can see, the difference is more than impressive ;-))
- all the curves on the left parts of graph representing QPS levels obtained on the "previous" MySQL 5.6 / 5.7 code..
- then, the last curves on the right part - with the latest MySQL 5.7 code..
So, work is still in progress, and I let Sunny and Jimmy provide you all deep details about this huge step forward we made in the latest MySQL 5.7 release!
I don't know what will be the performance limit here.. Probably only HW level.. And don't know if we'll have a big enough HW to see it ;-) -- currently via a single 1Gbit network link we already observed over 700K QPS performance, and while the limitation is coming here from a single network link, the main troubles are coming from clients processing rather server.. - so, seems like Memcached @InnoDB is scaling now way better comparing to the "original" Memcached itself ;-) -- then, what kind of performance may be expected when several network links are used (or simply more fast network cards are used) -- there is still a lot to discover! and RW workload performance will be yet another challenge as well ;-)
Kudos to Sunny and Jimmy! And my special thanks to Yoshinori (Facebook)! - I think this is an excellent example where a common work on a given problem provides a fantastic final result for all MySQL users!..
If you need some details about Memcached Plugin design - you may start your reading from here: https://blogs.oracle.com/MySQL/entry/nosql_memcached_api_for_mysql - while then, keeping in mind all presented here results, I let you imagine now what kind of performance you may expect if data will be accessed directly via "native" InnoDB API and by-passing the Memcached level.. ;-))
Friday, 08 November, 2013
I'm speaking next week at Percona
Live in in London. My
talk will be almost about MySQL Performance (of course),
covering major MySQL 5.6 improvements and latest findings made in
MySQL 5.7 for today. Percona Server 5.6 and MariaDB 10 will not be
missed as well.. - we're living very interesting times, and
performance topic is amazing today as never ;-)
As usually, I'll tell you "one more thing" about MySQL Performance latest news that you cannot read or find anywhere else.. - so, stay tuned ;-)
Thursday, 31 October, 2013
This is a special Halloween Edition of dim_STAT Core Update-13 available (as it's Update #13 it was hard to resist to not ship it exactly for Halloween day ;-))
The Update contains all the goodies from the #12 version plus "one more thing" ;-)
- Bookmark Presets are now introduced to the Multi-Host too (extended or not)
- And also directly accessible from the full Bookmark list on a Single-Host Analyze a well - you should be able to see all your preferred graphs within a one single click now ;-)
- Presets can be removed now and extended (you may at any time add any new Bookmark(s) to existing Preset)
- and just for fun, there is a possibility now to include a customized "welcome" message on the dim_STAT Home Page -- the code is testing for a presence of the "welcome.html" file in the /opt/WebX/apps/dim_STAT directory.. - and it exists, it'll be automatically included within a Home Page (in case you want to add some guide lines to your users, instructions, daily message - up to you ;-))
The installation instructions are exactly the same as before, except that I was too paranoid in the past with Core Updates when it was yet experimental ;-)) -- in fact you don't need to stop dim_STAT Server to apply a Core Update.. - you can do it live without any problem ;-)) (and I'm doing it every time on my servers) -- however, before to upgrade, don't forget to backup your existing /opt/WebX/apps content!!! (we never know ;-))