yiguolei commented on code in PR #34985:
URL: https://github.com/apache/doris/pull/34985#discussion_r1605698375


##########
be/src/common/daemon.cpp:
##########
@@ -247,33 +248,35 @@ void Daemon::memory_gc_thread() {
             continue;
         }
         auto sys_mem_available = doris::MemInfo::sys_mem_available();
-        auto proc_mem_no_allocator_cache = 
doris::MemInfo::proc_mem_no_allocator_cache();
+        auto proc_mem_corrected = 
doris::GlobalMemoryArbitrator::proc_mem_corrected();
 
         // GC excess memory for resource groups that not enable overcommit
-        auto tg_free_mem = doris::MemInfo::tg_not_enable_overcommit_group_gc();
+        auto tg_free_mem = doris::MemInfo::tg_disable_overcommit_group_gc();
         sys_mem_available += tg_free_mem;
-        proc_mem_no_allocator_cache -= tg_free_mem;
+        proc_mem_corrected -= tg_free_mem;

Review Comment:
   proc_mem_corrected  这个名字太难懂了



-- 
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

Reply via email to