Uh oh!
There was an error while loading. Please reload this page.
remove explicit memtracker from scannode - #9350
Conversation
memory is tracked by implicit tracker via hook.
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
|
dataroaring
commented
May 4, 2022
I removed it because its counterpart in olap_scan_node.cpp is removed. |
xinyiZzz
commented
May 5, 2022
So why remove |
dataroaring
commented
May 5, 2022
It seems that _block_mem_tracker tracks memory for vectorized block? If so, we should track them via ExecNode::_mem_tracker, and it should be tracked via hook, right? btw, we should track mmap allocated memory. |
xinyiZzz
commented
May 5, 2022
mmap has been tracked and introduced in pr: #9145
|
dataroaring
commented
May 5, 2022
Yep. I understand what you mean. IMHO, It should be case by case, e.g. for the OlapScanNode, the majority memory should be contributed by blocks, so value of block_mem_tracker is about equal value of ExecNode::_mem_tracker? But for the AggregateNode, may be the majority memory should be contributed by hash table, so we should track memory usage of hash table. |
I agree with you that the A little leak in the code: |
dataroaring
commented
May 8, 2022
done |
xinyiZzz
commented
May 8, 2022
LGTM |
We're closing this PR because it hasn't been updated in a while. |
memory is tracked by implicit tracker via hook.
Proposed changes
Issue Number: close #xxx
Problem Summary:
Describe the overview of changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...