marin-ma commented on code in PR #6869:
URL: https://github.com/apache/incubator-gluten/pull/6869#discussion_r1730495905
##########
cpp/velox/shuffle/VeloxSortShuffleWriter.cc:
##########
@@ -106,8 +104,17 @@ arrow::Status VeloxSortShuffleWriter::init() {
options_.partitioning == Partitioning::kSingle,
arrow::Status::Invalid("VeloxSortShuffleWriter doesn't support single
partition."));
allocateMinimalArray();
- sortedBuffer_ =
facebook::velox::AlignedBuffer::allocate<char>(kSortedBufferSize,
veloxPool_.get());
- rawBuffer_ = sortedBuffer_->asMutable<uint8_t>();
+ // In Spark, sortedBuffer_ memory and compressionBuffer_ memory are
pre-allocated and counted into executor
+ // memory overhead. To align with Spark, we use arrow::default_memory_pool()
to avoid counting these memory in Gluten.
Review Comment:
@FelixYBW arrow::default_memory_pool is used to allocate the sort buffer
and compress buffer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]