Using File System "Punch Hole" API for GC #313
Open
v01dstar wants to merge 23 commits intotikv:masterfrom
Open
Using File System "Punch Hole" API for GC #313v01dstar wants to merge 23 commits intotikv:masterfrom
v01dstar wants to merge 23 commits intotikv:masterfrom
Conversation
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Member
|
@v01dstar Please add design doc PR for this large change. |
Signed-off-by: tonyxuqqi <tonyxuqi@outlook.com>
Signed-off-by: tonyxuqqi <tonyxuqi@outlook.com>
Signed-off-by: tonyxuqqi <tonyxuqi@outlook.com>
Signed-off-by: tonyxuqqi <tonyxuqi@outlook.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
64929a4 to
ef34a73
Compare
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Signed-off-by: v01dstar <yang.zhang@pingcap.com>
Connor1996
reviewed
May 22, 2024
| AddBlobResultsToBase(contexts); | ||
|
|
||
| if (s.ok() && ok()) { | ||
| TITAN_LOG_INFO(db_options_.info_log, |
Connor1996
reviewed
May 22, 2024
| // file whose discardable ratio is less or equal to 100%. | ||
| static const std::string kNumDiscardableRatioLE100File; | ||
|
|
||
| static const std::string kNumHolePunchableBlocks; |
Connor1996
reviewed
May 23, 2024
| bg_gc_running_++; | ||
| bg_gc_scheduled_++; | ||
|
|
||
| s = BackgroundGC(&log_buffer, column_family_id); |
Member
There was a problem hiding this comment.
why don't reuse BackgroundGC anymore?
| LogFlush(db_options_.info_log.get()); | ||
| mutex_.Lock(); | ||
| bool run_punch_hole_gc = false; | ||
| if (scheduled_punch_hole_gc_ != nullptr && !punch_hole_gc_running_) { |
Member
There was a problem hiding this comment.
Can we separate the punch hole code path with the normal GC for brevity?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.