Type:
Task
Priority:
Major
Resolution:
Fixed
These fixes mostly about re-arrangined code, like moving things out of mutex. No functional changes, no big patches.
commit 8389b45b7fa1a2ddab64050b0be3cdb3e1a937c1
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Mon Jan 22 23:58:52 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
Moved mutex locking inside lock_rec_lock().
Moved monitor increment out of mutex.
Moved assertions that don't require protection out of mutex.
Removed duplicate assertions.
Moved duplicate debug injections into lock_rec_lock().
Let monitor updates use relaxed memory order.
Return directly without maintaining variables in lock_rec_lock_slow().
Moved lock_rec_lock_fast() body into lock_rec_lock(): saves at least one
trx_mutex_enter(), one switch() plus some code was moved out of mutex.
commit 04996939106bd35a2e8737de35a912ccc6b53ba4
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Tue Jan 23 13:23:35 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
Moved lock_rec_lock_slow() inside lock_rec_lock().
commit 064bd78038ca8d76ca1612d849ccdcbbe4324110
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Wed Jan 24 22:10:16 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
When cloning oldest view, don't copy ReadView::m_creator_trx_id.
It means that the owner thread is now allowed to access this member
without trx_sys.mutex protection.
To achieve this we have to keep ReadView::m_creator_trx_id in
ReadView::m_ids. This is required to not let purge thread process
records owned by transaction associated with oldest view.
It is only required if trsanction entered read-write mode before it's
view was created.
If transaction entered read-write mode after it's view was created
(trx_set_rw_mode()), purge thread won't be allowed to touch it because
m_low_limit_id >= m_creator_trx_id holds. Thus we don't have to add
this transaction id to ReadView::m_ids.
Cleanups:
ReadView::ids_t: don't seem to make any sense, just complicate matters.
ReadView::copy_trx_ids(): doesn't make sense anymore, integrated into
caller.
ReadView::copy_complete(): not needed anymore.
ReadView copy constructores: don't seem to make any sense.
trx_purge_truncate_history(): removed view argument, access
purge_sys->view directly instead.
commit 55277e8840f359ed36a99359a7e21f03af72a78a
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Thu Jan 25 18:29:59 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
Form better trx_sys API.
causes
MDEV-22680
InnoDB trx_sys improvements
Open
Sergey Vojtovich
made changes -
2018-01-24 16:33
Summary
Misc small scalability improvements that don't deserve distinct task
Misc small InnoDB scalability fixes
Sergey Vojtovich
made changes -
2018-01-24 16:34
Description
These fixes mostly about re-arrangined code, like moving things out of mutex. No functional changes, no big patches.
Sergey Vojtovich
made changes -
2018-01-26 06:54
Description
These fixes mostly about re-arrangined code, like moving things out of mutex. No functional changes, no big patches.
These fixes mostly about re-arrangined code, like moving things out of mutex. No functional changes, no big patches.
{noformat}
commit 8389b45b7fa1a2ddab64050b0be3cdb3e1a937c1
Author: Sergey Vojtovich <svoj@mariadb.org >
Date: Mon Jan 22 23:58:52 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
Moved mutex locking inside lock_rec_lock().
Moved monitor increment out of mutex.
Moved assertions that don't require protection out of mutex.
Removed duplicate assertions.
Moved duplicate debug injections into lock_rec_lock().
Let monitor updates use relaxed memory order.
Return directly without maintaining variables in lock_rec_lock_slow().
Moved lock_rec_lock_fast() body into lock_rec_lock(): saves at least one
trx_mutex_enter(), one switch() plus some code was moved out of mutex.
commit 04996939106bd35a2e8737de35a912ccc6b53ba4
Author: Sergey Vojtovich <svoj@mariadb.org >
Date: Tue Jan 23 13:23:35 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
Moved lock_rec_lock_slow() inside lock_rec_lock().
commit 064bd78038ca8d76ca1612d849ccdcbbe4324110
Author: Sergey Vojtovich <svoj@mariadb.org >
Date: Wed Jan 24 22:10:16 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
When cloning oldest view, don't copy ReadView::m_creator_trx_id.
It means that the owner thread is now allowed to access this member
without trx_sys.mutex protection.
To achieve this we have to keep ReadView::m_creator_trx_id in
ReadView::m_ids. This is required to not let purge thread process
records owned by transaction associated with oldest view.
It is only required if trsanction entered read-write mode before it's
view was created.
If transaction entered read-write mode after it's view was created
(trx_set_rw_mode()), purge thread won't be allowed to touch it because
m_low_limit_id >= m_creator_trx_id holds. Thus we don't have to add
this transaction id to ReadView::m_ids.
Cleanups:
ReadView::ids_t: don't seem to make any sense, just complicate matters.
ReadView::copy_trx_ids(): doesn't make sense anymore, integrated into
caller.
ReadView::copy_complete(): not needed anymore.
ReadView copy constructores: don't seem to make any sense.
trx_purge_truncate_history(): removed view argument, access
purge_sys->view directly instead.
commit 55277e8840f359ed36a99359a7e21f03af72a78a
Author: Sergey Vojtovich <svoj@mariadb.org >
Date: Thu Jan 25 18:29:59 2018 +0400
MDEV-15059 - Misc small InnoDB scalability fixes
Form better trx_sys API.
{noformat}
Sergey Vojtovich
made changes -
2018-03-21 06:50
Fix Version/s
10.3.5
[ 22905
]
Fix Version/s
10.3
[ 22126
]
Resolution
Fixed
[ 1
]
Status
Open
[ 1
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:23
Workflow
MariaDB v3
[ 85122
]
MariaDB v4
[ 133449
]
{"report":{"fcp":1083.5999999046326,"ttfb":228.7999997138977,"pageVisibility":"visible","entityId":65422,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"02dc9e79-1eef-4f26-91a8-d2223f666f56","navigationType":0,"readyForUser":1168.0999999046326,"redirectCount":0,"resourceLoadedEnd":1222.5999999046326,"resourceLoadedStart":235,"resourceTiming":[{"duration":263.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":235,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":235,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":263.5,"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":235.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":235.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":325.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":235.39999961853027,"connectEnd":235.39999961853027,"connectStart":235.39999961853027,"domainLookupEnd":235.39999961853027,"domainLookupStart":235.39999961853027,"fetchStart":235.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":235.39999961853027,"responseEnd":560.5,"responseStart":560.5,"secureConnectionStart":235.39999961853027},{"duration":410.19999980926514,"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":235.59999990463257,"connectEnd":235.59999990463257,"connectStart":235.59999990463257,"domainLookupEnd":235.59999990463257,"domainLookupStart":235.59999990463257,"fetchStart":235.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":235.59999990463257,"responseEnd":645.7999997138977,"responseStart":645.7999997138977,"secureConnectionStart":235.59999990463257},{"duration":413.90000009536743,"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":235.7999997138977,"connectEnd":235.7999997138977,"connectStart":235.7999997138977,"domainLookupEnd":235.7999997138977,"domainLookupStart":235.7999997138977,"fetchStart":235.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":235.7999997138977,"responseEnd":649.6999998092651,"responseStart":649.6999998092651,"secureConnectionStart":235.7999997138977},{"duration":414.40000009536743,"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":235.89999961853027,"connectEnd":235.89999961853027,"connectStart":235.89999961853027,"domainLookupEnd":235.89999961853027,"domainLookupStart":235.89999961853027,"fetchStart":235.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":235.89999961853027,"responseEnd":650.2999997138977,"responseStart":650.2999997138977,"secureConnectionStart":235.89999961853027},{"duration":414.59999990463257,"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":236.09999990463257,"connectEnd":236.09999990463257,"connectStart":236.09999990463257,"domainLookupEnd":236.09999990463257,"domainLookupStart":236.09999990463257,"fetchStart":236.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":236.09999990463257,"responseEnd":650.6999998092651,"responseStart":650.6999998092651,"secureConnectionStart":236.09999990463257},{"duration":467.40000009536743,"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":236.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":703.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":414.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":236.39999961853027,"connectEnd":236.39999961853027,"connectStart":236.39999961853027,"domainLookupEnd":236.39999961853027,"domainLookupStart":236.39999961853027,"fetchStart":236.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":236.39999961853027,"responseEnd":651.2999997138977,"responseStart":651.2999997138977,"secureConnectionStart":236.39999961853027},{"duration":467.19999980926514,"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":236.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":703.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":415.09999990463257,"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":236.7999997138977,"connectEnd":236.7999997138977,"connectStart":236.7999997138977,"domainLookupEnd":236.7999997138977,"domainLookupStart":236.7999997138977,"fetchStart":236.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":236.7999997138977,"responseEnd":651.8999996185303,"responseStart":651.8999996185303,"secureConnectionStart":236.7999997138977},{"duration":688.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":237.69999980926514,"connectEnd":237.69999980926514,"connectStart":237.69999980926514,"domainLookupEnd":237.69999980926514,"domainLookupStart":237.69999980926514,"fetchStart":237.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":237.69999980926514,"responseEnd":926.2999997138977,"responseStart":926.2999997138977,"secureConnectionStart":237.69999980926514},{"duration":845.2000002861023,"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":237.7999997138977,"connectEnd":237.7999997138977,"connectStart":237.7999997138977,"domainLookupEnd":237.7999997138977,"domainLookupStart":237.7999997138977,"fetchStart":237.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":237.7999997138977,"responseEnd":1083,"responseStart":1083,"secureConnectionStart":237.7999997138977},{"duration":211.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":715.5,"connectEnd":715.5,"connectStart":715.5,"domainLookupEnd":715.5,"domainLookupStart":715.5,"fetchStart":715.5,"redirectEnd":0,"redirectStart":0,"requestStart":715.5,"responseEnd":926.7999997138977,"responseStart":926.7999997138977,"secureConnectionStart":715.5},{"duration":108.09999990463257,"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":980.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":980.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1088.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":107.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":981.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":981.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1089,"responseStart":0,"secureConnectionStart":0},{"duration":240.30000019073486,"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&whisper-enabled=true","startTime":982.2999997138977,"connectEnd":982.2999997138977,"connectStart":982.2999997138977,"domainLookupEnd":982.2999997138977,"domainLookupStart":982.2999997138977,"fetchStart":982.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":982.2999997138977,"responseEnd":1222.5999999046326,"responseStart":1222.5999999046326,"secureConnectionStart":982.2999997138977},{"duration":248.69999980926514,"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&whisper-enabled=true","startTime":982.6999998092651,"connectEnd":982.6999998092651,"connectStart":982.6999998092651,"domainLookupEnd":982.6999998092651,"domainLookupStart":982.6999998092651,"fetchStart":982.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":982.6999998092651,"responseEnd":1231.3999996185303,"responseStart":1231.3999996185303,"secureConnectionStart":982.6999998092651},{"duration":249.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":983.0999999046326,"connectEnd":983.0999999046326,"connectStart":983.0999999046326,"domainLookupEnd":983.0999999046326,"domainLookupStart":983.0999999046326,"fetchStart":983.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":983.0999999046326,"responseEnd":1232.6999998092651,"responseStart":1232.6999998092651,"secureConnectionStart":983.0999999046326},{"duration":210.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1076.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1076.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1286.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":50,"responseStart":229,"responseEnd":232,"domLoading":232,"domInteractive":1230,"domContentLoadedEventStart":1230,"domContentLoadedEventEnd":1276,"domComplete":1587,"loadEventStart":1587,"loadEventEnd":1588,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1213.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1214},{"name":"bigPipe.activity-panel-pipe-id.start","time":1214.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1216.6999998092651},{"name":"activityTabFullyLoaded","time":1308}],"measures":[],"correlationId":"40e1d61cd2bd94","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":18,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Closing since the project is over.