Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.5.7 , 10.5.8 , 10.5.9 , 10.6.0 , 10.5.10 , 10.6.1 , 10.6.2
In MDEV-23855 , I introduced a log_flush_task with the reasoning that invoking a single large log write for every page write batch could be faster than invoking log_write_up_to() for every individual page that is to be written.
wlad pointed out that the wait for the task could actually reduce performance. Quick benchmarks suggest that removing the log_flush_task could slightly improve performance in the typical case. (In a pathological worst case, I suspect that it could reduce performance, but I suppose that such cases are unlikely.)
When the doublewrite buffer is being used, we can write potentially "future" pages to it. Only before writing pages to the final location we must not adhere to the write-ahead-logging protocol. Thus, in many cases, a log write could meanwhile have happened for other reasons (such as making a transaction commit durable) before we actually get to the final write of the page.
{"report":{"fcp":883.1000001430511,"ttfb":153.5,"pageVisibility":"visible","entityId":100588,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6baa3464-9484-4c43-83cf-1a986358efb7","navigationType":0,"readyForUser":1035.9000000953674,"redirectCount":0,"resourceLoadedEnd":1099.2000000476837,"resourceLoadedStart":162.20000004768372,"resourceTiming":[{"duration":271.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":162.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":434.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":271.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":162.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":434.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":280.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":162.70000004768372,"connectEnd":162.70000004768372,"connectStart":162.70000004768372,"domainLookupEnd":162.70000004768372,"domainLookupStart":162.70000004768372,"fetchStart":162.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":162.70000004768372,"responseEnd":443.60000014305115,"responseStart":443.60000014305115,"secureConnectionStart":162.70000004768372},{"duration":370.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":162.79999995231628,"connectEnd":162.79999995231628,"connectStart":162.79999995231628,"domainLookupEnd":162.79999995231628,"domainLookupStart":162.79999995231628,"fetchStart":162.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.79999995231628,"responseEnd":533.4000000953674,"responseStart":533.4000000953674,"secureConnectionStart":162.79999995231628},{"duration":374.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":162.90000009536743,"connectEnd":162.90000009536743,"connectStart":162.90000009536743,"domainLookupEnd":162.90000009536743,"domainLookupStart":162.90000009536743,"fetchStart":162.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":162.90000009536743,"responseEnd":537,"responseStart":537,"secureConnectionStart":162.90000009536743},{"duration":374.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":537.6000001430511,"responseStart":537.6000001430511,"secureConnectionStart":163},{"duration":383,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":163.10000014305115,"connectEnd":163.10000014305115,"connectStart":163.10000014305115,"domainLookupEnd":163.10000014305115,"domainLookupStart":163.10000014305115,"fetchStart":163.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":163.10000014305115,"responseEnd":546.1000001430511,"responseStart":546.1000001430511,"secureConnectionStart":163.10000014305115},{"duration":394.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":163.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":393.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":163.29999995231628,"connectEnd":163.29999995231628,"connectStart":163.29999995231628,"domainLookupEnd":163.29999995231628,"domainLookupStart":163.29999995231628,"fetchStart":163.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":163.29999995231628,"responseEnd":556.9000000953674,"responseStart":556.9000000953674,"secureConnectionStart":163.29999995231628},{"duration":394.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":163.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":394.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":163.60000014305115,"connectEnd":163.60000014305115,"connectStart":163.60000014305115,"domainLookupEnd":163.60000014305115,"domainLookupStart":163.60000014305115,"fetchStart":163.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":163.60000014305115,"responseEnd":557.7999999523163,"responseStart":557.7999999523163,"secureConnectionStart":163.60000014305115},{"duration":576.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":164.29999995231628,"connectEnd":164.29999995231628,"connectStart":164.29999995231628,"domainLookupEnd":164.29999995231628,"domainLookupStart":164.29999995231628,"fetchStart":164.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":164.29999995231628,"responseEnd":740.7999999523163,"responseStart":740.7999999523163,"secureConnectionStart":164.29999995231628},{"duration":934.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":164.40000009536743,"connectEnd":164.40000009536743,"connectStart":164.40000009536743,"domainLookupEnd":164.40000009536743,"domainLookupStart":164.40000009536743,"fetchStart":164.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":164.40000009536743,"responseEnd":1099.2000000476837,"responseStart":1099.2000000476837,"secureConnectionStart":164.40000009536743},{"duration":131.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":608.2000000476837,"connectEnd":608.2000000476837,"connectStart":608.2000000476837,"domainLookupEnd":608.2000000476837,"domainLookupStart":608.2000000476837,"fetchStart":608.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":608.2000000476837,"responseEnd":739.2999999523163,"responseStart":739.2999999523163,"secureConnectionStart":608.2000000476837}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":26,"responseStart":154,"responseEnd":158,"domLoading":158,"domInteractive":1154,"domContentLoadedEventStart":1154,"domContentLoadedEventEnd":1197,"domComplete":2220,"loadEventStart":2220,"loadEventEnd":2222,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1139.5},{"name":"bigPipe.sidebar-id.end","time":1140.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1140.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":1143.2000000476837},{"name":"activityTabFullyLoaded","time":1211.5}],"measures":[],"correlationId":"d103d382ba0a11","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":78,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}