Type:
Task
Priority:
Major
Resolution:
Fixed
We have innodb_use_native_aio=ON by default since the introduction of that parameter in MariaDB 5.5. However, to really benefit from the setting, the files should be opened in O_DIRECT mode, to bypass the file system cache. In this way, the reads and writes can be submitted with DMA, using the InnoDB buffer pool directly, and no processor cycles need to be used for copying data.
The setting O_DIRECT should be equivalent to the old default innodb_flush_method=fsync in other aspects. Only the file system cache will be bypassed.
Note: innodb_flush_method=O_DIRECT in combination with a tiny innodb_buffer_pool_size may cause a significant performance regression, because we will no longer be able to take advantage of the file system cache of the operating system kernel. The InnoDB buffer pool will completely replace it. Affected users should configure innodb_flush_method=fsync .
This change will not affect Microsoft Windows. The default there is innodb_flush_method=unbuffered , which is roughly equivalent to O_DIRECT .
Marko Mäkelä
made changes -
2021-02-20 10:05
issue.field.resolutiondate
2021-02-20 10:05:40.0
2021-02-20 10:05:40.395
Marko Mäkelä
made changes -
2021-02-20 10:05
Fix Version/s
10.6.0
[ 24431
]
Fix Version/s
10.6
[ 24028
]
Resolution
Fixed
[ 1
]
Status
Open
[ 1
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:24
Workflow
MariaDB v3
[ 119126
]
MariaDB v4
[ 134390
]
{"report":{"fcp":1261.7999999523163,"ttfb":428.2999999523163,"pageVisibility":"visible","entityId":96914,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e524fe4d-432f-4536-a95a-dd53fc98e096","navigationType":0,"readyForUser":1349.5,"redirectCount":0,"resourceLoadedEnd":948.4000000953674,"resourceLoadedStart":440.7999999523163,"resourceTiming":[{"duration":54.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":440.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":440.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":495.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":55.10000014305115,"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":441.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":441.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":496.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":364.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":441.40000009536743,"connectEnd":441.40000009536743,"connectStart":441.40000009536743,"domainLookupEnd":441.40000009536743,"domainLookupStart":441.40000009536743,"fetchStart":441.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":500.7000000476837,"responseEnd":805.5999999046326,"responseStart":533.5999999046326,"secureConnectionStart":441.40000009536743},{"duration":489.90000009536743,"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":441.5,"connectEnd":441.5,"connectStart":441.5,"domainLookupEnd":441.5,"domainLookupStart":441.5,"fetchStart":441.5,"redirectEnd":0,"redirectStart":0,"requestStart":501.2000000476837,"responseEnd":931.4000000953674,"responseStart":544,"secureConnectionStart":441.5},{"duration":98.29999995231628,"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":441.7000000476837,"connectEnd":441.7000000476837,"connectStart":441.7000000476837,"domainLookupEnd":441.7000000476837,"domainLookupStart":441.7000000476837,"fetchStart":441.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":501.5,"responseEnd":540,"responseStart":534.5,"secureConnectionStart":441.7000000476837},{"duration":121.79999995231628,"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":441.90000009536743,"connectEnd":441.90000009536743,"connectStart":441.90000009536743,"domainLookupEnd":441.90000009536743,"domainLookupStart":441.90000009536743,"fetchStart":441.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":515.2000000476837,"responseEnd":563.7000000476837,"responseStart":556.7999999523163,"secureConnectionStart":441.90000009536743},{"duration":125.5,"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":442,"connectEnd":442,"connectStart":442,"domainLookupEnd":442,"domainLookupStart":442,"fetchStart":442,"redirectEnd":0,"redirectStart":0,"requestStart":517,"responseEnd":567.5,"responseStart":564.7999999523163,"secureConnectionStart":442},{"duration":69.09999990463257,"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":442.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":442.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":129.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":442.40000009536743,"connectEnd":442.40000009536743,"connectStart":442.40000009536743,"domainLookupEnd":442.40000009536743,"domainLookupStart":442.40000009536743,"fetchStart":442.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":517.9000000953674,"responseEnd":572.0999999046326,"responseStart":569,"secureConnectionStart":442.40000009536743},{"duration":69,"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":443.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":443.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":512.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":133.60000014305115,"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":443.2999999523163,"connectEnd":443.2999999523163,"connectStart":443.2999999523163,"domainLookupEnd":443.2999999523163,"domainLookupStart":443.2999999523163,"fetchStart":443.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":518.2000000476837,"responseEnd":576.9000000953674,"responseStart":569.5999999046326,"secureConnectionStart":443.2999999523163},{"duration":496.60000014305115,"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":451.2999999523163,"connectEnd":451.2999999523163,"connectStart":451.2999999523163,"domainLookupEnd":451.2999999523163,"domainLookupStart":451.2999999523163,"fetchStart":451.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":613.7000000476837,"responseEnd":947.9000000953674,"responseStart":941.2999999523163,"secureConnectionStart":451.2999999523163},{"duration":492.60000014305115,"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":455.7999999523163,"connectEnd":455.7999999523163,"connectStart":455.7999999523163,"domainLookupEnd":455.7999999523163,"domainLookupStart":455.7999999523163,"fetchStart":455.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":739.0999999046326,"responseEnd":948.4000000953674,"responseStart":944,"secureConnectionStart":455.7999999523163},{"duration":267.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":959.9000000953674,"connectEnd":959.9000000953674,"connectStart":959.9000000953674,"domainLookupEnd":959.9000000953674,"domainLookupStart":959.9000000953674,"fetchStart":959.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1191.7999999523163,"responseEnd":1227.5999999046326,"responseStart":1226.9000000953674,"secureConnectionStart":959.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":188,"responseStart":428,"responseEnd":455,"domLoading":433,"domInteractive":1474,"domContentLoadedEventStart":1474,"domContentLoadedEventEnd":1537,"domComplete":2811,"loadEventStart":2811,"loadEventEnd":2812,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1434.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1435.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1435.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1439.5},{"name":"activityTabFullyLoaded","time":1557.2999999523163}],"measures":[],"correlationId":"233a176bad8982","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":174,"dbReadsTimeInMs":43,"dbConnsTimeInMs":62,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}