Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
10.5 , 10.6 , 10.11 , 11.0(EOL) , 11.1(EOL) , 11.2(EOL) , 11.3(EOL)
Environment:
Ubuntu 18.04 on AMD64
Ubuntu 20.04 on AMD64
After implementing MDEV-32757 , we are seeing a performance anomaly with innodb_undo_log_truncate=ON . The server is not actually hung or deadlocked (it will eventually recover), but buf_pool.mutex is being occupied for an extremely long time (several minutes).
trx_purge_truncate_history() writes the message InnoDB: Truncating and is about to truncate an undo log tablespace.
trx_purge_truncate_history() is busy-looping in a scan of buf_pool.flush_list because one of the pages belonging to the undo tablespace is write-fixed.
During the time trx_purge_truncate_history() releases and re-acquires buf_pool.flush_list_mutex , buf_flush_page_cleaner (which is holding buf_pool.mutex in buf_do_flush_list_batch() ) cannot grab it, in this Ubuntu 18.04 version of GNU libc and Linux kernel (4.15.0-112-generic). This could be similar to MDEV-31343 and MDEV-30180 , which could only be reproduced in the same particular environment.
Most threads are blocked because the buf_flush_page_cleaner thread is holding buf_pool.mutex .
There is some indication that buf_flush_list_batch() may be making some progress (writing out some pages), but it would be extremely slow.
Marko Mäkelä
made changes -
2023-12-13 08:08
Status
Open
[ 1
]
In Progress
[ 3
]
Marko Mäkelä
made changes -
2023-12-13 09:04
Status
In Progress
[ 3
]
In Testing
[ 10301
]
Marko Mäkelä
made changes -
2023-12-13 09:04
Assignee
Marko Mäkelä
[ marko
]
Axel Schwenke
[ axel
]
Axel Schwenke
made changes -
2023-12-15 09:06
Status
In Testing
[ 10301
]
Stalled
[ 10000
]
Axel Schwenke
made changes -
2023-12-15 09:07
Assignee
Axel Schwenke
[ axel
]
Marko Mäkelä
[ marko
]
Marko Mäkelä
made changes -
2023-12-15 09:49
Environment
Ubuntu 18.04 on AMD64
Ubuntu 18.04 on AMD64
Ubuntu 20.04 on AMD64
Marko Mäkelä
made changes -
2023-12-15 09:49
Status
Stalled
[ 10000
]
In Progress
[ 3
]
Marko Mäkelä
made changes -
2023-12-15 11:02
Status
In Progress
[ 3
]
In Testing
[ 10301
]
Marko Mäkelä
made changes -
2023-12-15 11:05
Assignee
Marko Mäkelä
[ marko
]
Axel Schwenke
[ axel
]
Axel Schwenke
made changes -
2023-12-15 16:31
Status
In Testing
[ 10301
]
Stalled
[ 10000
]
Axel Schwenke
made changes -
2023-12-15 16:31
Assignee
Axel Schwenke
[ axel
]
Marko Mäkelä
[ marko
]
Marko Mäkelä
made changes -
2023-12-19 15:47
issue.field.resolutiondate
2023-12-19 15:47:41.0
2023-12-19 15:47:41.396
Marko Mäkelä
made changes -
2023-12-19 15:47
Fix Version/s
10.5.24
[ 29517
]
Fix Version/s
10.6.17
[ 29518
]
Fix Version/s
10.11.7
[ 29519
]
Fix Version/s
11.0.5
[ 29520
]
Fix Version/s
11.1.4
[ 29024
]
Fix Version/s
11.2.3
[ 29521
]
Fix Version/s
11.3.2
[ 29522
]
Fix Version/s
10.5
[ 23123
]
Fix Version/s
10.6
[ 24028
]
Fix Version/s
10.11
[ 27614
]
Fix Version/s
11.0
[ 28320
]
Fix Version/s
11.1
[ 28549
]
Fix Version/s
11.3
[ 28565
]
Fix Version/s
11.2
[ 28603
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
{"report":{"fcp":1076.9000005722046,"ttfb":393.5,"pageVisibility":"visible","entityId":126903,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"837462c8-df40-4180-a5c3-751079269c93","navigationType":0,"readyForUser":1169.3000001907349,"redirectCount":0,"resourceLoadedEnd":802.4000005722046,"resourceLoadedStart":399.5,"resourceTiming":[{"duration":146.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":399.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":399.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":546.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":146.80000019073486,"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":399.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":399.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":546.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":162.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":400,"connectEnd":400,"connectStart":400,"domainLookupEnd":400,"domainLookupStart":400,"fetchStart":400,"redirectEnd":0,"redirectStart":0,"requestStart":400,"responseEnd":562.3000001907349,"responseStart":562.3000001907349,"secureConnectionStart":400},{"duration":242.9000005722046,"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":400.19999980926514,"connectEnd":400.19999980926514,"connectStart":400.19999980926514,"domainLookupEnd":400.19999980926514,"domainLookupStart":400.19999980926514,"fetchStart":400.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":400.19999980926514,"responseEnd":643.1000003814697,"responseStart":643.1000003814697,"secureConnectionStart":400.19999980926514},{"duration":246.5,"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":400.4000005722046,"connectEnd":400.4000005722046,"connectStart":400.4000005722046,"domainLookupEnd":400.4000005722046,"domainLookupStart":400.4000005722046,"fetchStart":400.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":400.4000005722046,"responseEnd":646.9000005722046,"responseStart":646.9000005722046,"secureConnectionStart":400.4000005722046},{"duration":246.69999980926514,"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":400.6000003814697,"connectEnd":400.6000003814697,"connectStart":400.6000003814697,"domainLookupEnd":400.6000003814697,"domainLookupStart":400.6000003814697,"fetchStart":400.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":400.6000003814697,"responseEnd":647.3000001907349,"responseStart":647.3000001907349,"secureConnectionStart":400.6000003814697},{"duration":246.89999961853027,"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":400.80000019073486,"connectEnd":400.80000019073486,"connectStart":400.80000019073486,"domainLookupEnd":400.80000019073486,"domainLookupStart":400.80000019073486,"fetchStart":400.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":400.80000019073486,"responseEnd":647.6999998092651,"responseStart":647.6999998092651,"secureConnectionStart":400.80000019073486},{"duration":307.79999923706055,"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":400.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":400.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":708.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":247,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":401.1000003814697,"connectEnd":401.1000003814697,"connectStart":401.1000003814697,"domainLookupEnd":401.1000003814697,"domainLookupStart":401.1000003814697,"fetchStart":401.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":401.1000003814697,"responseEnd":648.1000003814697,"responseStart":648.1000003814697,"secureConnectionStart":401.1000003814697},{"duration":307.5,"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":401.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":401.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":708.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":247.19999980926514,"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":401.5,"connectEnd":401.5,"connectStart":401.5,"domainLookupEnd":401.5,"domainLookupStart":401.5,"fetchStart":401.5,"redirectEnd":0,"redirectStart":0,"requestStart":401.5,"responseEnd":648.6999998092651,"responseStart":648.6999998092651,"secureConnectionStart":401.5},{"duration":346.20000076293945,"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":402.69999980926514,"connectEnd":402.69999980926514,"connectStart":402.69999980926514,"domainLookupEnd":402.69999980926514,"domainLookupStart":402.69999980926514,"fetchStart":402.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":402.69999980926514,"responseEnd":748.9000005722046,"responseStart":748.9000005722046,"secureConnectionStart":402.69999980926514},{"duration":394.30000019073486,"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":408.1000003814697,"connectEnd":408.1000003814697,"connectStart":408.1000003814697,"domainLookupEnd":408.1000003814697,"domainLookupStart":408.1000003814697,"fetchStart":408.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":408.1000003814697,"responseEnd":802.4000005722046,"responseStart":802.4000005722046,"secureConnectionStart":408.1000003814697},{"duration":59.39999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":737.9000005722046,"connectEnd":737.9000005722046,"connectStart":737.9000005722046,"domainLookupEnd":737.9000005722046,"domainLookupStart":737.9000005722046,"fetchStart":737.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":737.9000005722046,"responseEnd":797.3000001907349,"responseStart":797.3000001907349,"secureConnectionStart":737.9000005722046},{"duration":330.1000003814697,"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&whisper-enabled=true","startTime":990.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":990.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1320.9000005722046,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":124,"responseStart":393,"responseEnd":400,"domLoading":397,"domInteractive":1254,"domContentLoadedEventStart":1254,"domContentLoadedEventEnd":1320,"domComplete":2012,"loadEventStart":2012,"loadEventEnd":2012,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1216.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1216.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1217.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1223.5},{"name":"activityTabFullyLoaded","time":1344.3000001907349}],"measures":[],"correlationId":"2958e938224f38","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":196,"dbReadsTimeInMs":48,"dbConnsTimeInMs":60,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}