{"id":4003,"date":"2015-10-19T11:04:07","date_gmt":"2015-10-19T01:04:07","guid":{"rendered":"https:\/\/www.flamingspork.com\/blog\/?p=4003"},"modified":"2015-10-19T11:04:07","modified_gmt":"2015-10-19T01:04:07","slug":"1-million-sql-queries-per-second-ga-mariadb-10-1-on-power8","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2015\/10\/19\/1-million-sql-queries-per-second-ga-mariadb-10-1-on-power8\/","title":{"rendered":"1 Million SQL Queries per second: GA MariaDB 10.1 on POWER8"},"content":{"rendered":"<p>A couple of days ago, <a href=\"http:\/\/www.mariadb.org\">MariaDB<\/a> announced that <a href=\"https:\/\/blog.mariadb.org\/mariadb-10-1-is-stable-ga\/\">MariaDB 10.1 is stable GA<\/a> &#8211; around 19 months since the <a href=\"https:\/\/blog.mariadb.org\/the-mariadb-foundation-announces-general-availability-of-mariadb-10\/\">GA of MariaDB 10.0<\/a>. With MariaDB 10.1 comes some <strong>important scalabiity improvements, <\/strong>especially for POWER8 systems. On POWER, we&#8217;re a bit unique in that we&#8217;re on the higher end of CPUs, have many cores, and up to 8 threads per core (selectable at runtime: 1, 2, 4 or 8\/core) &#8211; so a dual socket system can easily be a 160 thread machine.<\/p>\n<p>Recently, we (being IBM) announced availability of a couple of new POWER8 machines &#8211; machines designed for Linux and cloud environments. They are very much OpenPower machines, and more info is available here: <a href=\"http:\/\/www.ibm.com\/marketplace\/cloud\/commercial-computing\/us\/en-us\">http:\/\/www.ibm.com\/marketplace\/cloud\/commercial-computing\/us\/en-us<\/a><\/p>\n<p>Combine these two together, with Axel Schwenke running some benchmarks and you get <strong><a href=\"https:\/\/blog.mariadb.org\/10-1-mio-qps\/\">1 Million SQL Queries per second with MariaDB 10.1 on POWER8<\/a><\/strong>.<\/p>\n<p>Having worked a lot on both MySQL for POWER and the firmware that ships in the S882LC, I&#8217;m rather happy that 1 Million queries per second is beyond what it was in <a href=\"https:\/\/www.flamingspork.com\/blog\/2014\/06\/03\/1-million-sql-queries-per-second-mysql-5-7-on-power8\/\">June 2014<\/a>, which was a neat hack on MySQL 5.7 that showed the <strong>potential<\/strong> of MySQL on POWER8 but wasn&#8217;t yet a product. Now, you can run a GA release of MariaDB on GA POWER8 hardware designed for scale-out cloud environments and get 1 Million SQL queries\/second (with fewer cores than my initial benchmark last year!)<\/p>\n<p>What&#8217;s even more impressive is that this million queries per second is <strong>in a KVM guest!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of days ago, MariaDB announced that MariaDB 10.1 is stable GA &#8211; around 19 months since the GA of MariaDB 10.0. With MariaDB 10.1 comes some important scalabiity improvements, especially for POWER8 systems. On POWER, we&#8217;re a bit &hellip; <a href=\"https:\/\/www.flamingspork.com\/blog\/2015\/10\/19\/1-million-sql-queries-per-second-ga-mariadb-10-1-on-power8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[570,14,588,615],"tags":[340,628,587,562,568,637,109,55],"class_list":["post-4003","post","type-post","status-publish","format-standard","hentry","category-ibm-work-et-al","category-mysql","category-opal","category-powerpc","tag-mariadb","tag-mysql","tag-openpower","tag-power","tag-power8","tag-powerpc","tag-sql","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5a6n8-12z","jetpack-related-posts":[{"id":4019,"url":"https:\/\/www.flamingspork.com\/blog\/2015\/12\/18\/power8-accelerated-crc32-merged-in-mariadb-10-1\/","url_meta":{"origin":4003,"position":0},"title":"POWER8 Accelerated CRC32 merged in MariaDB 10.1","author":"Stewart Smith","date":"2015-12-18","format":false,"excerpt":"Earlier on in benchmarking MySQL and MariaDB on POWER8, we noticed that on write workloads (or read workloads involving a lot of IO) we were spending a bunch of time computing InnoDB page checksums. This is a relatively well known MySQL problem and has existed for many years and Percona\u2026","rel":"","context":"In &quot;IBM&quot;","block_context":{"text":"IBM","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/ibm-work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3959,"url":"https:\/\/www.flamingspork.com\/blog\/2015\/04\/28\/going-beyond-1-3-million-sql-queriessecond\/","url_meta":{"origin":4003,"position":1},"title":"Going beyond 1.3 MILLION SQL Queries\/second","author":"Stewart Smith","date":"2015-04-28","format":false,"excerpt":"So, on a large IBM POWER8 system I was recently running the newly coined \"yesmark\" benchmark, which is best translated as this: Benchmark (N for concurrency): for i in {1..N}; do yes \"DO 0;\" | mysql > \/dev\/null & done Live results: mysqladmin -ri 1 extended-status | grep Questions Which\u2026","rel":"","context":"In &quot;IBM&quot;","block_context":{"text":"IBM","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/ibm-work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3795,"url":"https:\/\/www.flamingspork.com\/blog\/2014\/10\/08\/mariadb-10-0-on-power\/","url_meta":{"origin":4003,"position":2},"title":"MariaDB 10.0 on POWER","author":"Stewart Smith","date":"2014-10-08","format":false,"excerpt":"Good news for those wanting to run MariaDB on POWER systems, the latest 10.0 bzr tree (as of a couple of weeks ago) builds and runs well! I recently pulled the latest MariaDB 10.0 from BZR and built it on a POWER8 system in the lab to run some quick\u2026","rel":"","context":"In &quot;IBM&quot;","block_context":{"text":"IBM","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/ibm-work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4052,"url":"https:\/\/www.flamingspork.com\/blog\/2016\/05\/06\/video-of-my-percona-live-talk-why-would-i-run-mysqlmariadb-on-power-anyway\/","url_meta":{"origin":4003,"position":3},"title":"Video of my Percona Live Talk: Why would I run MySQL\/MariaDB on POWER anyway?","author":"Stewart Smith","date":"2016-05-06","format":false,"excerpt":"Good news everyone! There's video up for the talk I gave at Percona Live in April 2016 up: Why would I run MySQL\/MariaDB on POWER anyway? The talk is a general overview of POWER and why MySQL\/MariaDB may be a good fit.","rel":"","context":"In &quot;IBM&quot;","block_context":{"text":"IBM","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/ibm-work-et-al\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/UgwGHe46wqk\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3263,"url":"https:\/\/www.flamingspork.com\/blog\/2013\/03\/15\/diffstat-of-mysql-5-6-versus-5-5\/","url_meta":{"origin":4003,"position":4},"title":"diffstat of MySQL 5.6 versus 5.5","author":"Stewart Smith","date":"2013-03-15","format":false,"excerpt":"Yesterday I wrote about what the diffstat between MySQL 5.5 and MariaDB 5.5 was, and previously to that, about the MariaDB code size as reported by sloccount. Let's look at MySQL 5.6. A naive wc based \"lines of code\" for MySQL 5.6 sql\/ directory is ~490kLOC which contasts with MySQL\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3238,"url":"https:\/\/www.flamingspork.com\/blog\/2013\/03\/06\/mariadb-code-size\/","url_meta":{"origin":4003,"position":5},"title":"MariaDB code size","author":"Stewart Smith","date":"2013-03-06","format":false,"excerpt":"Continuing on from my previous post,\u00c2\u00a0MySQL code size over releases. I wanted to look at the different branches\/patch sets of MySQL out there and work out how far from upstream they deviated. I'm just going to compare against whatever upstream version the most easily accessible version is based on (be\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/docs.google.com\/spreadsheet\/oimg?key=0Ar7e3-N2Y32IdHFGRWI2ODk4ZUY4TkhrclJSVC1mb3c&oid=4&zx=imt1yst694nh","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/4003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=4003"}],"version-history":[{"count":1,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/4003\/revisions"}],"predecessor-version":[{"id":4004,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/4003\/revisions\/4004"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=4003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=4003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=4003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}