I set TotalUmMemory to 25%, but ExeMgr use far beyond usage memory.
Finally ExeMgr was killed by oom-killer.
I tried two sql on large datasets.
1. select distinct columnA, columnB, columnC from table.
2. select columnA, columnB, columnC from table group by columnA, columnB, columnC.
1. is OOM,
but 2. is MCS-2003: Aggregation/Distinct memory limit is exceeded.
I think 1. and 2. are similar query.
I think that 1. should return same message (MCS-2003: Aggregation/Distinct memory limit is exceeded.)
Kugimiya
created issue -
2022-08-10 08:35
Sergei Golubchik
made changes -
2022-08-11 16:33
Field
Original Value
New Value
Component/s
Storage Engine - ColumnStore
[ 17600
]
Key
MDEV-29285
MCOL-5187
Affects Version/s
10.6.5
[ 26034
]
Workflow
MariaDB v4
[ 169026
]
MariaDB ColumnStore workflow
[ 169087
]
Project
MariaDB Server
[ 10000
]
MariaDB ColumnStore
[ 10902
]
Roman
made changes -
2022-08-19 18:10
Labels
SQL performance query
SQL query
Roman
made changes -
2022-10-05 10:03
Status
Open
[ 1
]
Confirmed
[ 10101
]
Roman
made changes -
2022-10-05 10:03
Assignee
Roman
[ drrtuy
]
Roman
made changes -
2022-10-05 10:03
Assignee
Roman
[ drrtuy
]
Alexey Antipovsky
[ JIRAUSER47594
]
Roman
made changes -
2022-10-05 10:04
Affects Version/s
6.4.6
[ 28452
]
Roman
made changes -
2022-10-05 10:05
Affects Version/s
22.08.1
[ 28206
]
Allen Herrera
made changes -
2022-10-31 18:10
Labels
SQL query
SQL query triage
Allen Herrera
made changes -
2022-10-31 18:10
Priority
Major
[ 3
]
Trivial
[ 5
]
Roman
made changes -
2022-11-02 09:24
Assignee
Alexey Antipovsky
[ JIRAUSER47594
]
Roman
[ drrtuy
]
Roman
made changes -
2022-11-02 09:24
Status
Confirmed
[ 10101
]
In Progress
[ 3
]
Roman
made changes -
2022-11-02 09:24
Assignee
Roman
[ drrtuy
]
Alexey Antipovsky
[ JIRAUSER47594
]
Todd Stoffel (Inactive)
made changes -
2023-07-01 20:04
Fix Version/s
23.08
[ 28540
]
Fix Version/s
23.02
[ 28209
]
Julien Fritsch
made changes -
2023-12-15 08:53
Status
In Progress
[ 3
]
Stalled
[ 10000
]
AirFocus
made changes -
2024-06-25 17:41
Labels
SQL query triage
SQL query
Julien Fritsch
made changes -
2024-07-01 12:57
Component/s
N/A
[ 15201
]
Fix Version/s
N/A
[ 24311
]
Fix Version/s
23.10
[ 28540
]
Resolution
Won't Fix
[ 2
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
{"report":{"fcp":1051.8999996185303,"ttfb":365.29999923706055,"pageVisibility":"visible","entityId":113619,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2b2b49d9-852f-44d5-920a-11fd5d46858a","navigationType":0,"readyForUser":1123,"redirectCount":0,"resourceLoadedEnd":1173.7999992370605,"resourceLoadedStart":379.19999980926514,"resourceTiming":[{"duration":207.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":379.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":379.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586.2999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":207.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":379.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":379.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":216.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":379.69999980926514,"connectEnd":379.69999980926514,"connectStart":379.69999980926514,"domainLookupEnd":379.69999980926514,"domainLookupStart":379.69999980926514,"fetchStart":379.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":379.69999980926514,"responseEnd":595.7999992370605,"responseStart":595.7999992370605,"secureConnectionStart":379.69999980926514},{"duration":273,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":379.8999996185303,"connectEnd":379.8999996185303,"connectStart":379.8999996185303,"domainLookupEnd":379.8999996185303,"domainLookupStart":379.8999996185303,"fetchStart":379.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":379.8999996185303,"responseEnd":652.8999996185303,"responseStart":652.8999996185303,"secureConnectionStart":379.8999996185303},{"duration":276.9000005722046,"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":380.0999994277954,"connectEnd":380.0999994277954,"connectStart":380.0999994277954,"domainLookupEnd":380.0999994277954,"domainLookupStart":380.0999994277954,"fetchStart":380.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":380.0999994277954,"responseEnd":657,"responseStart":657,"secureConnectionStart":380.0999994277954},{"duration":277.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":380.19999980926514,"connectEnd":380.19999980926514,"connectStart":380.19999980926514,"domainLookupEnd":380.19999980926514,"domainLookupStart":380.19999980926514,"fetchStart":380.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":380.19999980926514,"responseEnd":657.3999996185303,"responseStart":657.3999996185303,"secureConnectionStart":380.19999980926514},{"duration":277.5,"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":380.3999996185303,"connectEnd":380.3999996185303,"connectStart":380.3999996185303,"domainLookupEnd":380.3999996185303,"domainLookupStart":380.3999996185303,"fetchStart":380.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":380.3999996185303,"responseEnd":657.8999996185303,"responseStart":657.8999996185303,"secureConnectionStart":380.3999996185303},{"duration":357.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":380.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":380.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":738.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":277.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":380.69999980926514,"connectEnd":380.69999980926514,"connectStart":380.69999980926514,"domainLookupEnd":380.69999980926514,"domainLookupStart":380.69999980926514,"fetchStart":380.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":380.69999980926514,"responseEnd":658.3999996185303,"responseStart":658.3999996185303,"secureConnectionStart":380.69999980926514},{"duration":357.30000019073486,"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":380.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":380.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":738.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":278,"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":381,"connectEnd":381,"connectStart":381,"domainLookupEnd":381,"domainLookupStart":381,"fetchStart":381,"redirectEnd":0,"redirectStart":0,"requestStart":381,"responseEnd":659,"responseStart":659,"secureConnectionStart":381},{"duration":789.8999996185303,"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":382.19999980926514,"connectEnd":382.19999980926514,"connectStart":382.19999980926514,"domainLookupEnd":382.19999980926514,"domainLookupStart":382.19999980926514,"fetchStart":382.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":382.19999980926514,"responseEnd":1172.0999994277954,"responseStart":1172.0999994277954,"secureConnectionStart":382.19999980926514},{"duration":791.5,"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":382.29999923706055,"connectEnd":382.29999923706055,"connectStart":382.29999923706055,"domainLookupEnd":382.29999923706055,"domainLookupStart":382.29999923706055,"fetchStart":382.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":382.29999923706055,"responseEnd":1173.7999992370605,"responseStart":1173.7999992370605,"secureConnectionStart":382.29999923706055},{"duration":302.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":749.8999996185303,"connectEnd":749.8999996185303,"connectStart":749.8999996185303,"domainLookupEnd":749.8999996185303,"domainLookupStart":749.8999996185303,"fetchStart":749.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":749.8999996185303,"responseEnd":1052.1999998092651,"responseStart":1052.1999998092651,"secureConnectionStart":749.8999996185303},{"duration":202.89999961853027,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1044.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1044.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1247.7999992370605,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":105,"responseStart":366,"responseEnd":374,"domLoading":376,"domInteractive":1288,"domContentLoadedEventStart":1288,"domContentLoadedEventEnd":1342,"domComplete":1503,"loadEventStart":1503,"loadEventEnd":1504,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1182.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1183.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1183.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1192.1999998092651},{"name":"activityTabFullyLoaded","time":1366.1999998092651}],"measures":[],"correlationId":"aa79be2c04c860","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":201,"dbReadsTimeInMs":48,"dbConnsTimeInMs":61,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thx for your suggestion. We will look into implementing it.
JFYI SELECT DISTINCT is not a simple rename for GROUP BY and it is completely different comparing to GROUP BY processing-wise. I suggest you to prefer GROUP BY than DISTINCT.
Did you try to enable disk-based aggregation to manage with the error message?