Windows with NVIDIA/AMD telemetry and Intel WDDM activity, plus Linux and WSL support (NVIDIA everywhere, AMD and Intel on native Linux; see Linux and WSL ) and macOS on Apple Silicon (see macOS ). A terminal UI that connects per-process GPU memory and engine activity with loaded runtimes, model files, and LLM buffer breakdowns.
Task Manager says "15 GB used." This tries to answer: by what? Model weights? KV cache? Your browser? The desktop compositor? And why is so much GPU memory in system RAM?
Scope: local GPU workloads, not cloud services. Decision models, vision, speech, LLM inference, training/fine-tuning (including Unsloth), graphics, and video all belong here. Visibility varies: process memory and engine activity are measured; identifying individual models and their work requires supporting evidence. A PyTorch/CUDA DLL alone cannot identify a model or prove training, and a mapped file does not prove that model is resident on the GPU or being exercised. CPU-only, NPU-only, and cloud workloads are out of scope.
Early, experimental software. Device and process counters are measurements; classifications and GGUF-derived breakdowns are estimates. This does not dump VRAM or enumerate a game's textures.
Early, experimental software. Device and process counters are measurements; classifications and GGUF-derived breakdowns are estimates. This does not dump VRAM or enumerate a game's textures.
gputaskman is on PyPI . No repository clone is needed:
Works on Windows, Linux/WSL, and macOS with Python 3.11+ and the supported GPU/driver configuration described below. Both installers keep the app in an isolated environment. The shorter gtm command is also available. Upgrade with uv tool upgrade gputaskman or pipx upgrade gputaskman ; gputaskman --version shows what you have, and the TUI shows it under the GPU panel. Each release lists what changed. For Windows without Python, use the portable download below.
Portable Windows download
The Releases page is where tagged builds publish two portable ZIPs: gputaskman-VERSION-windows-x64.zip for Intel/AMD Windows PCs, and gputaskman-VERSION-windows-arm64.zip for native Windows ARM64. These are separate native builds, not a universal executable.
Extract the entire ZIP , keeping _internal beside gputaskman.exe . Open Windows Terminal or PowerShell in the extracted folder:
No Python, uv, CUDA Toolkit, model download, or installation is needed. A supported GPU with a current Windows WDDM driver is required. Builds are currently unsigned ; code signing and an installer are not part of this initial distribution. Each ZIP includes licenses and a .zip.sha256 companion file is published for integrity checks.
Use 64-bit Windows 10/11 with a current WDDM driver and a terminal (Windows Terminal is recommended). Live workload checks have included an RTX 4080 SUPER and an RTX Spark N1X on Windows ARM64. CUDA workloads are supported on ARM64 with a compatible NVIDIA driver and ARM64 CUDA runtime.
AMD live check: Radeon 860M Graphics on Windows 11 Enterprise build 26300, AMD driver 32.0.22050.1003. During desktop/browser activity, WDDM reported per-process VRAM and AMD ADL reported GPU utilization, clocks, and ASIC power; temperature, memory activity, and PCIe readings were unavailable. Vulkan/ROCm workloads were not tested on this machine.
Intel and Qualcomm 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 or Qualcomm 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. Qualcomm GPU activity uses the WDDM adapter counter; 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. When a Windows telemetry provider does not supply a version, gputaskman reads the selected adapter's DriverVersion from its exact PnP device's driver registry key. If that value is unavailable, the driver remains unknown.
Install Git for Windows and uv if needed. With WinGet:
Open a new PowerShell window so those tools are on PATH , then:
That's it. uv obtains the pinned Python version if needed, creates .venv , and installs the locked dependencies. The first run needs internet access. There is no CUDA Toolkit, Visual Studio, administrator session, API key, or model download required to monitor the GPU. NVML ships with the NVIDIA driver; AMD ADL is supplied by supported AMD Windows drivers.
Already have Python 3.11+ and prefer pip?
No PowerShell activation script or execution-policy change is needed. The pip route resolves compatible dependencies; the uv route uses the checked-in lockfile.
If an alternate package index makes --locked report a stale lockfile on an unchanged checkout, uv run --frozen gputaskman uses the checked-in lockfile without re-resolving it. --frozen skips the consistency check, so do not use it after changing dependencies.
Tagged releases include portable Linux builds: gputaskman-VERSION-linux-x64.tar.gz and gputaskman-VERSION-linux-arm64.tar.gz . They need glibc 2.35 or newer (Ubuntu 22.04, Debian 12, or newer) and an NVIDIA driver (or, on native Linux, an AMD GPU on the amdgpu driver, an Intel GPU on i915 , or a Huawei Ascend 310P with npu-smi ). NVIDIA works natively, in containers, and in WSL:
Or clone and run from source, in a Linux or WSL shell:
What can be measured depends on where it runs, and the UI says which mode it is in.
On native Linux, Ascend chips are listed individually. Their device memory and per-process memory come from npu-smi ; AI-core and memory-bandwidth activity come from its watch stream, not per-process engine counters. Memory refreshes every 10 seconds, and a failed refresh or stale watch is reported as unavailable. The contributor reported testing an Atlas 300I Duo with a vLLM workload; driver version and these subsequent fixes have not been independently validated on hardware. Ascend container and PID-namespace behavior is not validated.
Native Linux reads per-process memory from NVML's running compute and graphics process lists and per-process SM, encoder, and decoder load from NVML utilization samples. Linux has no equivalent of WDDM's shared-memory or commit counters, so Spill and Paged stay blank rather than showing zero. Only processes you can inspect are listed; other users' processes need sudo .
JSON uses null for unavailable counters, not a measured zero: spill/commit/paged values on native Linux, and per-process engine load for WSL Linux rows. If either NVML process list hides a process's VRAM, that row and the native Linux attributed total are unknown ( null ). Other measured rows, device-wide memory, and independently available engine readings are unaffected. Windows host rows retain their measured counters.
Containers (Docker, Kubernetes, rented GPU boxes) need one more step: NVML reports host PIDs, which mean nothing in the container's /proc , and the container cannot see the host PID of its own processes. gputaskman pairs NVML's unresolved PIDs with the container's processes that have libcuda.so mapped (NVML-only tools such as nvidia-smi open the same device files but never load libcuda). Both PID namespaces number processes in creation order, so the pairing is by order: ? marks an order guess, even when candidate counts match or a new NVML PID and local candidate appear together while gputaskman runs. Those starts keep a pairing stable, but do not prove ownership. A device handle and mapped libcuda.so do not prove that a process owns a live NVML context, and another container may have the same number of GPU processes. * is reserved for a unique ownership explanation or when all viable matches give exactly the same bytes.
Guessed local rows carry vram_attributed: false , vram_bytes: null and the candidate's bytes in vram_inferred_bytes with vram_inferred_by: "order" . They are display hints, not measured process peaks in summary or a budget for a model breakdown. Local GPU% and engines are null with an engine_unavailable_reason : the host's engine readings do not establish which local process did the work. Independently evidenced model files still supply metadata and model/flag-based estimates, with an explicitly unknown process VRAM total; neither those estimates nor the mapped file prove GPU ownership. Recognized LLM runtime names/signatures can still query their own exclusive listeners for API evidence without a mapped model file; a generic process's path-argument or installed-model hints cannot enable a probe. Every NVML host PID is retained as H: / (unresolved host PID) ( host: "nvml" in JSON), never looked up locally. Those rows preserve measured memory and engine counters under the driver's actual PID. Only their measured bytes enter the attributed total, once, not again through a local guess. Hidden host memory leaves that total unknown. These host processes may be local to this container, in another container, or on the host; an unmatched PID is not proof that it is outside this container. If PID-namespace detection fails, the same conservative split applies: an existing local PID with the same number does not prove that it is NVML's host process.
Live check, on a Vast.ai Docker container (Ubuntu 22.04, RTX 3060 Ti, driver 580.82.09): two PyTorch jobs already running at startup, a third started while watching, and one killed, were all matched to the right container PIDs with their NVML sizes (1.12, 2.52 and 1.59 GB) and live GPU%. The startup matches are order guesses; this check does not validate the ambiguous equal-count, cross-container case. A process started while watching remains an order guess; its pair is merely kept stable by the observed start. The earlier live GPU% values followed guessed matches; they are now retained only under the measured host PID. The revised dual-row presentation is covered by synthetic tests, not a new hardware validation. An Ollama qwen3:0.6b runner was detected and named from Ollama's store with api+mapped+cmdline evidence, its weights / KV-cache / compute split shown, and the TUI rendered.
Live check, bare-metal Linux (CachyOS, kernel 7.3.3, same PID namespace, no matching needed) on a laptop with an RTX 4050 Laptop GPU (driver 620.70.06) and an AMD Phoenix iGPU: every per-process size matched nvidia-smi (a llama-server with Qwen2.5-1.5B Q4_K_M at -ngl 99 -c 4096 showed 1.19 GB against 1218 MiB, and gputaskman diff put the device change at +1.20 GB, against +1224 MiB from nvidia-smi ). The model was identified with api+mapped+cmdline evidence, and with -lv 4 --log-file the runtime-reported CUDA0 load-time sizes (935 MB weights, 112 MB KV cache) matched the GGUF-based estimates; these log events are history, not current allocation measurements. During generation the TUI showed the server at 96% GPU% against 95% from nvidia-smi pmon .
AMD GPUs on native Linux (the amdgpu driver) need no ROCm, AMD SMI, or extra package: the kernel already exposes what's needed.
GTT is GPU-accessible system RAM, so it fills the Shared column (and shared (in system RAM) for the device), like WDDM's non-local usage. On an APU (an integrated GPU, detected by amdgpu not reporting 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 its VRAM plus GTT. The SDMA engine ( dma ) fills the COPY column. Paged stays blank: there is no commit counter. VRAM and Shared are charged to a process only when nothing else can hold its bytes: each of its DRM clients has a usable drm-client-id and 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 Shared as n/a ( null in JSON, with vram_unattributed_reason ) and its bytes stay in unattributed :
Missing client identity : fdinfo has no usable drm-client-id . Duplicate descriptors or another holder of the same client can't be ruled out, so GPU% is n/a too ( engine_unavailable_reason: "client_id" in JSON).
Shared client (fd passing, fork; 1Password and its crash handler on the test desktop): one set of counters, and nothing says which process uses it. GPU% is n/a too.
Shared buffers (a window a compositor imports, video frames): drm-shared-* counts a buffer by where it prefers to live, resident or not, while drm-resident-* counts where buffers are , so resident minus shared is not private memory and is never computed.
Primary node ( /dev/dri/card* , typically a compositor): root-owned logind keeps a copy of that fd, which a normal user can't see, so a single holder can't be proven.
Legacy : older kernels whose amdgpu fdinfo lacks drm-shared-vram / drm-shared-gtt , or any DRM client without the recognized residency and sharing counters needed to prove private memory.
Incomplete : some of the process's fds or fdinfo could not be read (GPU% is n/a too).
Partial scan : the TUI's 50 ms listing budget ran out this refresh, so a process it skipped might hold the same client (GPU% is n/a too). Expected to be rare on a desktop (~9 ms for ~8,000 fds, not yet re-measured with this rule); one-shot output always scans fully.
The inspector and JSON ( vram_resident_bytes , gtt_resident_bytes ) still show every buffer the process can reach, shared ones included; the same buffer can appear under several processes, so these are a reference and are never summed. Unparseable or missing values are unknown ( null ), not 0. amdgpu has no device-wide video engine counter, so the device's encode/decode load stays N/A; per-process video load is measured. On VCN 4 and later (RDNA3 and newer, including the RX 9070) decode and encode one ring, so it is reported as video rather than split. Only processes you can inspect are listed; the header and JSON ( process_status ) say how many could not be, and sudo includes other users'. --gpu 1 selects the card, such as an APU's integrated GPU to a discrete one. A ROCm/HIP process (tagged HIP ) has its VRAM in fdinfo like any other. Its GPU% is not: HIP submits compute through user-mode queues on /dev/kfd , which the kernel does not time per process, so a process holding /dev/kfd shows engines as n/a ( null in JSON) rather than a measured-looking 0. The device's AMD gfx load does include that work. This path is native-Linux only; under WSL the GPU is /dev/dxg , with no DRM driver involved.
Live check, bare-metal Arch-based Linux (kernel 7.2.15, amdgpu ), Radeon RX 9070-series (Navi 48) plus a Radeon 610M iGPU: both cards were found, named, and read; VAAPI HEVC encode and decode with ffmpeg each showed as a video row at ~95-100% video load (on the RX 9070 both were charged to amdgpu's unified enc ring, hence video ); desktop processes' VRAM summed to less than the card's used VRAM, with the compositor's imported windows listed as shared. llama.cpp's ROCm server image ( ghcr.io/ggml-org/llama.cpp:server-rocm , Qwen3-4B-Instruct-2507 Q4_K_M, -ngl 99 -c 8192 , to a running game) showed as an LLM row with llama.cpp+ggml+HIP and 3.95 GB of VRAM, matching the 2.49 GB of weights plus 1.21 GB of f16 KV cache plus compute buffers, and the 4.11 GB KFD reports for the process in /sys/class/kfd/kfd/proc/ /vram_* . While it generated at 103 tok/s the device read 99% gfx and 339 W, but fdinfo had no engine lines for it, which is why ROCm rows show engines as n/a . PyTorch-ROCm has not been run on this path. That check predates the stricter attribution above (no subtraction of shared bytes; render-node, single-holder and complete-scan requirements; per-client timestamps; PID-reuse checks), which is covered by unit tests only and not yet validated on AMD hardware .
Intel GPUs on native Linux (the i915 driver) use the same DRM fdinfo path, with these differences:
Device memory bandwidth and the PCIe link are n/a : i915 has no device-wide bandwidth counter, and its sysfs link fields can report the power-on default instead of the live link. Device GPU load and video load come from the i915 performance counters and need root; power comes from RAPL's uncore zone on an integrated GPU and needs root too. The load readings sample every exposed *-busy engine instance, including compute and additional video/copy engines, and use the busiest instance rather than averaging across idle engines. Discrete PMUs are matched by PCI address ( i915_ ); the legacy i915 PMU is used only for an integrated card. If multiple cards resolve to the same PMU, their load stays N/A with an attribution reason. Each collector opens device counters only for its selected GPU and owns those handles and baselines; closing one does not reset another collector's readings. Xe primary-GT clocks use the kernel's documented frequency sysfs interface under the selected PCI device's tile0/gt0/freq0 : act_freq is actual, cur_freq is requested, and rp0_freq is the reported hardware maximum. A measured actual frequency of zero is retained when the GT sleeps, even if the minimum/requested frequency is 400 MHz; the request is used only when the actual reading is unavailable. This reads the primary GT only, not the media GT or other tiles, and writes no frequency/limit settings.
For Xe throttling, prefer the aggregate freq0/throttle/reasons snapshot when available. Older kernels use the separate reason_* files; active reasons remain reportable, but failed reads prevent claiming idle. An unavailable reading remains unknown. i915 retains its existing paths and behavior. Live check: Arc Pro B65 ( 8086:e222 ), xe, Linux 7.0.0-43-generic, 2026-11-15: minimum/requested 400 MHz, reported maximum 2400 MHz, and a readable idle throttle snapshot. No workload was started or throttling induced. Active throttle reasons and missing-node handling are fixture-tested; other Xe cards, integrated Xe, multiple tiles and active hardware throttling are not validated.
Intel GPU temperature lookup also recognizes GPU-owned pkg and gpu hwmon labels before edge and the legacy temp1_input fallback. This does not borrow CPU or another GPU's sensors. A contributor's ASUS Arc Pro B70 ( 8086:e223 , subsystem 1043:8020 ) on xe , Linux 7.0.0-43-generic, exposed temp2_label=pkg with no temp1_input ; the lookup returned N/A despite that readable sensor. On 2026-11-19, 71 captured device samples after this fix were within 1°C of the same driver sensor read immediately afterward. This validates the sensor handoff, not absolute temperature accuracy. The capture included a planned 60-second, 2 GiB Vulkan memory check at unchanged 400–2800 MHz requests and a pre-existing 310 W cap: no reported memory errors, new kernel entries or PCIe AER increments. It was not the tool's standard five-minute run or a full-VRAM stability test. The same run observed 2800 MHz in 59/60 load samples and private process VRAM of 2,174,844,928 bytes, agreeing with that process's Xe fdinfo.
Intel xe per-process counters use the same ownership and sharing rules. Resident vram* regions supply local memory and gtt supplies GPU-accessible system memory; CPU-only system memory and the distinct stolen region are not charged. Every reported region must have a valid zero drm-shared-* counter before memory can be charged privately. On an integrated GPU, private GTT is its GPU memory, not spill. Device-wide memory remains a labelled client sum / PCI-window estimate, not a device counter; this path adds no new device-wide load or sensor probes.
Xe engine load uses deltas of paired drm-cycles-* and drm-total-cycles-* GPU ticks, not CPU wall time. GPU% is the busiest engine with a valid interval this refresh; a stalled, reset or newly seen engine does not hide another engine that advanced. Omitted engines are unknown, so a partial reading can understate the process's busiest engine; if none has a valid interval, GPU% is n/a . As with i915, engine-class capacity is not divided out.
Contributor check, not repeated by the maintainer: B65 ( 8086:e222 ), xe , Linux 7.0.0-43-generic. Thirty read-only scans of nine existing GPU processes produced 270 process-load readings (0-3.119%), with median scan time 13.196 ms and maximum 17.044 ms. No workload was started. Rates under controlled load and the sharing gate against a known shared buffer have not been validated on hardware .
Live check, reported by the contributor and not repeated by the maintainer: Linux 6.12, an Arc A770 (discrete, 16 GiB BAR) and a UHD 730 (integrated) on i915 . Both cards were found, named, and selectable with --gpu ; the Arc showed per-process VRAM and engine load, and the TUI rendered both. The fdinfo formats of both drivers, taken from the kernel sources, are covered by unit tests. Not validated by the maintainer on hardware: xe , Arc cards without resizable BAR, and multi-GPU systems other than that pair.
Live check on an integrated GPU (ASUS Vivobook 14 X1404VA, Intel Core 3 100U Xe-LP, i915 , kernel 7.3.1, Mesa 26.2.5): the card is found and named, the header shows the actual GT clock ( GT 300/1250 MHz ) with no throttle reasons active, and a headless vkmark run shows as a 3D/game Vulkan row at 82% GPU. Per-process memory stays n/a ( shared_buffers ): the compositor imports every window, so no client is provably private. The gtt_resident_bytes reference and the engine percentages are still measured.
Live check of the root-only readings on the same machine ( intel_gpu_top from intel-gpu-tools as reference, perf_event_paranoid=2 ): under vkmark load the header's GPU % reads 48-95% against intel_gpu_top Render 51-92% across scenes, and power reads 0.4 W idle against its 0.4 W (under load 9.0 W against 6.5-6.8 W in a nearby window; scenes vary, and uncore is approximate while the CPU is active). A VA-API ffmpeg decode loop drives the video engine to 99.9% on both ( intel_gpu_top Video 99.4-99.9%). Without root the three stay N/A with a reason, while the GT clock, throttle and per-process rows keep working. Per-PCI PMU selection and compute/secondary-engine coverage are regression-tested with synthetic counters, not yet validated on hardware ; the live check above covers only the Vivobook's exercised engines.
WSL is different, because Windows owns the GPU. Linux cannot see how much VRAM its own processes use: nvidia-smi lists no processes, NVML's per-process samples carry Windows PIDs (never looked up in Linux's /proc ), and Windows charges all Linux GPU memory to the VM worker process, vmwp.exe . When WSL interop is enabled ( /proc/sys/fs/binfmt_misc/WSLInterop reads enabled ), gputaskman starts one long-lived powershell.exe that reads the Windows GPU counters through the same PDH array API as the Windows backend and streams them back once a second:
WSL VM ( vmwp.exe ) reports the exact total of Linux GPU memory, across every distro, WSLg, and Docker Desktop, when the host provides its Local Usage counter.
Windows apps appear as W: 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).
Each host counter is tracked separately: missing readings are null in JSON and n/a or blank on screen, not measured zeros. Engine load can still be available when memory is unknown. Paged is an estimate shown only when Local Usage, Non Local Usage, and Total Committed were all observed.
The first host sample takes 2.5 s; the TUI shows starting until then, and --once waits for it. The host adapter is paired with the NVML or AMD SMI device by memory usage, because WSL's adapter LUIDs differ from the host's. An ambiguous pairing shows unmatched instead of guessing. With other Hyper-V VMs or Windows Sandbox running, the row is labeled VM worker because it cannot be tied to WSL alone. --no-host turns the host stream off; without interop you get device-wide numbers and a list of the Linux processes that hold /dev/dxg , with VRAM shown as n/a . On AMD GPUs in WSL, device discovery and telemetry use ROCm's amdsmi Python bindings ( /opt/rocm-wsl/ /amd_smi or /opt/rocm/ /amd_smi ), reading VRAM via amdsmi_get_gpu_memory_total / amdsmi_get_gpu_memory_usage (the contributor observed uninitialized vram_used from amdsmi_get_gpu_vram_usage in their rocm-wsl build). That fallback is never used in WSL, even when its bytes happen to fit. Missing or out-of-range usage stays null / N/A , not a cached value or a clamped zero. The existing per-refresh /dev/dxg holder scan also records whether the monitor holds a context; host attribution reuses it rather than scanning every process's file descriptors again.
AMD WSL prerequisites are user-managed. Native Linux ROCm/AMD SMI packages alone do not provide the WSL bridge. Check AMD's supported GPU and Windows-driver matrix, then follow the official ROCDXG instructions for matching rocdxg-amd-smi-lib and rocdxg-roct packages. An AMD CPU alone does not establish support. gputaskman does not install packages, change drivers, enable WSL, or modify loader configuration. --list-gpus prints a discovery failure and recommendation to stderr; the TUI and one-shot reports expose it as counter_status (JSON: a string, or null when there is no warning). Missing bindings/libraries, initialization failures, no usable device, and a wrapper/library major-version mismatch are distinguished. The wrapper loads its own library; gputaskman never preloads a replacement.
AMD SMI sessions are shared across discovery and live collectors, so constructing or closing one does not shut down another's library session. An edge-temperature critical limit of zero means unsupported, following AMD's CLI; a measured current temperature of zero with a supported limit remains zero. Unsigned unknown power-cap sentinels are not watts. Windows host process counters can overlap on some drivers: if their sum exceeds device capacity, WSL's JSON attributed is null with a warning. Raw per-process readings are retained; the adapter reading remains the device total, and inferred Linux children are never added to their VM row.
Contributor-reported AMD WSL check: Windows 11, Ubuntu 24.04 under WSL2 kernel 6.6.87.2-microsoft-standard-WSL2, Radeon RX 7900 XTX 24 GB, Adrenalin 26.20.15.07 and amd-smi 1.2.2 under /opt/rocm-wsl , with three llama-server instances and PyTorch/HIP. The contributor reported device telemetry and host VM/context matching; those workloads have not been independently repeated.
Maintainer read-only check on the revised code (2026-11-13): Windows 11 build 26300, Radeon 860M ( 1002:1114 ), Windows driver 32.0.22050.1003; Ubuntu 26.04 under WSL2, native x86_64 Python 3.14, matching WSL AMD SMI wrapper/library 1.2.2 and ROCDXG 1.2.2. --list-gpus , --once , and JSON identified the adapter; host pairing succeeded. Thirty device samples had no failures (median 6.27 ms, max 9.09 ms); first discovery was 71.87 ms. Unsupported edge temperature and power cap stayed unknown; zero memory activity stayed zero. Creating and closing a second collector for the same adapter did not break the first. No new GPU workload was launched: real multi-adapter hardware, model-load/context attribution, and AMD SMI on Windows remain unvalidated (the Windows smoke check used ADL). The raw driver readings can exceed physical VRAM or overlap across host processes; these checks do not establish that the driver reports uniquely attributed bytes.
How WSL per-process VRAM is matched
vmwp.exe exposes one GPU-memory instance per guest GPU context, all with the same name: sizes without owners. Measured on WSL2 with driver 610.88, every Linux process that opens /dev/dxg gets exactly one context (an NVML-only process too, at 0 bytes), and Windows lists them newest first , keeping that order as contexts come and go. Contexts from outside this distro (WSLg, other distros, Docker, services you cannot inspect) are interleaved by their own age.
gputaskman follows the contexts from sample to sample and labels them with evidence:
A guess is recomputed every refresh and never counts as evidence for itself. An exited process's context is held aside until it disappears, so it is not handed to a newcomer, and a context that grows by gigabytes between refreshes (weights uploading) keeps an established owner. Multiple zero-byte contexts at startup do not pin the monitor to an arbitrary one that might later grow. Foreign sizes observed while only the monitor is running are cached per WSL boot in ~/.cache/gputaskman/ , but remain hints: a process may exit while the monitor is off and a local process may reuse its size. Observed foreign-context exits and idle samples clear obsolete hints.
The matched size also feeds VRAM sorting, initial model selection, the bounded model-file scan priority, and the LLM weights / KV-cache breakdown. Inferred Linux rows remain below the VM total and are never added to it again. The inspector and --json ( vram_inferred_by ) say which kind of match each row has.
In one live check, a 2 GB and a 5 GB PyTorch allocation were matched to the right PIDs at 2.119 GiB and 4.914 GiB: the allocator's own figure plus 0.26 GiB of CUDA context. That is one machine and driver, not a guarantee. A process that started long before it first used the GPU can break the start-order guess, and processes started in the same refresh are ordered by guess unless their sizes match.
With flakes enabled, run the published flake or a checkout:
Build both gputaskman and its gtm alias with nix build path:. (executables are in result/bin/ ). The flake provides packages for x86_64-linux and aarch64-linux ; flake.lock pins nixpkgs. Dependencies come from nixpkgs, independently of uv.lock . No pip installation, virtual environment, CUDA Toolkit, or ROCm installation is needed. GPU drivers remain supplied by the host, never bundled with the package. NVIDIA's nixpkgs Python binding finds NVML through /run/opengl-driver/lib ; AMD and Intel use kernel sysfs and DRM fdinfo interfaces directly. On WSL2 the host driver lives in /usr/lib/wsl/lib instead, and the wrappers add that directory to LD_LIBRARY_PATH (it is ignored when absent, so NixOS is unaffected).
For source development and tests:
nix flake check path:. builds the package and runs the same hardware-independent tests. For a flake-based NixOS configuration, add this repository as a gputaskman input, then include inputs.gputaskman.packages.${pkgs.stdenv.hostPlatform.system}.default in environment.systemPackages . Enable your GPU's normal NixOS driver configuration first. The flake was contributed and checked on x86_64 NixOS 26.05; CI does not build it, and ARM64 has not been validated.
macOS (Apple Silicon)
Run from a clone ( uv run gputaskman ); there is no portable macOS download yet. Apple GPUs one pool of memory with the CPU, so there is no VRAM to split and no spill/commit counters. What macOS exposes without root:
Other users' processes (WindowServer, system daemons) show GPU% with memory n/a : footprint needs root for them. Idle ones are left out of the table, except WindowServer. Run with sudo to measure every process's memory. The attributed total is unknown whenever a Metal client's footprint is unmeasured, even if its row is hidden. Device allocation and per-process GPU time remain independent. footprint takes ~70 ms per process, so it runs in a background thread: busy processes and new ones every pass (~2 s), idle ones every 30 s. A new process shows n/a for a second or two until its first measurement; a single failed measurement keeps the last size, and three in a row back off for a minute. Measurements are tied to the process's start time, so a reused PID never shows the process's numbers.
If the Metal client query fails or times out, per-process GPU readings are unavailable for that refresh. JSON reports attributed: null with a reason in counter_status ; a successful empty query still reports attributed: 0 . Device readings are independent and still appear if available. The successful query resumes GPU rates from the last successful sample.
Metal reports one GPU time per process, with no 3D/compute/copy/video split, so those columns show n/a ; a Metal process above 10% GPU is classified 3D/game unless something more specific applies (AI runtime, browser, compositor). Spill, clocks, power, and temperature are not available, so the chart picker offers only GPU and GPU memory. Paged is footprint's swapped graphics bytes, including a measured 0, and is n/a when footprint did not report swapped or could not read the process. It is not added to the VRAM column and it is not the Windows commit estimate. Handy's log is read from ~/Library/Logs/com.pais.handy/handy.log .
Live check on an M4 Mac mini (macOS 26.3.1): a PyTorch MPS job with a 2 GiB buffer and a matmul loop showed Python AI PyTorch+Metal 3.06 GB 99% , with device utilization at 99% and allocated GPU memory rising by the same amount.
Apple Foundation Models (Apple Intelligence's on-device model) does not show up, because it is not GPU work. An app that calls FoundationModels hands the request to TGOnDeviceInferenceProviderService , run by the _modelmanagerd user. That process opens Neural Engine clients ( H1xANELoadBalancerDirectPathClient ) and no Metal clients, so it has no GPU time or graphics memory to show. macOS exposes no per-process or device-wide Neural Engine utilization without root ( powermetrics ), so gputaskman does not guess one. Live check on an M5 Pro (macOS 27.2.1, 24 GB): a Swift loop of LanguageModelSession.respond calls, each 2,000 characters in 10-20 s, alternated three times with idle windows of 10 s. Device utilization was 0% in all three AFM windows, the per-process Metal GPU time totaled 9-10% in AFM windows and 6-12% in idle ones, and neither the calling process nor the AFM worker gained a Metal client.
Scans skip other apps' sandbox containers ( ~/Library/Containers , ~/Library/Group Containers ) and system files without opening them: opening a file in a protected container blocks while macOS waits for a privacy consent prompt.
Device view: VRAM usage, GPU activity, memory activity, PCIe traffic, temperature, power, video-engine clock, and responsive history charts with an all-charts or single-metric view.
Process view: local GPU memory, GPU-accessible system RAM, estimated non-resident commit, engine activity, and detected runtimes such as CUDA, HIP, Vulkan, Direct3D, ggml and ONNX Runtime.
System RAM and CPU: a panel plus RAM and CPU% columns, as the OS reports them: machine memory and load, never GPU memory (see System RAM and CPU ).
Model inspector: which model each process holds (LLM, decision, embedding, speech, or diffusion), how it was identified, architecture, quantization, layer count, weights, estimated KV cost, and timestamped load-log history. Log sizes describe allocations at load time, not current residency.
Live server hints: context size, busy slots, throughput when available, and friendly Ollama or LM Studio model names.
Scriptable output: one-shot text and JSON, using the same collector as the TUI.
These are captures of real local workloads through Textual's screenshot renderer, not mock data. Full filesystem paths and command lines were omitted in the capture copy. Measurements vary with the workload; the examples are not benchmarks.
The compositor, without treating all shared surfaces as its private VRAM
GPU-accessible system RAM, sorted by the Shared column
An explanation of what is measured, inferred, and unavailable
A wide terminal (roughly 140 columns or more) makes the full table easier to read. The TUI starts in Full diagnostics mode. Press m (or click Slim/Full in the footer) for Slim monitoring : each GPU header hides driver/CUDA versions, PCI bus address, driver model, PCIe generation/width, compute capability, power/clock limits, performance state, and secondary memory/video clocks. GPU identity, memory bars and provenance/availability warnings, utilization, PCIe throughput, temperature, current power and SM/GFX clock, throttling alerts, charts, processes, and process inspection remain. The header border names the active mode; press m again to restore the full details. This is a session-only display toggle, applies to every GPU, and does not change collection or one-shot text/JSON output. The TUI color scheme is one of Textual's built-in themes , chosen at startup by the TEXTUAL_THEME environment variable (default: textual-dark ). For example, TEXTUAL_THEME=ansi-dark gputaskman (PowerShell: $env:TEXTUAL_THEME = "ansi-dark" ) renders with the terminal's own colors instead: its default background and foreground and its ANSI palette, so the monitor blends into a custom terminal theme; ansi-light and named themes such as nord or gruvbox are also available. Set the variable in your shell profile to keep the choice across sessions; gputaskman stores no configuration itself. The theme affects the live TUI only, not one-shot text or JSON output. Chart series colors and the process-kind colors are explicit and do not follow the terminal palette. All eight history charts are shown by default: GPU, SM clock (GFX on AMD, GT on Intel), VRAM, memory activity, temperature, power, encoder, and decoder. They stack in narrow terminals and rows as the window widens. Click the Charts dropdown to focus on one metric or return to All charts . A blank sample means no reading; zero is drawn at the baseline. Percentages use a 0–100% scale, temperature uses 0–120°C, and the power and clock scales are displayed below the charts. The dashboard and inspector scroll independently in short terminals so the process list stays usable. Model/runtime discovery is throttled, so newly loaded models may take 15 seconds to appear.
On multi-GPU systems, the TUI stacks a header and trend charts for each GPU and adds a GPU column to the combined process list. A process using two GPUs has a separate row for each; selecting a row inspects its memory on that GPU. Single-GPU layouts are unchanged. Memory totals and histories stay separate per device; model files and runtime buffer logs can span devices and do not prove per-device model placement. Discovery's 150 ms scan budget is divided across GPUs, though each GPU has its own counter and telemetry queries. Live check on a mixed-vendor Linux laptop (RTX 4050 Laptop GPU through NVML, AMD Phoenix iGPU through DRM; CachyOS, kernel 7.3.3): both GPUs got their own header and charts, and the compositor had a separate row on each GPU (measured on the NVIDIA one, n/a on the iGPU, where it opened /dev/dri/card* and root-owned holders can't be ruled out without root). Systems with two discrete GPUs, and multi-GPU on Windows, are not yet validated . On Windows, the live TUI checks DXGI adapter topology every five seconds in the existing sampling worker (or on the sample with a longer interval). Removed adapters retain their session GPU number with unavailable readings; surviving adapters keep their collectors and histories, and newly discovered adapters are appended. Re-enabling an adapter rebuilds its providers. LUIDs identify adapters; if a LUID changes, only a unique PCI location and matching vendor/description can reconnect the old slot. Without that evidence, the old slot remains unavailable rather than transferring its history or process ownership to another GPU. --gpu N pins the adapter selected at startup, not whichever adapter later occupies index N; it does not start monitoring other newly discovered devices. Session GPU numbers therefore need not match a fresh --list-gpus after a topology change. NVML handles are reacquired at the same low-frequency cadence; missing counters, lost telemetry or sampling errors trigger provider reconstruction at the successful discovery. Persistent failures back off to at most one reconstruction per minute; a reappearing or changed adapter retries immediately. Discovery errors retain the last known topology with a warning, not invented zero usage. Pausing suspends discovery as well as sampling; resume performs an overdue check. This recovery is covered by mocks, not validated with hardware disable/re-enable on the reporter's hybrid AMD/NVIDIA laptop. On a three-GPU desktop (RTX 5060 Ti, RTX 3060, AMD iGPU; Windows 11 build 26200, NVIDIA driver 610.88), disabling and re-enabling the RTX 3060 recovered its slot, history, VRAM and processes, but NVML reads for that GPU then faulted inside nvml.dll and nvmlShutdown() hung on exit. A fresh process read it normally. gputaskman therefore stops reading NVML for a GPU whose reads fault, shows "restart gputaskman to restore it", and skips nvmlShutdown() once an NVIDIA adapter has gone away (process exit releases the session). That mitigation is covered by mocks and not yet validated on that hardware. It is not a claim of physical hot-swap support. Other backends and one-shot output retain startup-only discovery. Under multi-GPU WSL, host attribution is disabled with a reason rather than risking matching two devices by memory usage; Linux processes are listed once with GPU ? , because /dev/dxg does not identify their GPU. --gpu N retains the existing single-device host matching.
--list-gpus lists selectable non-software DXGI adapters on Windows (including root-enumerated display adapters), or hardware adapters on other platforms, with their vendor and adapter key. "Microsoft Basic Render Driver" (WARP, Windows' CPU rasterizer) is hidden even when Windows lists it without the software flag in place of a display adapter whose driver is missing or disabled; it has no GPU memory or engines to show. --list-gpus names hidden adapters on stderr. --gpu N selects one of these adapters: NVIDIA adapters are listed first, followed by other vendors, with each group ordered by dedicated memory. An out-of-range index is rejected rather than silently selecting another device. Compute-only devices such as an NPU are not graphics adapters and are not listed; NVIDIA GPUs in TCC or MCDM mode are exceptions (below). AMD and NVIDIA hardware coverage is described below; configurations with multiple GPUs and mixed vendors need further hardware validation. --once and --json still default to GPU 0; use --gpu N to collect another device without changing the snapshot format. Device telemetry is matched to WDDM adapters by PCI location, not display name or enumeration order. If a unique match cannot be established, telemetry is unavailable; buffer logs can still span devices, so model-buffer attribution across GPUs is not yet reliable. This conservative matching also applies to NVIDIA and may suppress telemetry when Windows does not expose a usable PCI address.
An NVIDIA GPU in TCC mode (a datacenter card, or a mining card such as the P102-100) has no display driver, so Windows lists no adapter for it and publishes no GPU counters. On Windows, gputaskman asks NVML, once when it starts, for TCC and MCDM devices that DXGI did not list and adds them after the listed adapters, so no existing GPU number moves. --list-gpus marks them TCC compute-only or MCDM compute-only with their PCI address (including the PCI domain when nonzero), and --gpu N selects one. Adapter VRAM and each process's VRAM come from NVML. NVML documents per-process memory as always unavailable under WDDM (Windows manages it, not the NVIDIA driver), so a TCC GPU is where it should be reported; a process whose memory the driver does not report is n/a , never 0. Engine load, shared memory and commit are n/a , and no model breakdown is attempted because it needs the shared memory counter too. A TCC/MCDM GPU added or removed while gputaskman runs needs a restart to be noticed. This is covered by mocks, and --list-gpus reports whether NVML found no TCC/MCDM GPU or could not complete its probe; raw driver exception details are not printed. To validate a real TCC card, run gputaskman --list-gpus , then gputaskman --once --gpu N for the TCC index and compare device and per-process VRAM with nvidia-smi under the same workload. Record the GPU, driver and workload. The same code path was run against a WDDM GPU (RTX 4080 SUPER, NVIDIA 630.20: adapter VRAM matched nvidia-smi to the MiB with and without a 1 GiB CUDA allocation, and every per-process number stayed n/a , as NVML documents for WDDM).
Live check, reported by the contributor and not repeated by the maintainer: Windows, an NVIDIA P102-100 in TCC mode (driver 582.78, CUDA 13.0) beside two adapters Windows lists, gputaskman v0.4.2. The card appeared as GPU 2 (NVML index 1) with device telemetry. With llama-server.exe loaded, nvidia-smi and --gpu 2 --once , read at the same time, agreed on its per-process VRAM: 9652 MiB and 9.43 GB (GiB). Engine load, shared and paged memory were n/a , as expected. ( #14 )
MCDM adapters use this same NVML path. Device pairing preserves the full PCI domain; JSON includes adapter.pci_domain for TCC/MCDM adapters even when telemetry is unavailable, so diff can distinguish GPUs with the same bus/device/function in different domains. Per-process memory remains unknown when the driver does not supply it.
Live check: Windows ARM64, NVIDIA GB300, driver 621.01, MCDM, PCI 00000009:06:00.0, alongside an RTX PRO 4000. Discovery, device memory, utilization, temperature, power, and existing compute-process enumeration worked. Per-process VRAM was unavailable. No controlled workload was launched, and the interactive UI was not visually validated.
On Windows, each exact DXGI LUID is also resolved through DisplayConfigGetDeviceInfo to its PnP device interface, including inactive displays, then read through SetupAPI. A ROOT\DISPLAY instance uses its PnP friendly name (device description as fallback) and is labelled ROOT display adapter in --list-gpus , rather than inheriting the physical GPU's DXGI name or vendor label. It stays selectable at the same index, is not paired with PCI telemetry, and still needs matching LUID counters to show usage. A missing PnP name gives an explicit root-display label; a failed identity lookup retains the DXGI description with a reason in the list, text, TUI and JSON counter_status . JSON adapter.device_instance_id records the resolved instance (empty if unknown); adapter.identity_status records lookup limitations. Physical adapter names and ordering are unchanged. The StarDesk inactive virtual-display case is covered by mocked API regressions, not yet validated with StarDesk installed . Read-only live checks on Windows 11 build 28000, NVIDIA RTX Spark N1X, driver 32.0.16.2114 confirmed its physical PCI identity and unchanged display name; no display configuration or drivers were changed.
AMD adapters can be selected and use the existing Windows GPU process counters; HIP runtime DLLs are recognized as runtime evidence. On supported drivers, the AMD Display Library supplied by the Windows driver can provide graphics activity, clocks, edge temperature, board or ASIC power, fan and PCIe lane count. An optional AMD SMI Python installation is a fallback and may provide graphics activity, edge temperature and socket power. Both require a PCI match to the selected WDDM adapter. The SMI library and its native dependencies must be available to the Python environment; it is not bundled in the portable build. The RX 9060 XT HIP workload and ADL telemetry have been observed on this machine; AMD SMI telemetry and Vulkan workloads remain unvalidated. A loaded DLL does not prove GPU execution.
Unavailable utilization, temperature, power, clock and PCIe readings are displayed as N/A in text and the TUI and as null in JSON. For example, a missing NVML power limit means that the driver did not expose that reading; it does not by itself indicate a hardware fault. Missing per-process memory or engine samples likewise show N/A / null ; the paged estimate is unavailable when any of its input counters is missing.
On GPU-paravirtualized VMs, including Windows Sandbox, Windows may expose GPU counter LUIDs that do not match the selected DXGI adapter. When that happens, the counters cannot safely be assigned to the adapter: the process list and usage are unavailable, not zero. The text and TUI explain the mismatch; JSON reports it in counter_status and sets counter_adapter_matched to false ( null when the check does not apply). GPU-PV guests may also omit adapter memory counters. Counter values that are actually reported as zero remain zero; a zero alone does not establish that a counter is unavailable.
Live check: Windows Sandbox on Windows 11 build 26100, hosted by an RTX 4080 SUPER with NVIDIA driver 630.20. D3DKMTEnumAdapters2/3 exposed the PDH LUID 0x4BF1 as a software adapter with a different adapter/render GUID from DXGI's 0x4BB7 ; it was not a proven alias for the NVIDIA GPU. The portable build's --once explanation and --json unmatched status were verified in the guest. Other Hyper-V GPU-PV configurations have not been validated.
A System panel under the GPU header, and RAM and CPU% columns in the process table, show what each process costs the machine , as the OS reports it. The numbers come from psutil; on Windows the process list comes from NtQuerySystemInformation , because psutil's per-process calls take 6 s per pass for ~1,000 processes there. s sorts by them, unknown values last. Full diagnostics also shows a per-thread strip, 60-sample CPU and RAM histories, and the top processes by RAM and CPU; slim monitoring keeps two lines (the RAM and CPU bars). --no-system removes the panel, the columns and the sampling.
These are system-memory figures, never GPU bytes. They are not added to any GPU total or to the att...
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
