Skip to content

Use an adaptive aggressive GC strategy on Delta (PageStorage)#1552

Merged
ti-srebot merged 11 commits intopingcap:masterfrom
JaySon-Huang:page_storage_ctl
Mar 12, 2021
Merged

Use an adaptive aggressive GC strategy on Delta (PageStorage)#1552
ti-srebot merged 11 commits intopingcap:masterfrom
JaySon-Huang:page_storage_ctl

Conversation

@JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented Mar 12, 2021

What problem does this PR solve?

Issue Number: close #1550

Problem Summary: TiFlash OOM cause by too many legacy PageFile are not GC

What is changed and how it works?

  • Add some settings to make TiFlash can overwrite gc threshold of PageFile
  • Try to do more aggressive GC when there are many Legacy PageFiles
  • Add a build target page_ctl to do manual gc offline

Related changes

  • Need to cherry-pick to the release branch 4.0

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Side effects

  • N/A

Release note

  • Use an adaptive aggressive data GC strategy to avoid OOM

@JaySon-Huang JaySon-Huang added the needs-cherry-pick-release-4.0 PR which needs to be cherry-picked to release-4.0 label Mar 12, 2021
@JaySon-Huang JaySon-Huang self-assigned this Mar 12, 2021
@JaySon-Huang JaySon-Huang changed the title Page storage ctl Try to do more aggressive GC on Delta (PageStorage) Mar 12, 2021
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang JaySon-Huang changed the title Try to do more aggressive GC on Delta (PageStorage) Use an adaptive aggressive GC strategy on Delta (PageStorage) Mar 12, 2021
@JaySon-Huang JaySon-Huang added the type/bugfix This PR fixes a bug. label Mar 12, 2021
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

Copy link
Contributor

@flowbehappy flowbehappy left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 12, 2021
JaySon-Huang and others added 3 commits March 12, 2021 23:25
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang JaySon-Huang added the status/can-merge Indicates a PR has been approved by a committer. label Mar 12, 2021
@ti-srebot
Copy link
Collaborator

/run-all-tests

@JaySon-Huang
Copy link
Contributor Author

/rebuild

@ti-srebot ti-srebot merged commit 1769158 into pingcap:master Mar 12, 2021
@JaySon-Huang JaySon-Huang deleted the page_storage_ctl branch March 12, 2021 20:01
@ti-srebot
Copy link
Collaborator

cherry pick to release-4.0 in PR #1553

JaySon-Huang added a commit that referenced this pull request Mar 15, 2021
…#1553)

* cherry pick #1552 to release-4.0
* Fix conflict

Co-authored-by: JaySon-Huang <jayson.hjs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-cherry-pick-release-4.0 PR which needs to be cherry-picked to release-4.0 status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TiFlash OOM because of too many legacy PageFile are not GC

3 participants