impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] PREVIEW: IMPALA-4678: port backend exec to use buffer pool
Date Thu, 26 Jan 2017 21:07:45 GMT
Tim Armstrong has uploaded a new change for review.

Change subject: PREVIEW: IMPALA-4678: port backend exec to use buffer pool

PREVIEW: IMPALA-4678: port backend exec to use buffer pool

Create global BufferPool at startup.

Each ExecNode has to declare its memory requirements at Prepare() time.
ExecNodes that will use buffers get a ReservationTracker and BufferPool

Convert BufferedTupleStream and HashTable to use the new BufferPool.
The HashTable uses it indirectly via a Suballocator.

Make PAGG memory consumption more efficient (avoid wasting buffers):
* Allow preaggs to execute with 0 reservation - if streams and hash tables
  cannot be allocated, it will pass through rows.
* Halve the buffer requirement for spilling aggs - avoid allocating
  buffers for aggregated and unaggregated streams simultaneously.

Convert Sorter to use BufferPool.

Update TestEnv to support creating BufferPool with parameters. This
required some refactoring of the interface.

* Updated tests to reflect new memory requirements
* TODO: more tests to exercise new code paths

Change-Id: I7fc7fe1c04e9dfb1a0c749fb56a5e0f2bf9c6c3e
M be/src/exec/
M be/src/exec/analytic-eval-node.h
M be/src/exec/
M be/src/exec/exec-node.h
M be/src/exec/
M be/src/exec/
M be/src/exec/hash-table.h
M be/src/exec/
M be/src/exec/
M be/src/exec/partitioned-aggregation-node.h
M be/src/exec/
M be/src/exec/partitioned-hash-join-builder.h
M be/src/exec/
M be/src/exec/
M be/src/exec/partitioned-hash-join-node.h
M be/src/exec/
M be/src/exec/sort-node.h
M be/src/runtime/CMakeLists.txt
D be/src/runtime/
D be/src/runtime/
D be/src/runtime/buffered-block-mgr.h
M be/src/runtime/
M be/src/runtime/
M be/src/runtime/buffered-tuple-stream.h
M be/src/runtime/buffered-tuple-stream.inline.h
M be/src/runtime/bufferpool/
M be/src/runtime/
M be/src/runtime/
M be/src/runtime/exec-env.h
M be/src/runtime/
M be/src/runtime/
M be/src/runtime/query-state.h
M be/src/runtime/
M be/src/runtime/row-batch.h
M be/src/runtime/runtime-filter.h
M be/src/runtime/
M be/src/runtime/runtime-state.h
M be/src/runtime/
M be/src/runtime/sorter.h
M be/src/runtime/
M be/src/runtime/test-env.h
M be/src/runtime/
M be/src/service/
M be/src/service/query-options.h
M be/src/util/bloom-filter.h
M be/src/util/memory-metrics.h
M common/thrift/ImpalaInternalService.thrift
M common/thrift/ImpalaService.thrift
M testdata/workloads/functional-query/queries/QueryTest/analytic-fns.test
M testdata/workloads/functional-query/queries/QueryTest/runtime_row_filters_phj.test
M testdata/workloads/functional-query/queries/QueryTest/spilling.test
D tests/custom_cluster/
M tests/query_test/
M tests/query_test/
A tests/query_test/
55 files changed, 2,076 insertions(+), 5,299 deletions(-)

  git pull ssh:// refs/changes/01/5801/1
To view, visit
To unsubscribe, visit

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7fc7fe1c04e9dfb1a0c749fb56a5e0f2bf9c6c3e
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <>

View raw message