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?
- relates to
-
MDEV-27767
poor scaling with InnoDB and utf8mb3 because of charset stats
-
-
Closed
- mentioned in
-
Page Loading...
{"report":{"fcp":1176,"ttfb":482.2999999523163,"pageVisibility":"visible","entityId":57538,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a7d5a938-5c95-48da-9648-8a9aa1d00041","navigationType":0,"readyForUser":1315.5,"redirectCount":0,"resourceLoadedEnd":1733.5,"resourceLoadedStart":488.10000002384186,"resourceTiming":[{"duration":71.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":488.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":488.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":559.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":72.20000004768372,"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":488.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":488.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":560.5,"responseStart":0,"secureConnectionStart":0},{"duration":126.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":488.5,"connectEnd":488.5,"connectStart":488.5,"domainLookupEnd":488.5,"domainLookupStart":488.5,"fetchStart":488.5,"redirectEnd":0,"redirectStart":0,"requestStart":488.5,"responseEnd":614.7999999523163,"responseStart":614.7999999523163,"secureConnectionStart":488.5},{"duration":239.30000007152557,"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":488.6999999284744,"connectEnd":488.6999999284744,"connectStart":488.6999999284744,"domainLookupEnd":488.6999999284744,"domainLookupStart":488.6999999284744,"fetchStart":488.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":488.6999999284744,"responseEnd":728,"responseStart":728,"secureConnectionStart":488.6999999284744},{"duration":243,"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":488.7999999523163,"connectEnd":488.7999999523163,"connectStart":488.7999999523163,"domainLookupEnd":488.7999999523163,"domainLookupStart":488.7999999523163,"fetchStart":488.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":488.7999999523163,"responseEnd":731.7999999523163,"responseStart":731.7999999523163,"secureConnectionStart":488.7999999523163},{"duration":242.90000009536743,"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":489.6999999284744,"connectEnd":489.6999999284744,"connectStart":489.6999999284744,"domainLookupEnd":489.6999999284744,"domainLookupStart":489.6999999284744,"fetchStart":489.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":489.6999999284744,"responseEnd":732.6000000238419,"responseStart":732.6000000238419,"secureConnectionStart":489.6999999284744},{"duration":243,"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":490,"connectEnd":490,"connectStart":490,"domainLookupEnd":490,"domainLookupStart":490,"fetchStart":490,"redirectEnd":0,"redirectStart":0,"requestStart":490,"responseEnd":733,"responseStart":733,"secureConnectionStart":490},{"duration":272.60000002384186,"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":490.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":490.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":762.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":243.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":490.2999999523163,"connectEnd":490.2999999523163,"connectStart":490.2999999523163,"domainLookupEnd":490.2999999523163,"domainLookupStart":490.2999999523163,"fetchStart":490.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":490.2999999523163,"responseEnd":733.3999999761581,"responseStart":733.3999999761581,"secureConnectionStart":490.2999999523163},{"duration":272.2999999523163,"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":490.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":490.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":762.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":243.20000004768372,"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":490.6999999284744,"connectEnd":490.6999999284744,"connectStart":490.6999999284744,"domainLookupEnd":490.6999999284744,"domainLookupStart":490.6999999284744,"fetchStart":490.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":490.6999999284744,"responseEnd":733.8999999761581,"responseStart":733.8999999761581,"secureConnectionStart":490.6999999284744},{"duration":1080.2000000476837,"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":500.1999999284744,"connectEnd":500.1999999284744,"connectStart":500.1999999284744,"domainLookupEnd":500.1999999284744,"domainLookupStart":500.1999999284744,"fetchStart":500.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":500.1999999284744,"responseEnd":1580.3999999761581,"responseStart":1580.3999999761581,"secureConnectionStart":500.1999999284744},{"duration":1211.8999999761581,"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":521.6000000238419,"connectEnd":521.6000000238419,"connectStart":521.6000000238419,"domainLookupEnd":521.6000000238419,"domainLookupStart":521.6000000238419,"fetchStart":521.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":521.6000000238419,"responseEnd":1733.5,"responseStart":1733.5,"secureConnectionStart":521.6000000238419},{"duration":794.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":786.6999999284744,"connectEnd":786.6999999284744,"connectStart":786.6999999284744,"domainLookupEnd":786.6999999284744,"domainLookupStart":786.6999999284744,"fetchStart":786.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":786.6999999284744,"responseEnd":1580.8999999761581,"responseStart":1580.8999999761581,"secureConnectionStart":786.6999999284744},{"duration":627.8999999761581,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1164,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1164,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1791.8999999761581,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":132,"responseStart":483,"responseEnd":521,"domLoading":486,"domInteractive":1796,"domContentLoadedEventStart":1796,"domContentLoadedEventEnd":1872,"domComplete":2039,"loadEventStart":2039,"loadEventEnd":2040,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1736.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1737.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1737.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1742.8999999761581},{"name":"activityTabFullyLoaded","time":1897}],"measures":[],"correlationId":"cb23f79f8af467","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":125,"dbReadsTimeInMs":21,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
svoj Can you have a look if these optimizations are correct for (most) platforms?