xinyiZzz commented on code in PR #16083: URL: https://github.com/apache/doris/pull/16083#discussion_r1089592653
########## be/src/util/mem_info.cpp: ########## @@ -127,6 +133,18 @@ void MemInfo::process_full_gc() { return; } freed_mem += MemTrackerLimiter::free_top_memory_query(_s_process_full_gc_size - freed_mem); + if (freed_mem > _s_process_full_gc_size) { + return; + } + if (config::enable_query_memroy_overcommit) { + freed_mem += MemTrackerLimiter::free_top_overcommit_query( + _s_process_full_gc_size - freed_mem, MemTrackerLimiter::Type::LOAD); + if (freed_mem > _s_process_full_gc_size) { + return; + } + } + freed_mem += MemTrackerLimiter::free_top_memory_query(_s_process_full_gc_size - freed_mem, Review Comment:  This problem will not exist, because cancel query first, then cancel load. And first cancel top overcommit, then cancel top meory. cancel top overcommit query in minor gc. full gc: ``` // step1: free all cache // step2: free top memory query // step3: free top overcommit load // step4: free top memory load ``` -- 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