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

Storages: Fix memory trace for UniversalPageId #9163

Merged
merged 12 commits into from
Jun 27, 2024

Conversation

CalvinNeo
Copy link
Member

@CalvinNeo CalvinNeo commented Jun 26, 2024

What problem does this PR solve?

Issue Number: close #8835

Problem Summary:
We don't trace when a UniversalPageId is move-constructed or move-assigned, so we may count a memory release twice

image

What is changed and how it works?


Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

a
Signed-off-by: CalvinNeo <[email protected]>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/needs-linked-issue labels Jun 26, 2024
a
Signed-off-by: CalvinNeo <[email protected]>
a
Signed-off-by: CalvinNeo <[email protected]>
@CalvinNeo
Copy link
Member Author

@CalvinNeo CalvinNeo requested review from breezewish and removed request for JaySon-Huang, JinheLin and Lloyd-Pottiger June 26, 2024 03:34
Signed-off-by: CalvinNeo <[email protected]>
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 26, 2024
@ti-chi-bot ti-chi-bot bot added the approved label Jun 26, 2024
@CalvinNeo CalvinNeo requested a review from JaySon-Huang June 26, 2024 07:41
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jun 26, 2024
Copy link
Contributor

ti-chi-bot bot commented Jun 26, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-06-26 07:19:37.817552492 +0000 UTC m=+790504.303041443: ☑️ agreed by Lloyd-Pottiger.
  • 2024-06-26 09:17:30.548732104 +0000 UTC m=+797577.034220936: ☑️ agreed by JinheLin.

Copy link
Contributor

ti-chi-bot bot commented Jun 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JaySon-Huang, JinheLin, Lloyd-Pottiger

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JaySon-Huang,JinheLin,Lloyd-Pottiger]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Lloyd-Pottiger
Copy link
Contributor

/hold

TODO: fix tidy

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 27, 2024
@JaySon-Huang
Copy link
Contributor

/test pull-integration-test

@CalvinNeo
Copy link
Member Author

/unhold

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 27, 2024
@ti-chi-bot ti-chi-bot bot merged commit ecdea74 into pingcap:master Jun 27, 2024
5 checks passed
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Aug 2, 2024
…p#226)

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Co-authored-by: JaySon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support thread-wise memory alloc/dealloc monitor
4 participants