yiguolei commented on code in PR #61271:
URL: https://github.com/apache/doris/pull/61271#discussion_r2964962185
##########
be/src/exec/scan/scanner_context.cpp:
##########
@@ -52,11 +52,82 @@ namespace doris {
using namespace std::chrono_literals;
#include "common/compile_check_begin.h"
+// ==================== ScannerMemShareArbitrator ====================
+static constexpr int64_t DEFAULT_SCANNER_MEM_BYTES = 64 * 1024 * 1024; // 64MB
default
+
+ScannerMemShareArbitrator::ScannerMemShareArbitrator(const TUniqueId& qid,
int64_t query_mem_limit,
Review Comment:
这个query mem limit 可能会动态调整,所以这里不能保存下来。
我们这里可以引用一个query 的memtracker 。
但是我感觉我们还是没设计好,比如我们的memory arbitrator 应该是有层次的,比如每个query 有一个query
级别的MemoryArbitator,然后每个operator 还有一个operator 级别的。
--
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]