From 89e2678f4e32a6e212e49019cab1ff0eb54e93b7 Mon Sep 17 00:00:00 2001 From: Jerry Hu Date: Tue, 12 Jul 2022 22:20:02 +0800 Subject: [PATCH] [improvement]Increase min_ht_mem of StreamingHtMinReductionEntry (#10787) --- be/src/vec/exec/vaggregation_node.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/be/src/vec/exec/vaggregation_node.cpp b/be/src/vec/exec/vaggregation_node.cpp index c1de52de25..62e3e415b3 100644 --- a/be/src/vec/exec/vaggregation_node.cpp +++ b/be/src/vec/exec/vaggregation_node.cpp @@ -65,9 +65,11 @@ static constexpr StreamingHtMinReductionEntry STREAMING_HT_MIN_REDUCTION[] = { // Expand up to L2 cache always. {0, 0.0}, // Expand into L3 cache if we look like we're getting some reduction. - {256 * 1024, 1.1}, + // At present, The L2 cache is generally 1024k or more + {1024 * 1024, 1.1}, // Expand into main memory if we're getting a significant reduction. - {2 * 1024 * 1024, 2.0}, + // The L3 cache is generally 16MB or more + {16 * 1024 * 1024, 2.0}, }; static constexpr int STREAMING_HT_MIN_REDUCTION_SIZE =