{"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":"https:\/\/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","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","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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},"jetpack_post_was_ever_published":false},"categories":[1064,23],"tags":[1674,1675],"class_list":["post-2943","post","type-post","status-publish","format-standard","hentry","category-mariadb-databases","category-mysql","tag-mariadb-10-0-12","tag-performance_schema"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-Lt","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2943"}],"version-history":[{"count":1,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2943\/revisions"}],"predecessor-version":[{"id":2944,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2943\/revisions\/2944"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}