We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce90e4 commit e4bc029Copy full SHA for e4bc029
src/lib/homestore_backend/gc_manager.cpp
@@ -88,8 +88,8 @@ bool GCManager::is_eligible_for_gc(std::shared_ptr< HeapChunkSelector::ExtendedV
88
}
89
90
void GCManager::scan_chunks_for_gc() {
91
- // in every iteration, we will select at most RESERVED_CHUNK_NUM_PER_PDEV gc tasks
92
- auto max_task_num = RESERVED_CHUNK_NUM_PER_PDEV;
+ // in every iteration, we will select at most 2 * RESERVED_CHUNK_NUM_PER_PDEV gc tasks
+ auto max_task_num = 2 * (RESERVED_CHUNK_NUM_PER_PDEV - RESERVED_CHUNK_NUM_DEDICATED_FOR_EGC);
93
94
for (const auto& [_, chunk] : m_chunk_selector->get_all_chunks()) {
95
if (is_eligible_for_gc(chunk)) {
0 commit comments