MDEV-24854Change innodb_flush_method=O_DIRECT by default
Closed
MDEV-11916Page compression - use smaller writes, avoid trimming/zeroing rest of the page if possible
Open
MDEV-12226Avoid writes of freed (garbage) pages to InnoDB data files
Closed
MDEV-13670[Note] InnoDB: page_cleaner: 1000ms intended loop took XXXXms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
Closed
MDEV-14425Change the InnoDB redo log format to reduce write amplification
Closed
MDEV-14550Error log flood : "InnoDB: page_cleaner: 1000ms intended loop took N ms. The settings might not be optimal."
It appears that XtraDB used to disable the single-page flushing when using a larger buffer pool, via the Boolean-disguised-as-enum parameter innodb_empty_free_list_algorithm=BACKOFF. The logic would sometimes fail, as reported in MDEV-16339.
I think that we should consider removing the single-page flushing nevertheless. Perhaps there could be active signaling between the page cleaner and the buf_LRU_get_free_block(), instead of passive sleeping?
Marko Mäkelä
added a comment - It appears that XtraDB used to disable the single-page flushing when using a larger buffer pool, via the Boolean-disguised-as-enum parameter innodb_empty_free_list_algorithm=BACKOFF . The logic would sometimes fail, as reported in MDEV-16339 .
I think that we should consider removing the single-page flushing nevertheless. Perhaps there could be active signaling between the page cleaner and the buf_LRU_get_free_block() , instead of passive sleeping?
Now that most of the work has been completed in MDEV-23399 and MDEV-23855, I think that the main work to be done will be in MDEV-12227, MDEV-23756 and possibly other tickets that have been linked as related.
Because this is mostly an umbrella task, having an estimate is not too meaningful.
Marko Mäkelä
added a comment - Now that most of the work has been completed in MDEV-23399 and MDEV-23855 , I think that the main work to be done will be in MDEV-12227 , MDEV-23756 and possibly other tickets that have been linked as related.
Because this is mostly an umbrella task, having an estimate is not too meaningful.
I think that most of this has already been done. One remaining tweak is MDEV-26827. We failed to observe any improvement with it; in fact, a small regression was observed. So, it will need some additional work.
Marko Mäkelä
added a comment - I think that most of this has already been done. One remaining tweak is MDEV-26827 . We failed to observe any improvement with it; in fact, a small regression was observed. So, it will need some additional work.
After MDEV-26055 and MDEV-26827 have been completed, there is not much that can be improved in this area. I can only think of MDEV-11378, submitting scatter-gather write requests instead of multiple single-page write requests.
Marko Mäkelä
added a comment - After MDEV-26055 and MDEV-26827 have been completed, there is not much that can be improved in this area. I can only think of MDEV-11378 , submitting scatter-gather write requests instead of multiple single-page write requests.
People
Marko Mäkelä
Marko Mäkelä
Votes:
1Vote for this issue
Watchers:
12Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":814.0999994277954,"ttfb":230.79999923706055,"pageVisibility":"visible","entityId":68214,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"79c96216-312a-4129-b26f-514533c1e486","navigationType":0,"readyForUser":901.5,"redirectCount":0,"resourceLoadedEnd":961,"resourceLoadedStart":236.5,"resourceTiming":[{"duration":92.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":236.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":328.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":92.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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","startTime":236.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":328.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":100.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":236.89999961853027,"connectEnd":236.89999961853027,"connectStart":236.89999961853027,"domainLookupEnd":236.89999961853027,"domainLookupStart":236.89999961853027,"fetchStart":236.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":236.89999961853027,"responseEnd":337.5999994277954,"responseStart":337.5999994277954,"secureConnectionStart":236.89999961853027},{"duration":132.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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","startTime":237.0999994277954,"connectEnd":237.0999994277954,"connectStart":237.0999994277954,"domainLookupEnd":237.0999994277954,"domainLookupStart":237.0999994277954,"fetchStart":237.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":237.0999994277954,"responseEnd":369.8999996185303,"responseStart":369.8999996185303,"secureConnectionStart":237.0999994277954},{"duration":136.10000038146973,"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":237.29999923706055,"connectEnd":237.29999923706055,"connectStart":237.29999923706055,"domainLookupEnd":237.29999923706055,"domainLookupStart":237.29999923706055,"fetchStart":237.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":237.29999923706055,"responseEnd":373.3999996185303,"responseStart":373.3999996185303,"secureConnectionStart":237.29999923706055},{"duration":136.39999961853027,"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":237.5,"connectEnd":237.5,"connectStart":237.5,"domainLookupEnd":237.5,"domainLookupStart":237.5,"fetchStart":237.5,"redirectEnd":0,"redirectStart":0,"requestStart":237.5,"responseEnd":373.8999996185303,"responseStart":373.8999996185303,"secureConnectionStart":237.5},{"duration":136.80000019073486,"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":237.5999994277954,"connectEnd":237.5999994277954,"connectStart":237.5999994277954,"domainLookupEnd":237.5999994277954,"domainLookupStart":237.5999994277954,"fetchStart":237.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":237.5999994277954,"responseEnd":374.3999996185303,"responseStart":374.3999996185303,"secureConnectionStart":237.5999994277954},{"duration":238.70000076293945,"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":237.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":476.5,"responseStart":0,"secureConnectionStart":0},{"duration":136.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":238,"connectEnd":238,"connectStart":238,"domainLookupEnd":238,"domainLookupStart":238,"fetchStart":238,"redirectEnd":0,"redirectStart":0,"requestStart":238,"responseEnd":374.8999996185303,"responseStart":374.8999996185303,"secureConnectionStart":238},{"duration":238.60000038146973,"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":238.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":238.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":476.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":137.10000038146973,"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":238.29999923706055,"connectEnd":238.29999923706055,"connectStart":238.29999923706055,"domainLookupEnd":238.29999923706055,"domainLookupStart":238.29999923706055,"fetchStart":238.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":238.29999923706055,"responseEnd":375.3999996185303,"responseStart":375.3999996185303,"secureConnectionStart":238.29999923706055},{"duration":268.19999980926514,"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":241.5,"connectEnd":241.5,"connectStart":241.5,"domainLookupEnd":241.5,"domainLookupStart":241.5,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":241.5,"responseEnd":509.69999980926514,"responseStart":509.69999980926514,"secureConnectionStart":241.5},{"duration":282.29999923706055,"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":241.5,"connectEnd":241.5,"connectStart":241.5,"domainLookupEnd":241.5,"domainLookupStart":241.5,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":241.5,"responseEnd":523.7999992370605,"responseStart":523.7999992370605,"secureConnectionStart":241.5},{"duration":20.300000190734863,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":502.79999923706055,"connectEnd":502.79999923706055,"connectStart":502.79999923706055,"domainLookupEnd":502.79999923706055,"domainLookupStart":502.79999923706055,"fetchStart":502.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":502.79999923706055,"responseEnd":523.0999994277954,"responseStart":523.0999994277954,"secureConnectionStart":502.79999923706055},{"duration":210.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":526.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":526.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":737.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":427.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":527.5,"connectEnd":527.5,"connectStart":527.5,"domainLookupEnd":527.5,"domainLookupStart":527.5,"fetchStart":527.5,"redirectEnd":0,"redirectStart":0,"requestStart":527.5,"responseEnd":955.0999994277954,"responseStart":955,"secureConnectionStart":527.5},{"duration":433.20000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":527.7999992370605,"connectEnd":527.7999992370605,"connectStart":527.7999992370605,"domainLookupEnd":527.7999992370605,"domainLookupStart":527.7999992370605,"fetchStart":527.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":527.7999992370605,"responseEnd":961,"responseStart":961,"secureConnectionStart":527.7999992370605},{"duration":169.39999961853027,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":808.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":808.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":977.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":146.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":815.6999998092651,"connectEnd":815.6999998092651,"connectStart":815.6999998092651,"domainLookupEnd":815.6999998092651,"domainLookupStart":815.6999998092651,"fetchStart":815.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":815.6999998092651,"responseEnd":961.8999996185303,"responseStart":961.8999996185303,"secureConnectionStart":815.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":10,"responseStart":231,"responseEnd":234,"domLoading":234,"domInteractive":983,"domContentLoadedEventStart":983,"domContentLoadedEventEnd":1034,"domComplete":2803,"loadEventStart":2803,"loadEventEnd":2804,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":948.6999998092651},{"name":"bigPipe.sidebar-id.end","time":949.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":949.5999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":951.0999994277954},{"name":"activityTabFullyLoaded","time":1058}],"measures":[],"correlationId":"524f48348c729b","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":141,"dbReadsTimeInMs":33,"dbConnsTimeInMs":45,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
It appears that XtraDB used to disable the single-page flushing when using a larger buffer pool, via the Boolean-disguised-as-enum parameter innodb_empty_free_list_algorithm=BACKOFF. The logic would sometimes fail, as reported in
MDEV-16339.I think that we should consider removing the single-page flushing nevertheless. Perhaps there could be active signaling between the page cleaner and the buf_LRU_get_free_block(), instead of passive sleeping?