shanselman/gputaskman
A GPU task manager for Windows, Linux, and WSL: per-process VRAM, GPU activity, and LLM model/KV-cache insights for NVIDIA, AMD, and Intel GPUs (plus Huawei Ascend on Linux).
What it solves
Standard system monitors like Task Manager only report a single number for GPU memory usage ("15 GB used"). gputaskman goes deeper: it shows which processes are using GPU memory and engine activity, and for LLM workloads it breaks down that memory into model weights, KV cache, and compute buffers. It also explains oddities like why GPU memory might appear in system RAM.
How it works
gputaskman reads telemetry from multiple OS-level sources depending on where it runs:
- Windows: NVIDIA NVML and AMD ADL for discrete GPUs, plus WDDM per-process and per-engine counters for Intel, AMD, and Qualcomm adapters.
- Linux / WSL: NVML for NVIDIA, and DRM fdinfo + sysfs for AMD (amdgpu) and Intel (i915) GPUs. In WSL, it matches Linux processes to Windows host PIDs.
- macOS: works on Apple Silicon (details in the README).
The tool combines process memory, engine load, and mapped runtime/model files to classify each process (e.g., LLM, graphics, video). For LLM runtimes (like llama.cpp or vLLM), it can further estimate the split between weights, KV cache, and compute buffers using GGUF metadata and runtime logs.
All data is presented in a terminal UI (TUI) with live updating panels, and can also be output as JSON via --json for scripting.
Who it’s for
Developers and power users who run local GPU workloads—LLM inference, fine-tuning, graphics, video—and need to know exactly which process is consuming GPU resources, or why a model takes up more VRAM than expected. It is not for cloud GPU services or CPU-only workloads.
Highlights
- Cross-platform: Windows, Linux, WSL, macOS (Apple Silicon)
- Per-process VRAM, GTT, and engine load (compute, graphics, video)
- Identifies LLM runtimes and model files, with weights/KV-cache/compute breakdowns
- No CUDA Toolkit, admin rights, or model downloads required
- Portable ZIPs for Windows and Linux; installable via PyPI (uv or pipx)
- Conservative attribution: distinguishes measured counters from estimates (e.g., container PID matching is flagged with
?) - JSON output for scripting and integration
Related
- Project
- Project
- Project
- Project
- Project