yiguolei commented on code in PR #22027: URL: https://github.com/apache/doris/pull/22027#discussion_r1270215832
########## be/src/runtime/memory/thread_mem_tracker_mgr.h: ########## @@ -173,10 +173,13 @@ inline void ThreadMemTrackerMgr::consume(int64_t size) { } // Large memory alloc should use allocator.h // Direct malloc or new large memory, unable to catch std::bad_alloc, BE may OOM. - if (size > 1024l * 1024 * 1024 && !doris::config::disable_memory_gc) { // 1G + if (large_memory_check && size > 1024l * 1024 * 1024 && Review Comment: 把这个1G 改为config 中的参数吧 ########## be/src/runtime/memory/thread_mem_tracker_mgr.h: ########## @@ -173,10 +173,13 @@ inline void ThreadMemTrackerMgr::consume(int64_t size) { } // Large memory alloc should use allocator.h // Direct malloc or new large memory, unable to catch std::bad_alloc, BE may OOM. - if (size > 1024l * 1024 * 1024 && !doris::config::disable_memory_gc) { // 1G + if (large_memory_check && size > 1024l * 1024 * 1024 && Review Comment: 把这个1G 改为config 中的参数吧 -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org