Skip to content

Commit

Permalink
[GLUTEN-6864][VL] Set a Velox gflag to allow growing buffer created i…
Browse files Browse the repository at this point in the history
…n another Velox task
  • Loading branch information
zhztheplayer committed Aug 20, 2024
1 parent c3e9677 commit df97098
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/velox/compute/VeloxBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
DECLARE_bool(velox_exception_user_stacktrace_enabled);
DECLARE_int32(velox_memory_num_shared_leaf_pools);
DECLARE_bool(velox_memory_use_hugepages);
DECLARE_bool(velox_memory_pool_capacity_transfer_across_tasks);
DECLARE_int32(cache_prefetch_min_pct);

DECLARE_int32(gluten_velox_aysnc_timeout_on_task_stopping);
Expand Down Expand Up @@ -87,6 +88,9 @@ void VeloxBackend::init(const std::unordered_map<std::string, std::string>& conf
FLAGS_logtostderr = true;
google::InitGoogleLogging("gluten");

// Allow growing buffer in another task through its memory pool.
FLAGS_velox_memory_pool_capacity_transfer_across_tasks = true;

// Avoid creating too many shared leaf pools.
FLAGS_velox_memory_num_shared_leaf_pools = 0;

Expand Down

0 comments on commit df97098

Please sign in to comment.