A GPU task manager for Windows, Linux, and WSL: per-process VRAM, GPU activity, and LLM model/KV-cache insights (Windows AMD and NVIDIA).
Python
Separate integrated Intel shared memory
Scott Hanselman7fc9b54fab43
diff --git a/README.md b/README.mdindex faeba02..b0a8096 100644--- a/README.md+++ b/README.md@@ -77,10 +77,13 @@ During desktop/browser activity, WDDM reported per-process VRAM and AMD ADL repoclocks, and ASIC power; temperature, memory activity, and PCIe readings were unavailable. Vulkan/ROCmworkloads were not tested on this machine.-Intel Arc on Windows can use WDDM's per-process memory and engine counters. When those counters are-available, the device GPU activity is the busiest WDDM engine after combining its process counters.-Intel temperature, power, clocks, and memory activity are not currently available on Windows.-Arc B580 behavior is covered by mocked counters but has not been validated on Intel hardware.+Intel adapters on Windows can use WDDM's per-process memory and engine counters. When those counters are+available, device GPU activity is the busiest WDDM engine after combining its process counters. An Intel+adapter reporting at most 512 MiB of dedicated memory and more shared system memory is treated as integrated:+per-process local usage is shown as Shared RAM, not VRAM, while device dedicated and shared counters remain+separate. This is a DXGI-capacity heuristic. Intel temperature, power, clocks, and memory activity are not+currently available on Windows. Arc B580 behavior is covered by mocked counters but has not been validated+on Intel hardware.Install [Git for Windows](https://git-scm.com/downloads/win) and[uv](https://docs.astral.sh/uv/getting-started/installation/) if needed. With WinGet:@@ -202,15 +205,15 @@ kernel already exposes what's needed.| Per-process VRAM and GTT | `drm-resident-vram` / `drm-resident-gtt` (older kernels: `drm-memory-*`) and `drm-shared-*` in `/proc/<pid>/fdinfo/<fd>` || Per-process engine load (gfx, compute, video) | `drm-engine-*` busy time, sampled twice (`n/a` until a new client has two samples); `n/a` for ROCm/HIP processes (see below) |-GTT is GPU-accessible system RAM, so it fills the SPILL column (and `shared (in system RAM)` for+GTT is GPU-accessible system RAM, so it fills the Shared column (and `shared (in system RAM)` forthe device), like WDDM's non-local usage. On an APU (an integrated GPU, detected by amdgpu notreporting a VRAM vendor, a heuristic validated on one APU) GTT is the GPU's normal memory and "VRAM"is only a RAM carve-out, so GTT is still shown but never flagged as spill, and an LLM's memory is itsVRAM plus GTT. The SDMA engine (`dma`) fills the COPY column. Paged stays blank: there is no commit-counter. VRAM and SPILL are charged to a process only when nothing else can hold its bytes: each of+counter. VRAM and Shared are charged to a process only when nothing else can hold its bytes: each ofits DRM clients has exactly one visible holder, was opened through a render node (`/dev/dri/renderD*`),and reports zero bytes in every `drm-shared-*` region. Then its resident VRAM and GTT are its own and add-up without double counting. Otherwise the process shows VRAM and SPILL as `n/a` (`null` in JSON, with+up without double counting. Otherwise the process shows VRAM and Shared as `n/a` (`null` in JSON, with`vram_unattributed_reason`) and its bytes stay in *unattributed*:- **Shared client** (fd passing, fork; 1Password and its crash handler on the test desktop): one set of@@ -262,7 +265,7 @@ covered by unit tests only and **not yet validated on AMD hardware**.| Device VRAM total | The size of the local-memory PCI window (`resource2`), an **estimate**: kernel-owned memory is missing from the sysfs view, resizable BAR rounds to a power of two, and a partial window can be smaller than the card, so the total can differ from the card's memory. A window under 1 GiB (an integrated GPU, or a discrete card without resizable BAR) shows `N/A` (`null` in JSON). Free memory is never shown for Intel || Device VRAM used | The sum of its clients' resident memory: i915 has no device-wide counter, so buffers shared between processes can be counted twice, and kernel-owned memory and processes gputaskman can't inspect are missing. Local memory on a discrete card, system memory on an integrated GPU. The UI, `--once`, `--json` (`memory_note`) and `gputaskman diff` all say so. `n/a` when any client's memory is unknown || Integrated or discrete | An iGPU has no `local0`, so a card with a local-memory window of 1 GiB or more is discrete, and so is any card whose fdinfo reports local memory, even when its window is smaller |-| Per-process VRAM and SPILL | `drm-resident-local0` and `drm-resident-system0`, plus their `stolen-` regions (the firmware-reserved part of each), under the same private-client rules as AMD. On an integrated GPU there is no local memory: a provably private client's `system0` bytes are its GPU memory in the VRAM column, and SPILL stays `N/A` (system memory is its memory, not spill). On a discrete card `system0` is memory the GPU's buffers currently sit in, including buffers placed there on purpose, so SPILL there (like AMD's GTT) is where they are, not proof they were pushed out of VRAM. The shared gate needs only the regions the device has, so a discrete card with a missing `drm-shared-local0` still shows `n/a` (`legacy`), while an integrated client with shared buffers shows `n/a` (`shared_buffers`). A region value that can't be parsed makes that figure `n/a`, not a smaller number |+| Per-process VRAM and Shared | `drm-resident-local0` and `drm-resident-system0`, plus their `stolen-` regions (the firmware-reserved part of each), under the same private-client rules as AMD. On an integrated GPU there is no local memory: a provably private client's `system0` bytes are its GPU memory in the VRAM column, and Shared stays `N/A` (system memory is its memory, not spill). On a discrete card `system0` is memory the GPU's buffers currently sit in, including buffers placed there on purpose, so Shared there (like AMD's GTT) is where they are, not proof they were pushed out of VRAM. The shared gate needs only the regions the device has, so a discrete card with a missing `drm-shared-local0` still shows `n/a` (`legacy`), while an integrated client with shared buffers shows `n/a` (`shared_buffers`). A region value that can't be parsed makes that figure `n/a`, not a smaller number || Per-process engine load (3d, compute, copy, video) | `drm-engine-render`, `-compute`, `-copy`, `-video`, `-video-enhance` busy time, sampled twice. `n/a` where the driver reports none (before Gen 8). A class with several identical engines (`drm-engine-capacity-*`, such as video on an Arc) is not divided by its capacity, so one busy engine reads 100% |Device memory bandwidth and the PCIe link are `n/a`: i915 has no device-wide bandwidth counter, and its@@ -308,7 +311,7 @@ through the same PDH array API as the Windows backend and streams them back once- **WSL VM (`vmwp.exe`)** is the exact total of Linux GPU memory, across every distro, WSLg, andDocker Desktop.-- **Windows apps** appear as `W:<pid>` rows with their VRAM, spill, paged, and engine load.+- **Windows apps** appear as `W:<pid>` rows with their VRAM, shared system memory, paged, and engine load.Windows and Linux PIDs are separate namespaces, so the prefix keeps them apart.- **Linux rows** get a size by matching `vmwp.exe`'s GPU contexts to Linux processes (below).@@ -450,7 +453,7 @@ with the workload; the examples are not benchmarks.-**GPU-accessible system RAM, sorted by the Spill column**+**GPU-accessible system RAM, sorted by the Shared column**@@ -476,7 +479,7 @@ uv run --locked gputaskman --help| Key | Action ||---|---|| Up / Down | Select a process and inspect it |-| `s` | Cycle sort: VRAM, GPU%, spill, paged, name (then RAM, CPU% unless `--no-system`) |+| `s` | Cycle sort: VRAM, GPU%, shared system memory, paged, name (then RAM, CPU% unless `--no-system`) || `c` | Cycle all charts or a single metric (also available in the **Charts** dropdown) || `a` | Switch between top and all collected processes || `m` | Toggle full diagnostics / slim monitoring |diff --git a/src/gputaskman/app.py b/src/gputaskman/app.pyindex 67f7897..3c5cef9 100644--- a/src/gputaskman/app.py+++ b/src/gputaskman/app.py@@ -22,7 +22,7 @@ from .host import HostSample, HostSamplerfrom .llm import gb, redact_cmdlinefrom .nvml import NvDevice, format_metricfrom .recovery import LiveCollectors-from .report import (DRM_RESIDENT_NOTE, METAL_NOTE, WSL_EMPTY, drm_note, has_engine_counters, has_spill_counters, has_wddm_counters,+from .report import (DRM_RESIDENT_NOTE, METAL_NOTE, WSL_EMPTY, drm_note, has_engine_counters, has_shared_counters, has_wddm_counters,inferred_note, intel_memory_note, vram_label, vram_total_label, wsl_note)KIND_STYLE = {@@ -68,7 +68,7 @@ This display-only choice applies to all GPUs and resets to full when the app res| Layer | Source | Works for ||---|---|---|| **Device** telemetry | NVML, AMD ADL, optional AMD SMI, Intel WDDM activity on Windows; amdgpu or Intel (i915) sysfs on Linux | availability varies by GPU and driver |-| **Per-process** VRAM, spill to RAM, per-engine load | Windows WDDM counters (dxgkrnl); DRM fdinfo for amdgpu or Intel (i915) on Linux | workloads visible to WDDM or DRM |+| **Per-process** VRAM, shared RAM, per-engine load | Windows WDDM counters (dxgkrnl); DRM fdinfo for amdgpu or Intel (i915) on Linux | workloads visible to WDDM or DRM || **Which runtime** (CUDA, HIP, Vulkan, D3D12, ggml, ONNX, PyTorch...) | DLLs mapped in the process | everything || **Which model file** | memory-mapped files + command line | llama.cpp, stable-diffusion.cpp, LM Studio, Ollama || **Model name & kind** (LLM, decision, embedding, speech) | GGUF header, Ollama/LM Studio/Hugging Face stores, local server APIs | GGUF family |@@ -88,16 +88,16 @@ GGUF kind is missing. It does not confirm the kind, GPU residency, or execution.candidates remain unproven; engine activity is measured per process, not per model.**Linux / WSL:** on native Linux, per-process VRAM and SM/encoder/decoder load come from NVML-(no spill or commit counters exist there, so those columns stay blank). **AMD GPUs on Linux**+(no shared-memory or commit counters exist there, so those columns stay blank). **AMD GPUs on Linux**(`amdgpu`) use sysfs for the device and DRM fdinfo (`/proc/<pid>/fdinfo`) per process: VRAM,-GTT (GPU memory in system RAM, shown as SPILL), and gfx/compute/video engine time (`n/a` for a new client's+GTT (GPU memory in system RAM, shown as Shared), and gfx/compute/video engine time (`n/a` for a new client'sfirst sample and for ROCm/HIP processes: their compute runs on `/dev/kfd` queues the kernel doesn't time per-process). VRAM and SPILL are charged to a process only when its DRM clients are provably private: one holder,+process). VRAM and Shared are charged to a process only when its DRM clients are provably private: one holder,opened through a render node, and no shared buffers. Otherwise they show `n/a` and the bytes stay unattributed;the inspector still shows the resident bytes it can reach (shared buffers included, so not added up). **Intel GPUson Linux** (`i915`) take the same path: sysfs for the device (actual GT clock, throttle reasons), fdinfo for engine load and, on a discrete Arc, local-memory-VRAM. On an integrated GPU a provably private client's system memory is its GPU memory in the VRAM column (SPILL stays-`N/A`: system memory is its memory there, not spill); shared clients show `n/a`, with the resident bytes still in the inspector.+VRAM. On an integrated GPU a provably private client's system memory is its GPU memory in the VRAM column (Shared stays+`N/A`: system memory is its memory there); shared clients show `n/a`, with the resident bytes still in the inspector.`xe` cards are detected but their per-process fdinfo isn'tdecoded yet (rows show `n/a`). With no device-wide memory counter, an Intel card's VRAM used is a sum over the processesit can inspect (local memory on a discrete card, system memory on an integrated GPU; shared buffers can be counted twice; kernel-owned memory and uninspectable processes are missing), its total is@@ -118,7 +118,7 @@ NVIDIA driver, owns video memory, so NVML can't attribute it to processes. The Wprocess can *see*, so dwm can show nearly the whole card. VRAM here is what's charged to eachprocess ("Local Usage" when available). The adapter counter is the total, not the sum of rows.-**SPILL** = GPU-accessible system RAM. This can include pinned host buffers or intentional+**Shared** = GPU-accessible system RAM. This can include pinned host buffers or intentionalallocations, not just overflow. Large usage under VRAM pressure can indicate fallback;the counter alone does not prove it.@@ -215,7 +215,7 @@ class GpuTaskManager(App):Binding("question_mark", "help", "Explain"),]SORTS = [("VRAM", lambda r: -(r.gpu.shown_vram or 0)), ("GPU%", lambda r: -r.gpu.gpu_pct),- ("spill", lambda r: -r.gpu.shared), ("paged", lambda r: -r.gpu.paged_out),+ ("Shared", lambda r: -r.gpu.shared), ("paged", lambda r: -r.gpu.paged_out),("name", lambda r: r.name.lower())]SYSTEM_SORTS = [("RAM", lambda r: (r.ram is None, -(r.ram or 0))), # unknown last; a measured 0 is not unknown("CPU%", lambda r: (r.cpu is None, -(r.cpu or 0)))]@@ -297,7 +297,7 @@ class GpuTaskManager(App):def on_mount(self) -> None:t = self.query_one("#procs", DataTable)- cols = ["PID", "Process", "Kind", "Runtime", "VRAM", "Spill", "Paged", "GPU%", "3D", "Copy", "Video"]+ cols = ["PID", "Process", "Kind", "Runtime", "VRAM", "Shared", "Paged", "GPU%", "3D", "Copy", "Video"]if self.system:cols += ["RAM", "CPU%"]for col in (*cols, "What's inside"):@@ -729,12 +729,12 @@ class GpuTaskManager(App):wddm = has_wddm_counters(s, r)engines = has_engine_counters(s, r)split = engines and s.backend != "metal" # Metal reports one GPU time, no per-engine split- spill = Text(gb(r.gpu.shared) if has_spill_counters(s, r) and r.gpu.shared >= 1 << 20 else "", justify="right",+ shared = Text(gb(r.gpu.shared) if has_shared_counters(s, r) and r.gpu.shared >= 1 << 20 else "", justify="right",style="bold red" if r.gpu.shared >= 256 << 20 and r.kind in ("LLM", "AI") and s.shared_is_spillelse "yellow")paged = Text(gb(r.gpu.paged_out) if wddm and r.gpu.paged_out >= 1 << 20 else "", justify="right", style="grey62")if (wddm or (s.backend == "drm" and not r.host)) and "shared" not in r.gpu.available:- spill = Text("n/a", justify="right", style="grey62")+ shared = Text("n/a", justify="right", style="grey62")if wddm and not r.gpu.paged_available:paged = Text("n/a", justify="right", style="grey62")system_cells = []@@ -747,7 +747,7 @@ class GpuTaskManager(App):Text(r.name),Text(r.kind, style=KIND_STYLE.get(r.kind, "")),Text(" ".join(r.detail.runtimes[:3]), style="grey70"),- Text(vram_label(r.gpu), justify="right", style="bold" if r.gpu.attributed else "grey62"), spill, paged,+ Text(vram_label(r.gpu), justify="right", style="bold" if r.gpu.attributed else "grey62"), shared, paged,pct(r.gpu.gpu_pct if engines else None),pct(e.get("3d", 0) + e.get("compute", 0) if split else None),pct(e.get("copy", 0) if split else None),@@ -786,8 +786,8 @@ class GpuTaskManager(App):e = r.gpu.engineswddm = has_wddm_counters(s, r)engines = " ".join(f"{k} {v:.0f}%" for k, v in e.items() if v >= 0.5) or "idle"- hdr = Text.assemble(("VRAM ", "bold"), (vram_label(r.gpu), "bold"), " spill(RAM) ",- (gb(r.gpu.shared) if has_spill_counters(s, r) else "n/a",+ hdr = Text.assemble(("VRAM ", "bold"), (vram_label(r.gpu), "bold"), " shared(RAM) ",+ (gb(r.gpu.shared) if has_shared_counters(s, r) else "n/a","bold red" if r.gpu.shared > 256 << 20 and s.shared_is_spill else "")," paged(est) ", gb(r.gpu.paged_out) if wddm and r.gpu.paged_available else "n/a"," engines ", engines if has_engine_counters(s, r) else "n/a")diff --git a/src/gputaskman/collector.py b/src/gputaskman/collector.pyindex 3d15262..5289fc7 100644--- a/src/gputaskman/collector.py+++ b/src/gputaskman/collector.py@@ -343,6 +343,13 @@ class Collector:luid = self.adapter.luid if self.adapter else (next(iter(per_luid), 0))procs = per_luid.get(luid, {})a = adapters.get(luid)+ integrated_intel = BACKEND == "wddm" and self.adapter is not None and self.adapter.integrated_intel+ if integrated_intel:+ for gpu in procs.values():+ if "dedicated" in gpu.available and gpu.dedicated > 0:+ gpu.shared += gpu.dedicated+ gpu.dedicated = 0+ gpu.available.add("shared")if BACKEND == "metal":nv = self.counters.device # IOKit's device stats in the shape the header renders (no NVML on macOS)elif self.drm_card is not None:@@ -372,7 +379,7 @@ class Collector:cuda=self.nvml.cuda_version if nv and nv.source == "NVML" else "", vram_total=total,vram_used=int(a.dedicated) if a and a.dedicated is not None else None,shared_used=int(a.shared) if a and a.shared is not None else None, backend=self.backend,- shared_is_spill=not (self.drm_card is not None and self.drm_card.integrated),+ shared_is_spill=not (integrated_intel or (self.drm_card is not None and self.drm_card.integrated)),)snap.host_status = self.host_statusdiff --git a/src/gputaskman/dxgi.py b/src/gputaskman/dxgi.pyindex df34e35..b3136f8 100644--- a/src/gputaskman/dxgi.py+++ b/src/gputaskman/dxgi.py@@ -35,6 +35,7 @@ VENDOR_NVIDIA = 0x10DEVENDOR_AMD = 0x1002VENDOR_INTEL = 0x8086VENDOR_HUAWEI = 0x19E5 # Ascend NPUs (telemetry via npu-smi, not DRM)+_INTEL_INTEGRATED_MAX_DEDICATED = 512 << 20VENDORS = {0x10DE: "NVIDIA", 0x1002: "AMD", VENDOR_INTEL: "Intel", 0x19E5: "Ascend",0x1414: "Microsoft", 0x5143: "Qualcomm"}@@ -61,6 +62,12 @@ class Adapter:return "ROOT display adapter"return VENDORS.get(self.vendor_id, hex(self.vendor_id))+ @property+ def integrated_intel(self) -> bool:+ return (self.vendor_id == VENDOR_INTEL+ and self.dedicated_vram <= _INTEL_INTEGRATED_MAX_DEDICATED+ and self.shared_system > self.dedicated_vram)+def _vcall(obj: ctypes.c_void_p, index: int, restype, *argtypes):vtbl = ctypes.cast(obj, ctypes.POINTER(ctypes.POINTER(ctypes.c_void_p)))[0]diff --git a/src/gputaskman/report.py b/src/gputaskman/report.pyindex ebd0142..a35b04b 100644--- a/src/gputaskman/report.py+++ b/src/gputaskman/report.py@@ -34,7 +34,7 @@ def has_wddm_counters(s: Snapshot, row: ProcRow) -> bool:return s.backend == "wddm" or row.origin == "windows"-def has_spill_counters(s: Snapshot, row: ProcRow) -> bool:+def has_shared_counters(s: Snapshot, row: ProcRow) -> bool:"""Per-process GPU memory in system RAM: WDDM's non-local usage, or a DRM client's GTT (amdgpu) orsystem0 (Intel) bytes on Linux."""return (has_wddm_counters(s, row) or (s.backend == "drm" and not row.host)) and "shared" in row.gpu.available@@ -126,7 +126,7 @@ def to_dict(s: Snapshot) -> dict:"gtt_resident_bytes": (int(p.gpu.resident_gtt) if s.backend == "drm" and not p.hostand p.gpu.resident_gtt is not None else None),"vram_unattributed_reason": p.gpu.drm_reason or None if s.backend == "drm" and not p.host else None,- "shared_bytes": int(p.gpu.shared) if has_spill_counters(s, p) else None,+ "shared_bytes": int(p.gpu.shared) if has_shared_counters(s, p) else None,"committed_bytes": int(p.gpu.committed) if wddm and "committed" in p.gpu.available else None,"paged_out_bytes": int(p.gpu.paged_out) if wddm and p.gpu.paged_available else None,"gpu_pct": round(p.gpu.gpu_pct, 1) if engines else None,@@ -217,18 +217,18 @@ def to_text(s: Snapshot, limit: int = 30) -> str:out.append("")shown = s.procs[:limit]w = max([7] + [len(p.pid_label) for p in shown]) # host PIDs like W:120880 are wider- out.append(f"{'PID':>{w}} {'PROCESS':<24} {'KIND':<10} {'RUNTIME':<24} {'VRAM':>9} {'SPILL':>8} {'PAGED':>8} {'GPU%':>5} INSIDE")+ out.append(f"{'PID':>{w}} {'PROCESS':<24} {'KIND':<10} {'RUNTIME':<24} {'VRAM':>9} {'SHARED':>8} {'PAGED':>8} {'GPU%':>5} INSIDE")for p in shown:wddm = has_wddm_counters(s, p)- spill = gb(p.gpu.shared) if has_spill_counters(s, p) and p.gpu.shared >= 1 << 20 else ""+ shared = gb(p.gpu.shared) if has_shared_counters(s, p) and p.gpu.shared >= 1 << 20 else ""paged = gb(p.gpu.paged_out) if wddm and p.gpu.paged_out >= 1 << 20 else ""if (wddm or (s.backend == "drm" and not p.host)) and "shared" not in p.gpu.available:- spill = "N/A"+ shared = "N/A"if wddm and not p.gpu.paged_available:paged = "N/A"pid = p.pid_labelpct = f"{p.gpu.gpu_pct:.0f}" if has_engine_counters(s, p) else "n/a"- out.append(f"{pid:>{w}} {p.name[:24]:<24} {p.kind:<10} {p.runtime[:24]:<24} {vram_label(p.gpu):>9} {spill:>8} "+ out.append(f"{pid:>{w}} {p.name[:24]:<24} {p.kind:<10} {p.runtime[:24]:<24} {vram_label(p.gpu):>9} {shared:>8} "f"{paged:>8} {pct:>5} {p.inside}")if any(p.gpu.inferred_by == "consistent" for p in shown):out.append(INFERRED_NOTE)diff --git a/tests/test_core.py b/tests/test_core.pyindex 041a4bc..3b7e04f 100644--- a/tests/test_core.py+++ b/tests/test_core.py@@ -295,6 +295,40 @@ class MemoryTests(unittest.TestCase):self.assertIn("GPU 42%", to_text(s))self.assertEqual(to_dict(s)["device"]["util_gpu"], 42)+ def test_integrated_intel_wddm_keeps_system_memory_out_of_vram(self):+ memory = 776 * MiB+ adapter = Adapter(1, "Intel Iris Xe Graphics", 0x8086, 128 * MiB, 8 * GiB, False)+ c = Collector.__new__(Collector)+ c.adapter = adapter+ c.adapters = [adapter]+ c.gpu_index, c.scan_budget, c.host, c.host_status = 0, None, None, ""+ c.nvml = Mock(ok=False)+ c.counters = Mock(outside={})+ c.counters.sample.return_value = (+ {1: {42: ProcGpu(dedicated=memory, shared=0, committed=memory)}},+ {1: AdapterGpu(dedicated=0, shared=memory, util_gpu=41.6)})+ c.inspector, c.prober = Mock(), Mock()+ c.inspector.get.return_value = ProcDetail(42, "example.exe")+ with patch("gputaskman.collector.BACKEND", "wddm"):+ s = c.sample()+ self.assertEqual((s.vram_total, s.vram_used, s.shared_used), (128 * MiB, 0, memory))+ self.assertFalse(s.shared_is_spill)+ self.assertEqual((s.nv.source, s.nv.util_gpu), ("Windows WDDM", 42))+ self.assertIsNone(s.nv.temp)+ self.assertIsNone(s.nv.power_w)+ self.assertIsNone(s.nv.sm_clock)+ self.assertTrue(adapter.integrated_intel)+ self.assertFalse(Adapter(2, "Intel Arc B580", 0x8086, 12 * GiB, 8 * GiB, False).integrated_intel)+ gpu = s.procs[0].gpu+ self.assertEqual((gpu.dedicated, gpu.shared), (0, memory))+ data = to_dict(s)+ self.assertEqual(data["processes"][0]["vram_bytes"], 0)+ self.assertEqual(data["processes"][0]["shared_bytes"], memory)+ text = to_text(s)+ self.assertIn("VRAM 0 MB / 128 MB", text)+ self.assertIn("SHARED", text)+ self.assertIn("shared (in system RAM) 776 MB", text)+def test_lost_nvml_telemetry_is_explained_not_silent(self):c = Collector.__new__(Collector)c.adapter = Adapter(1, "RTX 3060", 0x10DE, 12 * GiB, 0, False, (5, 0, 0))@@ -1638,7 +1672,7 @@ class UiTests(unittest.IsolatedAsyncioTestCase):self.assertEqual(app.query_one("#procs").get_cell("10", "GPU%").plain, "65")hdr = app.query_one("#inspector", Static).content.renderables[0].plainself.assertIn("compute 65%", hdr)- self.assertIn("spill(RAM) n/a", hdr)+ self.assertIn("shared(RAM) n/a", hdr)async def test_unknown_process_memory_preserves_unattributed_adapter_usage(self):s = snapshot()