Hello
I have just applied the PTI patch on the OS and it is causing a massive difference in the execution time of a specific query.
Disabling and reenabling PTI enables me to reproduce the difference at will :
PTI disabled : 7s
PTI enabled : 87s
The query :
SELECT * FROM `test` as b1 WHERE b1.`dateFin` > '2018-01-24' AND NOT EXISTS (SELECT 1 FROM `test` as b2 WHERE b2.`ip` = b1.`ip` AND b2.`dateFin` > b1.`dateFin`);
|
Explain doesn't help much :
+------+--------------------+-------+------+---------------+------+---------+------+------+-------------+
|
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|
+------+--------------------+-------+------+---------------+------+---------+------+------+-------------+
|
| 1 | PRIMARY | b1 | ALL | NULL | NULL | NULL | NULL | 4499 | Using where |
|
| 2 | DEPENDENT SUBQUERY | b2 | ALL | NULL | NULL | NULL | NULL | 4499 | Using where |
|
+------+--------------------+-------+------+---------------+------+---------+------+------+-------------+
|
Can't see any report matching that kind of difference so far so i'm wondering what's up
- relates to
-
MDEV-15163
Massive performance impact after PTI fix 2
-
-
Closed
{"report":{"fcp":1044.6000003814697,"ttfb":236.10000038146973,"pageVisibility":"visible","entityId":65439,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6ab28469-4009-4f8f-bfa7-5a6bfc73fd0c","navigationType":0,"readyForUser":1127.4000005722046,"redirectCount":0,"resourceLoadedEnd":1338.5,"resourceLoadedStart":241.69999980926514,"resourceTiming":[{"duration":333.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":241.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":574.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":333,"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":242.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":575.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":342.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":242.30000019073486,"connectEnd":242.30000019073486,"connectStart":242.30000019073486,"domainLookupEnd":242.30000019073486,"domainLookupStart":242.30000019073486,"fetchStart":242.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":242.30000019073486,"responseEnd":585.1000003814697,"responseStart":585.1000003814697,"secureConnectionStart":242.30000019073486},{"duration":370.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":242.5,"connectEnd":242.5,"connectStart":242.5,"domainLookupEnd":242.5,"domainLookupStart":242.5,"fetchStart":242.5,"redirectEnd":0,"redirectStart":0,"requestStart":242.5,"responseEnd":613.4000005722046,"responseStart":613.4000005722046,"secureConnectionStart":242.5},{"duration":375,"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":242.69999980926514,"connectEnd":242.69999980926514,"connectStart":242.69999980926514,"domainLookupEnd":242.69999980926514,"domainLookupStart":242.69999980926514,"fetchStart":242.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":242.69999980926514,"responseEnd":617.6999998092651,"responseStart":617.6999998092651,"secureConnectionStart":242.69999980926514},{"duration":375.19999980926514,"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":243,"connectEnd":243,"connectStart":243,"domainLookupEnd":243,"domainLookupStart":243,"fetchStart":243,"redirectEnd":0,"redirectStart":0,"requestStart":243,"responseEnd":618.1999998092651,"responseStart":618.1999998092651,"secureConnectionStart":243},{"duration":375.80000019073486,"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":243.10000038146973,"connectEnd":243.10000038146973,"connectStart":243.10000038146973,"domainLookupEnd":243.10000038146973,"domainLookupStart":243.10000038146973,"fetchStart":243.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":243.10000038146973,"responseEnd":618.9000005722046,"responseStart":618.9000005722046,"secureConnectionStart":243.10000038146973},{"duration":517.9000005722046,"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":243.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":761.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":376,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":243.4000005722046,"connectEnd":243.4000005722046,"connectStart":243.4000005722046,"domainLookupEnd":243.4000005722046,"domainLookupStart":243.4000005722046,"fetchStart":243.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":243.4000005722046,"responseEnd":619.4000005722046,"responseStart":619.4000005722046,"secureConnectionStart":243.4000005722046},{"duration":517.6999998092651,"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":243.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":761.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":376.30000019073486,"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":243.80000019073486,"connectEnd":243.80000019073486,"connectStart":243.80000019073486,"domainLookupEnd":243.80000019073486,"domainLookupStart":243.80000019073486,"fetchStart":243.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":243.80000019073486,"responseEnd":620.1000003814697,"responseStart":620,"secureConnectionStart":243.80000019073486},{"duration":728.8000001907349,"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":244.69999980926514,"connectEnd":244.69999980926514,"connectStart":244.69999980926514,"domainLookupEnd":244.69999980926514,"domainLookupStart":244.69999980926514,"fetchStart":244.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":244.69999980926514,"responseEnd":973.5,"responseStart":973.5,"secureConnectionStart":244.69999980926514},{"duration":1093.8000001907349,"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":244.69999980926514,"connectEnd":244.69999980926514,"connectStart":244.69999980926514,"domainLookupEnd":244.69999980926514,"domainLookupStart":244.69999980926514,"fetchStart":244.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":244.69999980926514,"responseEnd":1338.5,"responseStart":1338.4000005722046,"secureConnectionStart":244.69999980926514},{"duration":396.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":831.1000003814697,"connectEnd":831.1000003814697,"connectStart":831.1000003814697,"domainLookupEnd":831.1000003814697,"domainLookupStart":831.1000003814697,"fetchStart":831.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":831.1000003814697,"responseEnd":1227.6000003814697,"responseStart":1227.6000003814697,"secureConnectionStart":831.1000003814697},{"duration":338.20000076293945,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1036.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1036.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1374.9000005722046,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":78,"responseStart":236,"responseEnd":239,"domLoading":240,"domInteractive":1393,"domContentLoadedEventStart":1393,"domContentLoadedEventEnd":1432,"domComplete":2278,"loadEventStart":2278,"loadEventEnd":2279,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1375.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1376.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1376.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":1379.4000005722046},{"name":"activityTabFullyLoaded","time":1438.8000001907349}],"measures":[],"correlationId":"ba234a30b131ee","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}