Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev-1.1.2](memory) Default STRICT_MEMORY_USE reduce hash table memory #11944

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion be/src/vec/common/hash_table/hash_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down