dsh-vram-watch

Diagnostic VRAM sampler for DSH: samples GPU memory continuously and keeps the last hour in memory. After a CUDA out-of-memory or an unexplained slowdown it reports four things instead of a live gauge — baseline, peak and final dedicated VRAM; each process first → last → peak plus whether it is still running; how much spilled into shared system memory; and how far dedicated VRAM stayed above baseline after the task exited. Two tools: vram_report (analyse the in-memory window or a saved CSV, optionally write the window to disk) and vram_watch (status / start / stop). Windows with an NVIDIA GPU only: reads WDDM performance counters through PowerShell and nvidia-smi; no hooks, no service, no screen capture.

Overview

Diagnostic VRAM sampler for DSH: samples GPU memory continuously and keeps the last hour in memory. After a CUDA out-of-memory or an unexplained slowdown it reports four things instead of a live gauge — baseline, peak and final dedicated VRAM; each process first → last → peak plus whether it is still running; how much spilled into shared system memory; and how far dedicated VRAM stayed above baseline after the task exited. Two tools: vram_report (analyse the in-memory window or a saved CSV, optionally write the window to disk) and vram_watch (status / start / stop). Windows with an NVIDIA GPU only: reads WDDM performance counters through PowerShell and nvidia-smi; no hooks, no service, no screen capture.

Installation

Install from npm

dsh plugin --profile web add @xinming-chenniang/dsh-vram-watch

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:xinming-chenniang/dsh-vram-watch

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.