{"id":2943,"date":"2014-06-16T19:56:53","date_gmt":"2014-06-17T00:56:53","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=2943"},"modified":"2014-06-16T19:56:53","modified_gmt":"2014-06-17T00:56:53","slug":"performance_schema-disabled-in-mariadb-10-0-12","status":"publish","type":"post","link":"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12","title":{"rendered":"PERFORMANCE_SCHEMA disabled in MariaDB 10.0.12"},"content":{"rendered":"<p>Astute readers of the <a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb-10012-release-notes\/\">release notes for MariaDB 10.0.12<\/a> will notice that there is a line that reads:\u00a0<strong>performance_schema is now disabled by default<\/strong>.<\/p>\n<p>We didn\u2019t come to this decision by accident. Recently at the SkySQL company meeting in Budapest, we did have some time to break out into our usual working teams to talk about our daily operations. Team MariaDB had a debate about PERFORMANCE_SCHEMA and how it was left on by mistake in 10.0 GA as there was a decision to turn it off. Personally, I don\u2019t like introducing such changes in a GA release, and there was no archive of such a discussion, so the next best thing to do was to ask the MariaDB developers and users via a post to both <a href=\"https:\/\/lists.launchpad.net\/maria-developers\/msg07327.html\">maria-developers<\/a> and <a href=\"https:\/\/lists.launchpad.net\/maria-discuss\/msg01645.html\">maria-discuss<\/a>\u00a0(3 June 2014) and to ensure that a Jira ticket existed (<a href=\"https:\/\/mariadb.atlassian.net\/browse\/MDEV-6249\">MDEV-6249<\/a>).<\/p>\n<p>But first, let\u2019s delve into a little background information for context of this discussion. Elena started investigating a <a href=\"https:\/\/lists.launchpad.net\/maria-developers\/msg07197.html\">query performance issue reported on IRC<\/a>, and she found that with default settings the query performance dropped tremendously with PERFORMANCE_SCHEMA enabled. We had seen that the <a href=\"http:\/\/webscalesql.org\/\">WebScaleSQL<\/a> folk had <a href=\"https:\/\/github.com\/webscalesql\/webscalesql-5.6\/commit\/cb2e12b48981a2b4040ce753c53ef29e18c8cb04\">disabled<\/a> PERFORMANCE_SCHEMA and there was <a href=\"https:\/\/groups.google.com\/forum\/#!msg\/webscalesql\/B-4bPIb8mHI\/-YZMMCuPw3QJ\">discussion<\/a> on the mailing list about a loss in performance (<em>\u201cOur perf testing agrees with your assessment (we see about a 5%-6% perf hit when it\u2019s included and on, and a 2%-3% hit when it\u2019s included but off)\u201d<\/em>).<\/p>\n<p>On the maria-developers and maria-discuss lists, no one complained about having such a change. Hence the decision to disable it by default now. The alternative to this in MariaDB that comes without performance overhead is <a href=\"https:\/\/mariadb.com\/kb\/en\/user-statistics\/\">user statistics<\/a>. I read a comment somewhere that there is constant evolution of PERFORMANCE_SCHEMA but the user statistics haven\u2019t changed in a while (since MariaDB 5.2), though reliable sources tell me that more work is being done on this. <strong>Do MariaDB users want to see evolution of user statistics?<\/strong><\/p>\n<p>So from a user standpoint, the best way to find out if PERFORMANCE_SCHEMA is ON or OFF is to run <tt>SHOW VARIABLES LIKE 'perf%';<\/tt>. On MariaDB 10.0.11, you will see that it is ON but on 10.0.12 you will see that it is OFF. If you are planning to enable it in a development environment, all you have to do is edit your my.cnf to have <tt>performance_schema=1<\/tt> and restart your server to get to using it again.<\/p>\n<p>It looks like the decision might have been the right one for the time being, looking at the recently resurfaced <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=68514\">mysql#68514<\/a>.<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20PERFORMANCE_SCHEMA%20disabled%20in%20MariaDB%2010.0.12&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2014%2F06%2F16%2Fperformance_schema-disabled-in-mariadb-10-0-12&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"9932a4ab80\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-2943\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-2943\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-2943\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Astute readers of the release notes for MariaDB 10.0.12 will notice that there is a line that reads:\u00a0performance_schema is now disabled by default. We didn\u2019t come to this decision by accident. Recently at the SkySQL company meeting in Budapest, we did have some time to break out into our usual working teams to talk about [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20PERFORMANCE_SCHEMA%20disabled%20in%20MariaDB%2010.0.12&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2014%2F06%2F16%2Fperformance_schema-disabled-in-mariadb-10-0-12&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"9932a4ab80\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-2943\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-2943\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-2943\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/16\/performance_schema-disabled-in-mariadb-10-0-12?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[1064,23],"tags":[1674,1675],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-Lt","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2673,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2013\/03\/15\/using-mariadb-on-centos-6","url_meta":{"origin":2943,"position":0},"title":"Using MariaDB on CentOS 6","date":"15\/3\/2013","format":false,"excerpt":"This is just for testing purposes, but you might want to play around with MariaDB 5.5.29 coming via the CentOS 6 repositories as mentioned in this post. Please test it out and report bugs if required. The process was simple on a fresh install: yum update cd \/etc\/yum.repos.d\/ wget http:\/\/dev.centos.org\/centos\/6\/mariadb\/mariadb.repo\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3211,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2016\/04\/14\/mariadb-berlin-meetup-notes-slides","url_meta":{"origin":2943,"position":1},"title":"MariaDB Berlin Meetup Notes &#038; Slides","date":"14\/4\/2016","format":false,"excerpt":"We had the first MariaDB Berlin Meetup on Tuesday 12.04.2016 at the Wikimedia Berlin offices at 7pm. More or less there were over 54 people that attended the event, a mix of MariaDB Corporation employees and community members. We competed with the entertainment at the AWS Summit Berlin which was\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2938,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2014\/06\/11\/rhel7-now-with-mariadb","url_meta":{"origin":2943,"position":2},"title":"RHEL7 now with MariaDB","date":"11\/6\/2014","format":false,"excerpt":"Congratulations to the entire team at Red Hat, for the release of Red Hat Enterprise Linux 7 (RHEL7). The release notes have something important, under Web Servers & Services: MariaDB 5.5 MariaDB is the default implementation of MySQL in Red Hat Enterprise Linux 7. MariaDB is a community-developed fork of\u2026","rel":"","context":"In &quot;Distributions&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3048,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2015\/02\/01\/mariadb-turns-5","url_meta":{"origin":2943,"position":3},"title":"MariaDB turns 5!","date":"1\/2\/2015","format":false,"excerpt":"I stopped working on MySQL at Sun Microsystems in late 2009 (after a lengthy period of garden leave), to join Monty Program Ab, and was greatly anticipating a MariaDB release that we could take to market. The first GA release of MariaDB came out February 1 2010 - MariaDB 5.1.42.\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1689,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2010\/02\/23\/recently-in-mariadb-1","url_meta":{"origin":2943,"position":4},"title":"Recently in MariaDB #1","date":"23\/2\/2010","format":false,"excerpt":"The aims of this kind of blog post is simple - I want to help keep the masses informed as to what's happening with MariaDB, as a whole. There is a community growing, and MariaDB is a community project, not necessarily a Monty Program Ab baby (and we're clear on\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3140,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2015\/12\/12\/mariadb-server-gas-supported-for-5-years","url_meta":{"origin":2943,"position":5},"title":"MariaDB Server GA&#8217;s supported for 5 years","date":"12\/12\/2015","format":false,"excerpt":"There was some discussion a while back to maybe make MariaDB Server\u00a0follow the Ubuntu release model, i.e. having a Long Term Release (LTS) and then having a few regular fast releases with a shorter support cycle. However its good to note that the decision now going forward is to support\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2943"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2943"}],"version-history":[{"count":1,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2943\/revisions"}],"predecessor-version":[{"id":2944,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2943\/revisions\/2944"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2943"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}