-
Notifications
You must be signed in to change notification settings - Fork 3.7k
remove explicit memtracker from scannode #9350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
memory is tracked by implicit tracker via hook.
morningman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
|
I removed it because its counterpart in olap_scan_node.cpp is removed. |
So why remove |
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. |
mmap has been tracked and introduced in pr: #9145
|
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: |
done |
|
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...