From 9519278c5e300ff2f1655572b4cdd53b09ab1813 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 25 Jun 2025 09:03:14 +0200 Subject: [PATCH] nix: remove mem_pct from loadtest monitor --- nix/tools/merge_monitor_result.py | 2 +- nix/tools/monitor_pid.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/nix/tools/merge_monitor_result.py b/nix/tools/merge_monitor_result.py index 2a6adcb76..f96d3283d 100644 --- a/nix/tools/merge_monitor_result.py +++ b/nix/tools/merge_monitor_result.py @@ -3,7 +3,7 @@ import sys import pandas as pd KEY = "Elapsed seconds" -BASE_METRICS = ["CPU (%)", "MEM (%)", "Real (MB)"] +BASE_METRICS = ["CPU (%)", "Real (MB)"] branch_order = [] merged = None diff --git a/nix/tools/monitor_pid.py b/nix/tools/monitor_pid.py index 07a175e95..bee6d8c56 100644 --- a/nix/tools/monitor_pid.py +++ b/nix/tools/monitor_pid.py @@ -5,7 +5,7 @@ import psutil import pandas as pd KEY = "Elapsed seconds" -BASE_METRICS = ["CPU (%)", "MEM (%)", "Real (MB)"] +BASE_METRICS = ["CPU (%)", "Real (MB)"] SAMPLE_INTERVAL_SECS = 1 if len(sys.argv) != 2 or not sys.argv[1].isdigit(): @@ -33,7 +33,6 @@ while True: elapsed_secs = int(time.time() - start) cpu = proc.cpu_percent(None) - mem_pct = proc.memory_percent() meminfo = proc.memory_info() bytes_in_MB = 1024**2 rss_mb = meminfo.rss / bytes_in_MB @@ -42,7 +41,6 @@ while True: [ str(elapsed_secs), f"{cpu:.3f}", - f"{mem_pct:.3f}", f"{rss_mb:.3f}", ] )