Skip to content
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: trace the memory usage of Selection executors #13927

Merged
merged 35 commits into from Dec 23, 2019

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Dec 5, 2019

What problem does this PR solve?

Trace the memory usage of Selection executors and display the result in Explain Analyze.
Wait for #13914.

What is changed and how it works?

Introduce a memtracker into SelectionExec and use it to trace the memory usage.

Check List

Tests

  • Unit test

@qw4990 qw4990 added the sig/execution SIG execution label Dec 5, 2019
@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@736c2f2). Click here to learn what that means.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #13927   +/-   ##
===========================================
  Coverage          ?   80.2661%           
===========================================
  Files             ?        483           
  Lines             ?     121608           
  Branches          ?          0           
===========================================
  Hits              ?      97610           
  Misses            ?      16273           
  Partials          ?       7725

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~

executor/adapter.go Outdated Show resolved Hide resolved
executor/projection.go Outdated Show resolved Hide resolved
@qw4990
Copy link
Contributor Author

qw4990 commented Dec 10, 2019

/run-all-tests

@qw4990
Copy link
Contributor Author

qw4990 commented Dec 10, 2019

/run-unit-test

1 similar comment
@qw4990
Copy link
Contributor Author

qw4990 commented Dec 10, 2019

/run-unit-test

@qw4990
Copy link
Contributor Author

qw4990 commented Dec 10, 2019

All comments have been addressed, PTAL @SunRunAway @ichn-hu

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sre-bot
Copy link
Contributor

sre-bot commented Dec 18, 2019

@SunRunAway, @XuHuaiyu, @wshwsh12, @ichn-hu, PTAL.

@qw4990 qw4990 added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 19, 2019
@ichn-hu
Copy link
Contributor

ichn-hu commented Dec 20, 2019

LGTM, I guess I could borrow your test in my HashAgg memtracker!

@ichn-hu ichn-hu added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 20, 2019
@ichn-hu ichn-hu added the status/can-merge Indicates a PR has been approved by a committer. label Dec 20, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 20, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Dec 20, 2019

@qw4990 merge failed.

@sre-bot
Copy link
Contributor

sre-bot commented Dec 22, 2019

@SunRunAway, @ichn-hu, @XuHuaiyu, @wshwsh12, PTAL.

@qw4990
Copy link
Contributor Author

qw4990 commented Dec 23, 2019

/run-all-tests

@qw4990 qw4990 removed status/PTAL status/LGT1 Indicates that a PR has LGTM 1. labels Dec 23, 2019
@qw4990
Copy link
Contributor Author

qw4990 commented Dec 23, 2019

/run-all-tests

@qw4990
Copy link
Contributor Author

qw4990 commented Dec 23, 2019

/run-unit-test

@qw4990 qw4990 merged commit f0282d3 into pingcap:master Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants