From 47284f0aaadada152de7523ed30f37d44b654a94 Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Tue, 14 Nov 2023 01:21:45 +0800 Subject: [PATCH] 6 --- be/src/runtime/memory/mem_tracker_limiter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/be/src/runtime/memory/mem_tracker_limiter.cpp b/be/src/runtime/memory/mem_tracker_limiter.cpp index 4b029eccbd8c7c..ad90df81145e44 100644 --- a/be/src/runtime/memory/mem_tracker_limiter.cpp +++ b/be/src/runtime/memory/mem_tracker_limiter.cpp @@ -163,18 +163,18 @@ void MemTrackerLimiter::make_process_snapshots(std::vector snapshot.peak_consumption = -1; (*snapshots).emplace_back(snapshot); - snapshot.type = "process virtual memory (from /proc VmSize VmPeak)"; + snapshot.type = "process resident memory (from /proc VmRSS VmHWM)"; snapshot.label = ""; snapshot.limit = -1; - snapshot.cur_consumption = PerfCounters::get_vm_size(); - snapshot.peak_consumption = PerfCounters::get_vm_peak(); + snapshot.cur_consumption = PerfCounters::get_vm_rss(); + snapshot.peak_consumption = PerfCounters::get_vm_hwm(); (*snapshots).emplace_back(snapshot); - snapshot.type = "process resident memory (from /proc VmRSS VmHWM)"; + snapshot.type = "process virtual memory (from /proc VmSize VmPeak)"; snapshot.label = ""; snapshot.limit = -1; - snapshot.cur_consumption = PerfCounters::get_vm_rss(); - snapshot.peak_consumption = PerfCounters::get_vm_hwm(); + snapshot.cur_consumption = PerfCounters::get_vm_size(); + snapshot.peak_consumption = PerfCounters::get_vm_peak(); (*snapshots).emplace_back(snapshot); }