Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.1(EOL) , (13) 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL) , 11.2(EOL)
InnoDB linear read-ahead (which is enabled when innodb_read_ahead_threshold is nonzero) is being invoked in the low-level function buf_page_get_low() . This does not seem useful for page accesses that are likely to be one-time-only, with no anticipation of accessing nearby pages in the near future.
We should not attempt to invoke read-ahead on index pages that are not at the leaf level.
We should not invoke linear read-ahead in functions that would essentially allocate or free pages, because allocated pages should be reinitialized by buf_page_create() , eliminating the need to read anything from the file system. Likewise, freeing pages should not involve accessing any sibling pages, except for freeing singly-linked lists of BLOB pages.
We should not invoke read-ahead in btr_cur_t::pessimistic_search_leaf() or in a pessimistic operation of btr_cur_t::open_leaf() , because pessimistic operations should be preceded by optimistic operations, which should already have invoked read-ahead.
By doing all this, we will hopefully improve performance in I/O bound workloads.
blocks
MDEV-32067
InnoDB linear read ahead had better be logical
Confirmed
{"report":{"fcp":638.1000001430511,"ttfb":144,"pageVisibility":"visible","entityId":124767,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f50998bb-3c8e-4116-a6d3-d5175ec41987","navigationType":0,"readyForUser":701.9000000953674,"redirectCount":0,"resourceLoadedEnd":752,"resourceLoadedStart":149.20000004768372,"resourceTiming":[{"duration":6.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":149.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":155.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":6.3999998569488525,"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":149.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":155.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":64.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":149.5,"connectEnd":149.5,"connectStart":149.5,"domainLookupEnd":149.5,"domainLookupStart":149.5,"fetchStart":149.5,"redirectEnd":0,"redirectStart":0,"requestStart":149.5,"responseEnd":214.29999995231628,"responseStart":214.29999995231628,"secureConnectionStart":149.5},{"duration":102.90000009536743,"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":149.70000004768372,"connectEnd":149.70000004768372,"connectStart":149.70000004768372,"domainLookupEnd":149.70000004768372,"domainLookupStart":149.70000004768372,"fetchStart":149.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":149.70000004768372,"responseEnd":252.60000014305115,"responseStart":252.5,"secureConnectionStart":149.70000004768372},{"duration":106.10000014305115,"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":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":255.90000009536743,"responseStart":255.90000009536743,"secureConnectionStart":149.79999995231628},{"duration":106.5,"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":149.90000009536743,"connectEnd":149.90000009536743,"connectStart":149.90000009536743,"domainLookupEnd":149.90000009536743,"domainLookupStart":149.90000009536743,"fetchStart":149.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":149.90000009536743,"responseEnd":256.40000009536743,"responseStart":256.40000009536743,"secureConnectionStart":149.90000009536743},{"duration":109.10000014305115,"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":150,"connectEnd":150,"connectStart":150,"domainLookupEnd":150,"domainLookupStart":150,"fetchStart":150,"redirectEnd":0,"redirectStart":0,"requestStart":150,"responseEnd":259.10000014305115,"responseStart":259.10000014305115,"secureConnectionStart":150},{"duration":109.5,"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":150.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":259.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":109.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":150.20000004768372,"connectEnd":150.20000004768372,"connectStart":150.20000004768372,"domainLookupEnd":150.20000004768372,"domainLookupStart":150.20000004768372,"fetchStart":150.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":150.20000004768372,"responseEnd":259.60000014305115,"responseStart":259.60000014305115,"secureConnectionStart":150.20000004768372},{"duration":109.80000019073486,"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":150.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":260.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":109.79999995231628,"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":150.40000009536743,"connectEnd":150.40000009536743,"connectStart":150.40000009536743,"domainLookupEnd":150.40000009536743,"domainLookupStart":150.40000009536743,"fetchStart":150.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":150.40000009536743,"responseEnd":260.2000000476837,"responseStart":260.10000014305115,"secureConnectionStart":150.40000009536743},{"duration":370.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":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":151,"responseEnd":521.5,"responseStart":521.5,"secureConnectionStart":151},{"duration":601,"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":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":151,"responseEnd":752,"responseStart":752,"secureConnectionStart":151},{"duration":308.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":442.60000014305115,"connectEnd":442.60000014305115,"connectStart":442.60000014305115,"domainLookupEnd":442.60000014305115,"domainLookupStart":442.60000014305115,"fetchStart":442.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":442.60000014305115,"responseEnd":751,"responseStart":751,"secureConnectionStart":442.60000014305115},{"duration":136.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":616.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":616.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":752.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":20,"responseStart":144,"responseEnd":146,"domLoading":147,"domInteractive":810,"domContentLoadedEventStart":810,"domContentLoadedEventEnd":848,"domComplete":1446,"loadEventStart":1446,"loadEventEnd":1448,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":791.5},{"name":"bigPipe.sidebar-id.end","time":792.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":792.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":794.7000000476837},{"name":"activityTabFullyLoaded","time":860}],"measures":[],"correlationId":"b11c30e0f0f9b3","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":77,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}