Upstream bug https://bugs.mysql.com/bug.php?id=68079 is fixed since 5.6.16. To fix it new CMake option was introduced, INNODB_PAGE_ATOMIC_REF_COUNT.
This option is visible in the code (MariaDB 10.1, cloned today):
[openxs@centos server]$ git branch
|
* 10.1
|
[openxs@centos server]$ grep -rni INNODB_PAGE_ATOMIC_REF_COUNT *
|
storage/innobase/include/buf0types.h:29:#if defined(INNODB_PAGE_ATOMIC_REF_COUNT) && defined(HAVE_ATOMIC_BUILTINS)
|
storage/innobase/include/buf0types.h:31:#endif /* INNODB_PAGE_ATOMIC_REF_COUNT && HAVE_ATOMIC_BUILTINS */
|
storage/xtradb/include/buf0types.h:29:#if defined(INNODB_PAGE_ATOMIC_REF_COUNT) && defined(HAVE_ATOMIC_BUILTINS)
|
storage/xtradb/include/buf0types.h:31:#endif /* INNODB_PAGE_ATOMIC_REF_COUNT && HAVE_ATOMIC_BUILTINS */
|
[openxs@centos server]$
|
But, as you can see, it is not mentioned in CMakeLists.txt and (probably for this reason) is not used. In the error logs of 10.0.23 we see:
160721 14:22:06 [Note] /home/openxs/10.0.23/bin/mysqld (mysqld 10.0.23-MariaDB-log) starting as process 2418 ...
|
160721 14:22:06 [Note] InnoDB: Using mutexes to ref count buffer pool pages
|
even though this version already uses InnoDB 5.6.26. For comparison, Percona Server 5.6.28 starts like this:
|
...
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Using atomics to ref count buffer pool p
|
ages
|
2016-02-24 18:25:37 1814 [Note] InnoDB: The InnoDB memory heap is disabled
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Mutexes and rw_locks use GCC atomic buil
|
tins
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Memory barrier is not used
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Compressed tables use zlib 1.2.3
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Using Linux native AIO
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Not using CPU crc32 instructions
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Initializing buffer pool, size = 5.0M
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Completed initialization of buffer pool
|
2016-02-24 18:25:37 1814 [Note] InnoDB: Highest supported file format is Barracu
|
da.
|
2016-02-24 18:25:38 1814 [Note] InnoDB: 128 rollback segment(s) are active.
|
2016-02-24 18:25:38 1814 [Note] InnoDB: Waiting for purge to start
|
2016-02-24 18:25:39 1814 [Note] InnoDB: Percona XtraDB (http://www.percona.com)
|
5.6.28-76.1 started; log sequence number 1017098584
|
...
|
In the code of current upstream MySQL 5.6 we see:
[openxs@centos mysql-server]$ grep -rni INNODB_PAGE_ATOMIC_REF_COUNT *
|
CMakeLists.txt:332:OPTION(INNODB_PAGE_ATOMIC_REF_COUNT "Use atomics for the page reference count"
|
CMakeLists.txt:334:MARK_AS_ADVANCED(INNODB_PAGE_ATOMIC_REF_COUNT)
|
config.h.cmake:552:#cmakedefine INNODB_PAGE_ATOMIC_REF_COUNT
|
storage/innobase/include/buf0types.h:29:#if defined(INNODB_PAGE_ATOMIC_REF_COUNT) && defined(HAVE_ATOMIC_BUILTINS)
|
storage/innobase/include/buf0types.h:31:#endif /* INNODB_PAGE_ATOMIC_REF_COUNT && HAVE_ATOMIC_BUILTINS */
|
[openxs@centos mysql-server]$ git branch
|
* 5.6
|
5.7
|
I know there were problems with this option on Windows long time ago, but is it a good reason to NOT use it and related InnoDB scalability improvements?
{"report":{"fcp":1129.5,"ttfb":309.90000009536743,"pageVisibility":"visible","entityId":57538,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"451959f5-44d9-498a-93ea-3a6773d154ac","navigationType":0,"readyForUser":1216.2000000476837,"redirectCount":0,"resourceLoadedEnd":1385,"resourceLoadedStart":320.7000000476837,"resourceTiming":[{"duration":326.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":320.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":320.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":646.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":326,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":321.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":321.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":647.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":335.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":321.30000019073486,"connectEnd":321.30000019073486,"connectStart":321.30000019073486,"domainLookupEnd":321.30000019073486,"domainLookupStart":321.30000019073486,"fetchStart":321.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":321.30000019073486,"responseEnd":656.9000000953674,"responseStart":656.9000000953674,"secureConnectionStart":321.30000019073486},{"duration":382.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":321.5,"connectEnd":321.5,"connectStart":321.5,"domainLookupEnd":321.5,"domainLookupStart":321.5,"fetchStart":321.5,"redirectEnd":0,"redirectStart":0,"requestStart":321.5,"responseEnd":704.1000001430511,"responseStart":704.1000001430511,"secureConnectionStart":321.5},{"duration":386.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":321.7000000476837,"connectEnd":321.7000000476837,"connectStart":321.7000000476837,"domainLookupEnd":321.7000000476837,"domainLookupStart":321.7000000476837,"fetchStart":321.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":321.7000000476837,"responseEnd":708.5,"responseStart":708.5,"secureConnectionStart":321.7000000476837},{"duration":387.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":321.90000009536743,"connectEnd":321.90000009536743,"connectStart":321.90000009536743,"domainLookupEnd":321.90000009536743,"domainLookupStart":321.90000009536743,"fetchStart":321.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":321.90000009536743,"responseEnd":709,"responseStart":709,"secureConnectionStart":321.90000009536743},{"duration":387.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":322.10000014305115,"connectEnd":322.10000014305115,"connectStart":322.10000014305115,"domainLookupEnd":322.10000014305115,"domainLookupStart":322.10000014305115,"fetchStart":322.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":322.10000014305115,"responseEnd":709.4000000953674,"responseStart":709.4000000953674,"secureConnectionStart":322.10000014305115},{"duration":477.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":322.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":322.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":800.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":387.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":322.30000019073486,"connectEnd":322.30000019073486,"connectStart":322.30000019073486,"domainLookupEnd":322.30000019073486,"domainLookupStart":322.30000019073486,"fetchStart":322.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":322.30000019073486,"responseEnd":710,"responseStart":710,"secureConnectionStart":322.30000019073486},{"duration":477.7000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":322.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":322.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":800.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":387.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":322.7000000476837,"connectEnd":322.7000000476837,"connectStart":322.7000000476837,"domainLookupEnd":322.7000000476837,"domainLookupStart":322.7000000476837,"fetchStart":322.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":322.7000000476837,"responseEnd":710.6000001430511,"responseStart":710.6000001430511,"secureConnectionStart":322.7000000476837},{"duration":695.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":323.60000014305115,"connectEnd":323.60000014305115,"connectStart":323.60000014305115,"domainLookupEnd":323.60000014305115,"domainLookupStart":323.60000014305115,"fetchStart":323.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":323.60000014305115,"responseEnd":1018.9000000953674,"responseStart":1018.9000000953674,"secureConnectionStart":323.60000014305115},{"duration":1061.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":323.7000000476837,"connectEnd":323.7000000476837,"connectStart":323.7000000476837,"domainLookupEnd":323.7000000476837,"domainLookupStart":323.7000000476837,"fetchStart":323.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":323.7000000476837,"responseEnd":1385,"responseStart":1385,"secureConnectionStart":323.7000000476837},{"duration":258.7000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":824.4000000953674,"connectEnd":824.4000000953674,"connectStart":824.4000000953674,"domainLookupEnd":824.4000000953674,"domainLookupStart":824.4000000953674,"fetchStart":824.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":824.4000000953674,"responseEnd":1083.1000001430511,"responseStart":1083.1000001430511,"secureConnectionStart":824.4000000953674},{"duration":334.89999985694885,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1117.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1117.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1452.7000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":159,"responseStart":310,"responseEnd":311,"domLoading":318,"domInteractive":1405,"domContentLoadedEventStart":1405,"domContentLoadedEventEnd":1449,"domComplete":2391,"loadEventStart":2391,"loadEventEnd":2392,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1386.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1387.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1387.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1390.1000001430511},{"name":"activityTabFullyLoaded","time":1456.6000001430511}],"measures":[],"correlationId":"d637c26f4cf510","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}