Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.6
Environment:
GNU/Linux on ARMv8 (Aarch64)
reduce lock_sys.wait_mutex contention by using spinloop construct
wait_mutex plays an important role when the workload involves conflicting transactions.
On a heavily contented system with increasing scalability
quite possible that the majority of the transactions may have to wait
before acquiring resources.
This causes a lot of contention of wait_mutex but most of this
the contention is short-lived that tend to suggest the use of spin loop
to avoid giving up compute core that in turn will involve os-scheduler with additional latency.
Idea has shown promising results with performance improving up to 70-100% for write workload.
{"report":{"fcp":1834.5,"ttfb":789.9000000953674,"pageVisibility":"visible","entityId":103689,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fd75718c-7334-4051-8ac5-02607ee995bc","navigationType":0,"readyForUser":1927.8000001907349,"redirectCount":0,"resourceLoadedEnd":2469.300000190735,"resourceLoadedStart":795.6000003814697,"resourceTiming":[{"duration":354,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":795.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":795.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1149.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":354.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":795.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":795.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1150.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":424.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":796.2000002861023,"connectEnd":796.2000002861023,"connectStart":796.2000002861023,"domainLookupEnd":796.2000002861023,"domainLookupStart":796.2000002861023,"fetchStart":796.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":796.2000002861023,"responseEnd":1220.9000000953674,"responseStart":1220.9000000953674,"secureConnectionStart":796.2000002861023},{"duration":499.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":796.3000001907349,"connectEnd":796.3000001907349,"connectStart":796.3000001907349,"domainLookupEnd":796.3000001907349,"domainLookupStart":796.3000001907349,"fetchStart":796.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":796.3000001907349,"responseEnd":1296.2000002861023,"responseStart":1296.2000002861023,"secureConnectionStart":796.3000001907349},{"duration":504.2000002861023,"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":796.5,"connectEnd":796.5,"connectStart":796.5,"domainLookupEnd":796.5,"domainLookupStart":796.5,"fetchStart":796.5,"redirectEnd":0,"redirectStart":0,"requestStart":796.5,"responseEnd":1300.7000002861023,"responseStart":1300.7000002861023,"secureConnectionStart":796.5},{"duration":504.5,"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":796.7000002861023,"connectEnd":796.7000002861023,"connectStart":796.7000002861023,"domainLookupEnd":796.7000002861023,"domainLookupStart":796.7000002861023,"fetchStart":796.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":796.7000002861023,"responseEnd":1301.2000002861023,"responseStart":1301.2000002861023,"secureConnectionStart":796.7000002861023},{"duration":504.90000009536743,"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":796.9000000953674,"connectEnd":796.9000000953674,"connectStart":796.9000000953674,"domainLookupEnd":796.9000000953674,"domainLookupStart":796.9000000953674,"fetchStart":796.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":796.9000000953674,"responseEnd":1301.8000001907349,"responseStart":1301.8000001907349,"secureConnectionStart":796.9000000953674},{"duration":590.5,"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":797.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":797.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1387.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":505,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":797.3000001907349,"connectEnd":797.3000001907349,"connectStart":797.3000001907349,"domainLookupEnd":797.3000001907349,"domainLookupStart":797.3000001907349,"fetchStart":797.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":797.3000001907349,"responseEnd":1302.3000001907349,"responseStart":1302.3000001907349,"secureConnectionStart":797.3000001907349},{"duration":590.7000002861023,"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":797.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":797.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1388.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":505.3999996185303,"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":797.6000003814697,"connectEnd":797.6000003814697,"connectStart":797.6000003814697,"domainLookupEnd":797.6000003814697,"domainLookupStart":797.6000003814697,"fetchStart":797.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":797.6000003814697,"responseEnd":1303,"responseStart":1303,"secureConnectionStart":797.6000003814697},{"duration":951.5999999046326,"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":803.3000001907349,"connectEnd":803.3000001907349,"connectStart":803.3000001907349,"domainLookupEnd":803.3000001907349,"domainLookupStart":803.3000001907349,"fetchStart":803.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":803.3000001907349,"responseEnd":1754.9000000953674,"responseStart":1754.9000000953674,"secureConnectionStart":803.3000001907349},{"duration":1666,"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":803.3000001907349,"connectEnd":803.3000001907349,"connectStart":803.3000001907349,"domainLookupEnd":803.3000001907349,"domainLookupStart":803.3000001907349,"fetchStart":803.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":803.3000001907349,"responseEnd":2469.300000190735,"responseStart":2469.300000190735,"secureConnectionStart":803.3000001907349},{"duration":711.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1433.1000003814697,"connectEnd":1433.1000003814697,"connectStart":1433.1000003814697,"domainLookupEnd":1433.1000003814697,"domainLookupStart":1433.1000003814697,"fetchStart":1433.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1433.1000003814697,"responseEnd":2144.5,"responseStart":2144.5,"secureConnectionStart":1433.1000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":633,"responseStart":790,"responseEnd":797,"domLoading":793,"domInteractive":2515,"domContentLoadedEventStart":2515,"domContentLoadedEventEnd":2564,"domComplete":3520,"loadEventStart":3520,"loadEventEnd":3521,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2471.4000000953674},{"name":"bigPipe.sidebar-id.end","time":2472.300000190735},{"name":"bigPipe.activity-panel-pipe-id.start","time":2472.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":2475},{"name":"activityTabFullyLoaded","time":2574.4000000953674}],"measures":[],"correlationId":"363c8b974ba472","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}