Skip to content

Commit

Permalink
Remove useless experimental configurations of read thread pool. (#5730)
Browse files Browse the repository at this point in the history
ref #5689
  • Loading branch information
JinheLin authored Aug 30, 2022
1 parent a8c8cb1 commit 6056cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions dbms/src/Interpreters/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ struct Settings
\
M(SettingDouble, dt_page_gc_threshold, 0.5, "Max valid rate of deciding to do a GC in PageStorage") \
M(SettingBool, dt_enable_read_thread, false, "Enable storage read thread or not") \
M(SettingDouble, dt_block_slots_scale, 1.0, "Block slots limit of a read request") \
M(SettingDouble, dt_active_segments_scale, 1.0, "Acitve segments limit of a read request") \
\
M(SettingChecksumAlgorithm, dt_checksum_algorithm, ChecksumAlgo::XXH3, "Checksum algorithm for delta tree stable storage") \
M(SettingCompressionMethod, dt_compression_method, CompressionMethod::LZ4, "The method of data compression when writing.") \
Expand Down
6 changes: 2 additions & 4 deletions dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ int64_t SegmentReadTaskPool::decreaseUnorderedInputStreamRefCount()

int64_t SegmentReadTaskPool::getFreeBlockSlots() const
{
double block_slots_scale = dm_context->db_context.getSettingsRef().dt_block_slots_scale;
auto block_slots = static_cast<int64_t>(std::ceil(unordered_input_stream_ref_count.load(std::memory_order_relaxed) * block_slots_scale));
auto block_slots = unordered_input_stream_ref_count.load(std::memory_order_relaxed);
if (block_slots < 3)
{
block_slots = 3;
Expand All @@ -233,8 +232,7 @@ int64_t SegmentReadTaskPool::getFreeBlockSlots() const

int64_t SegmentReadTaskPool::getFreeActiveSegmentCountUnlock()
{
double active_segments_scale = dm_context->db_context.getSettingsRef().dt_active_segments_scale;
auto active_segment_limit = static_cast<int64_t>(std::ceil(unordered_input_stream_ref_count.load(std::memory_order_relaxed) * active_segments_scale));
auto active_segment_limit = unordered_input_stream_ref_count.load(std::memory_order_relaxed);
if (active_segment_limit < 2)
{
active_segment_limit = 2;
Expand Down

0 comments on commit 6056cc0

Please sign in to comment.