Given that NtWaitForWorkViaWorkerFactory is not anything we can influence much (that's a threadpool management), this makes my_access() the top-1 hotspot
However we do not need to instantly recheck if directory is still there. If it was there, and there was no "drop database", it remains in place. We can assume, that removing database directory manually outside of the server does not happen (or those who do punish themselves), we can cache the results of this operation, speeding up the connect, and every "USE db"
Sergej Vojtovich reported my_access overhead of 2-3% on Linux in connect/disconnect test. Not as big as on Windows, but still quite measurable.
Vladislav Vaintroub
added a comment - - edited Sergej Vojtovich reported my_access overhead of 2-3% on Linux in connect/disconnect test. Not as big as on Windows, but still quite measurable.
People
Vladislav Vaintroub
Vladislav Vaintroub
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":728.5,"ttfb":151.39999985694885,"pageVisibility":"visible","entityId":89288,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"73b5d218-6c63-4dc3-9792-7790bb978205","navigationType":0,"readyForUser":796.5,"redirectCount":0,"resourceLoadedEnd":519.7999999523163,"resourceLoadedStart":158.89999985694885,"resourceTiming":[{"duration":42.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":158.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":201.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":43.200000047683716,"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":159.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":202.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":151.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":159.19999980926514,"connectEnd":204.39999985694885,"connectStart":204.39999985694885,"domainLookupEnd":204.39999985694885,"domainLookupStart":204.39999985694885,"fetchStart":159.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":204.59999990463257,"responseEnd":310.2999999523163,"responseStart":218.19999980926514,"secureConnectionStart":204.39999985694885},{"duration":280.5,"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":159.29999995231628,"connectEnd":159.29999995231628,"connectStart":159.29999995231628,"domainLookupEnd":159.29999995231628,"domainLookupStart":159.29999995231628,"fetchStart":159.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":205.39999985694885,"responseEnd":439.7999999523163,"responseStart":225.89999985694885,"secureConnectionStart":159.29999995231628},{"duration":65.60000014305115,"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":159.39999985694885,"connectEnd":159.39999985694885,"connectStart":159.39999985694885,"domainLookupEnd":159.39999985694885,"domainLookupStart":159.39999985694885,"fetchStart":159.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":205.79999995231628,"responseEnd":225,"responseStart":223.79999995231628,"secureConnectionStart":159.39999985694885},{"duration":67.29999995231628,"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":159.5,"connectEnd":159.5,"connectStart":159.5,"domainLookupEnd":159.5,"domainLookupStart":159.5,"fetchStart":159.5,"redirectEnd":0,"redirectStart":0,"requestStart":208.19999980926514,"responseEnd":226.79999995231628,"responseStart":225.19999980926514,"secureConnectionStart":159.5},{"duration":69.19999980926514,"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":159.5,"connectEnd":159.5,"connectStart":159.5,"domainLookupEnd":159.5,"domainLookupStart":159.5,"fetchStart":159.5,"redirectEnd":0,"redirectStart":0,"requestStart":206.59999990463257,"responseEnd":228.69999980926514,"responseStart":227.69999980926514,"secureConnectionStart":159.5},{"duration":47.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":159.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":207.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":78.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":159.79999995231628,"connectEnd":159.79999995231628,"connectStart":159.79999995231628,"domainLookupEnd":159.79999995231628,"domainLookupStart":159.79999995231628,"fetchStart":159.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":213.19999980926514,"responseEnd":238.69999980926514,"responseStart":236,"secureConnectionStart":159.79999995231628},{"duration":48.40000009536743,"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":159.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":208.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":80.69999980926514,"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":160,"connectEnd":160,"connectStart":160,"domainLookupEnd":160,"domainLookupStart":160,"fetchStart":160,"redirectEnd":0,"redirectStart":0,"requestStart":213.29999995231628,"responseEnd":240.69999980926514,"responseStart":238.89999985694885,"secureConnectionStart":160},{"duration":347.2999999523163,"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":172,"connectEnd":172,"connectStart":172,"domainLookupEnd":172,"domainLookupStart":172,"fetchStart":172,"redirectEnd":0,"redirectStart":0,"requestStart":251.89999985694885,"responseEnd":519.2999999523163,"responseStart":511.09999990463257,"secureConnectionStart":172},{"duration":261.90000009536743,"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":257.89999985694885,"connectEnd":257.89999985694885,"connectStart":257.89999985694885,"domainLookupEnd":257.89999985694885,"domainLookupStart":257.89999985694885,"fetchStart":257.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":270.69999980926514,"responseEnd":519.7999999523163,"responseStart":512.7999999523163,"secureConnectionStart":257.89999985694885},{"duration":172.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":452.39999985694885,"connectEnd":452.39999985694885,"connectStart":452.39999985694885,"domainLookupEnd":452.39999985694885,"domainLookupStart":452.39999985694885,"fetchStart":452.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":479,"responseEnd":624.7999999523163,"responseStart":623.5999999046326,"secureConnectionStart":452.39999985694885},{"duration":190.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":685.6999998092651,"connectEnd":685.6999998092651,"connectStart":685.6999998092651,"domainLookupEnd":685.6999998092651,"domainLookupStart":685.6999998092651,"fetchStart":685.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":842.5999999046326,"responseEnd":875.7999999523163,"responseStart":874.5999999046326,"secureConnectionStart":685.6999998092651},{"duration":121,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":721.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":721.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":842.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":17,"responseStart":151,"responseEnd":258,"domLoading":155,"domInteractive":843,"domContentLoadedEventStart":843,"domContentLoadedEventEnd":879,"domComplete":1264,"loadEventStart":1264,"loadEventEnd":1264,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":827.5999999046326},{"name":"bigPipe.sidebar-id.end","time":828.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":828.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":829.5},{"name":"activityTabFullyLoaded","time":892.1999998092651}],"measures":[],"correlationId":"e062a32388fe5f","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":63,"dbReadsTimeInMs":8,"dbConnsTimeInMs":14,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Sergej Vojtovich reported my_access overhead of 2-3% on Linux in connect/disconnect test. Not as big as on Windows, but still quite measurable.