From 3e3646f9f9504e83d026779ad3cccae82dee3e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sou=C5=A1ek?= Date: Wed, 13 May 2026 19:03:54 +0200 Subject: [PATCH] perf: ignore LACT devices reporting zero VRAM (#753) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore LACT devices that report zero total VRAM. Some virtual GPUs on headless VMs report `MemTotalMB == 0` through LACT, which makes them appear in performance monitoring despite not providing useful memory data. Skip those entries so only usable GPU devices are reported. This makes performance monitoring cleaner on headless VMs with virtual GPUs that report zero VRAM. Co-authored-by: David SouĊĦek --- internal/perf/monitor_unix.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/perf/monitor_unix.go b/internal/perf/monitor_unix.go index fe178505..36b58944 100644 --- a/internal/perf/monitor_unix.go +++ b/internal/perf/monitor_unix.go @@ -106,6 +106,9 @@ func tryLACT(ctx context.Context, every time.Duration, logger *logmon.Monitor) ( if err != nil { continue } + if stat.MemTotalMB == 0 { + continue + } stats = append(stats, stat) } conn.Close()