This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
     new 642abd91b3 [dev-1.1.2](memory) Default STRICT_MEMORY_USE reduce hash 
table memory #11944
642abd91b3 is described below

commit 642abd91b362089d066299dd37329e8b94209031
Author: Xinyi Zou <zouxiny...@gmail.com>
AuthorDate: Mon Aug 22 08:45:48 2022 +0800

    [dev-1.1.2](memory) Default STRICT_MEMORY_USE reduce hash table memory 
#11944
---
 be/src/vec/common/hash_table/hash_table.h | 2 +-
 build.sh                                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/common/hash_table/hash_table.h 
b/be/src/vec/common/hash_table/hash_table.h
index a60e71e42b..ed59476083 100644
--- a/be/src/vec/common/hash_table/hash_table.h
+++ b/be/src/vec/common/hash_table/hash_table.h
@@ -244,7 +244,7 @@ template <size_t initial_size_degree = 10>
 struct HashTableGrower {
     /// The state of this structure is enough to get the buffer size of the 
hash table.
     doris::vectorized::UInt8 size_degree = initial_size_degree;
-    doris::vectorized::Int64 double_grow_degree = 31; // 2GB
+    doris::vectorized::Int64 double_grow_degree = 26; // 64M
 
     /// The size of the hash table in the cells.
     size_t buf_size() const { return 1ULL << size_degree; }
diff --git a/build.sh b/build.sh
index c58dfc61bc..ad0cf680b0 100755
--- a/build.sh
+++ b/build.sh
@@ -223,7 +223,7 @@ if [[ -z ${USE_MEM_TRACKER} ]]; then
     USE_MEM_TRACKER=ON
 fi
 if [[ -z ${STRICT_MEMORY_USE} ]]; then
-    STRICT_MEMORY_USE=OFF
+    STRICT_MEMORY_USE=ON
 fi
 
 echo "Get params:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to