-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor: add memTracker for aggregation #13720
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13720 +/- ##
===========================================
Coverage ? 80.5015%
===========================================
Files ? 483
Lines ? 123615
Branches ? 0
===========================================
Hits ? 99512
Misses ? 16203
Partials ? 7900 |
/run-all-tests |
1 similar comment
/run-all-tests |
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.
All intermediate data is stored in aggPartialResultMapper
at https://github.com/pingcap/tidb/blob/master/executor/aggregate.go#L467 .
It seems we should trace it too.
You are right, but the thing is we current lack the memory usage API for |
Sorry, my bad... |
03fe7e9
to
aa77089
Compare
@ichn-hu, please update your pull request. |
aa77089
to
1e89578
Compare
/run-all-tests |
1 similar comment
/run-all-tests |
/rebuild |
/run-integration-tests |
@SunRunAway @XuHuaiyu @qw4990 Hi all, I've created another issue that aims to track the memory consumpution in partialResultMapper #14103, in this PR let's just track the memory usage of chunks. PTAL. |
@ichn-hu Friendly ping, please resolve conflicts. |
b1472df
to
dfd6428
Compare
/run-all-tests |
62302a7
to
dacf7bb
Compare
dacf7bb
to
c9f9ba9
Compare
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!
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
/run-all-tests |
What problem does this PR solve?
Add memory track for aggregation, close #13392.
What is changed and how it works?
By tracking the chunks read from child, it is fair easy to track the memory usage (partially).
Check List
Tests
Side effects
Release note