This will allow us to reduce critical section protected by trx_sys.mutex:
1. no need to maintain global m_free list
2. eliminate if (trx->read_view == NULL) condition
On x86_64 sizeof(Readview) is 144 mostly due to padding, sizeof(trx_t) with ReadView is 1200.
It was supposed to be called out of mutex, but nevertheless was called
under trx_sys.mutex for normal threads adding one extra condtion in
critical section.
commit 4dc30f3c170b9deab1ff0b472930baba5c65b01c
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Sat Jan 20 17:45:42 2018 +0400
MDEV-15019 - InnoDB: store ReadView on trx
This will allow us to reduce critical section protected by
trx_sys.mutex:
- no need to maintain global m_free list
- eliminate if (trx->read_view == NULL) condition.
On x86_64 sizeof(Readview) is 144 mostly due to padding, sizeof(trx_t)
with ReadView is 1200.
Also don't close ReadView for read-write transactions, just mark it
closed similarly to read-only.
Clean-up: removed n_prepared_recovered_trx and n_prepared_trx, which
accidentally re-appeared after some rebase.
Sergey Vojtovich
added a comment - Pushed
commit 8e1adff95993effaa22129ff34b4570b755434ac
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Sun Jan 21 14:10:06 2018 +0400
Simplified away ReadView::complete()
It was supposed to be called out of mutex, but nevertheless was called
under trx_sys.mutex for normal threads adding one extra condtion in
critical section.
commit 4dc30f3c170b9deab1ff0b472930baba5c65b01c
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Sat Jan 20 17:45:42 2018 +0400
MDEV-15019 - InnoDB: store ReadView on trx
This will allow us to reduce critical section protected by
trx_sys.mutex:
- no need to maintain global m_free list
- eliminate if (trx->read_view == NULL) condition.
On x86_64 sizeof(Readview) is 144 mostly due to padding, sizeof(trx_t)
with ReadView is 1200.
Also don't close ReadView for read-write transactions, just mark it
closed similarly to read-only.
Clean-up: removed n_prepared_recovered_trx and n_prepared_trx, which
accidentally re-appeared after some rebase.
People
Sergey Vojtovich
Sergey Vojtovich
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1159.8999998569489,"ttfb":367.39999985694885,"pageVisibility":"visible","entityId":65366,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"14c200a7-68c0-4c50-a001-4e19b73b7356","navigationType":0,"readyForUser":1287.3999998569489,"redirectCount":0,"resourceLoadedEnd":1623,"resourceLoadedStart":376.2999999523163,"resourceTiming":[{"duration":69.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":376.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":376.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":69.29999995231628,"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":376.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":376.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":446,"responseStart":0,"secureConnectionStart":0},{"duration":234,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":376.7999999523163,"connectEnd":376.7999999523163,"connectStart":376.7999999523163,"domainLookupEnd":376.7999999523163,"domainLookupStart":376.7999999523163,"fetchStart":376.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":455.7000000476837,"responseEnd":610.7999999523163,"responseStart":467.7000000476837,"secureConnectionStart":376.7999999523163},{"duration":282.2999999523163,"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":377,"connectEnd":377,"connectStart":377,"domainLookupEnd":377,"domainLookupStart":377,"fetchStart":377,"redirectEnd":0,"redirectStart":0,"requestStart":457.5,"responseEnd":659.2999999523163,"responseStart":471.5,"secureConnectionStart":377},{"duration":143.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":377.2999999523163,"connectEnd":478.7000000476837,"connectStart":478.7000000476837,"domainLookupEnd":478.7000000476837,"domainLookupStart":478.7000000476837,"fetchStart":377.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":479.09999990463257,"responseEnd":521.2000000476837,"responseStart":493.5,"secureConnectionStart":478.7000000476837},{"duration":158.10000014305115,"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":377.39999985694885,"connectEnd":377.39999985694885,"connectStart":377.39999985694885,"domainLookupEnd":377.39999985694885,"domainLookupStart":377.39999985694885,"fetchStart":377.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":490.2000000476837,"responseEnd":535.5,"responseStart":523,"secureConnectionStart":377.39999985694885},{"duration":158.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":377.59999990463257,"connectEnd":377.59999990463257,"connectStart":377.59999990463257,"domainLookupEnd":377.59999990463257,"domainLookupStart":377.59999990463257,"fetchStart":377.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":492.7999999523163,"responseEnd":536.5,"responseStart":526.8999998569489,"secureConnectionStart":377.59999990463257},{"duration":108.70000004768372,"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":377.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":377.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":486.5,"responseStart":0,"secureConnectionStart":0},{"duration":159.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":377.89999985694885,"connectEnd":377.89999985694885,"connectStart":377.89999985694885,"domainLookupEnd":377.89999985694885,"domainLookupStart":377.89999985694885,"fetchStart":377.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":493.39999985694885,"responseEnd":537.0999999046326,"responseStart":528.8999998569489,"secureConnectionStart":377.89999985694885},{"duration":109.40000009536743,"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":378.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":378.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":487.5,"responseStart":0,"secureConnectionStart":0},{"duration":167.89999985694885,"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":378.2000000476837,"connectEnd":378.2000000476837,"connectStart":378.2000000476837,"domainLookupEnd":378.2000000476837,"domainLookupStart":378.2000000476837,"fetchStart":378.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":520.5999999046326,"responseEnd":546.0999999046326,"responseStart":537.5999999046326,"secureConnectionStart":378.2000000476837},{"duration":1233.9000000953674,"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":389.09999990463257,"connectEnd":389.09999990463257,"connectStart":389.09999990463257,"domainLookupEnd":389.09999990463257,"domainLookupStart":389.09999990463257,"fetchStart":389.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":645.7999999523163,"responseEnd":1623,"responseStart":1615,"secureConnectionStart":389.09999990463257},{"duration":1232.7000000476837,"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":389.2999999523163,"connectEnd":389.2999999523163,"connectStart":389.2999999523163,"domainLookupEnd":389.2999999523163,"domainLookupStart":389.2999999523163,"fetchStart":389.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":931.7000000476837,"responseEnd":1622,"responseStart":1612.2999999523163,"secureConnectionStart":389.2999999523163},{"duration":310.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":830.2000000476837,"connectEnd":830.2000000476837,"connectStart":830.2000000476837,"domainLookupEnd":830.2000000476837,"domainLookupStart":830.2000000476837,"fetchStart":830.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1051.7999999523163,"responseEnd":1140.7999999523163,"responseStart":1139.7000000476837,"secureConnectionStart":830.2000000476837},{"duration":231.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1133.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1133.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1365.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":341.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1355.2999999523163,"connectEnd":1355.2999999523163,"connectStart":1355.2999999523163,"domainLookupEnd":1355.2999999523163,"domainLookupStart":1355.2999999523163,"fetchStart":1355.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1657.7000000476837,"responseEnd":1697.2000000476837,"responseStart":1696.3999998569489,"secureConnectionStart":1355.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":213,"responseStart":367,"responseEnd":389,"domLoading":371,"domInteractive":1704,"domContentLoadedEventStart":1704,"domContentLoadedEventEnd":1746,"domComplete":2199,"loadEventStart":2199,"loadEventEnd":2199,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1628.5},{"name":"bigPipe.sidebar-id.end","time":1629.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1629.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1631.5},{"name":"activityTabFullyLoaded","time":1760.8999998569489}],"measures":[],"correlationId":"cfa096e7d8a927","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
marko, please review https://github.com/MariaDB/server/commit/9f72798a8fe27fb06ceeb2f543c186ee8faa987a