﻿# Graphsignal: local GPU signals, graph modes and overhead

Graphsignal connects GPU profiles and engine metrics through local snapshots. Interpret graph replay time, missing values, overhead and optional uploads correctly.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/graphsignal-local-gpu-profiler-signals-overhead/
Language: en

Graphsignal combines GPU activity, device telemetry, process information and inference-engine metrics in a sidecar profiler. Its original `graphsignal-profiler` repository now redirects to [Graphsignal](https://github.com/graphsignal/graphsignal). The current interface emphasizes a local JSON snapshot that a person or an optimization agent can inspect. This is more specific than treating every observation as one continuous per-token execution timeline.

Current behavior also differs from the incoming description that required an API key and uploads. Local profiling works without a key; uploading signals is optional. Establish which version and collection mode produced a report before applying either description to a deployment.

## Connect kernel activity with engine behavior

GPU activity collection runs inside the workload, while analysis and the HTTP endpoint run in the sidecar. NVIDIA activity uses CUPTI and telemetry uses NVML; AMD paths use ROCm and AMD SMI. Engine-level information is imported from Prometheus endpoints for supported serving engines rather than inferred entirely from GPU utilization.

This distinction is useful when a server has a long request queue but its busiest kernel appears efficient. Queueing, model execution and transfers answer different questions. The existing [profiling-method guide](/journal/learn-gpu-profiler-sampling-instrumentation/) explains why several observation types should be connected before choosing a change. A large cumulative kernel total alone does not establish the delay of one client request.

## Know which work the snapshot includes

The [Signals API reference](https://graphsignal.com/docs/reference/signals-api/) separates gauges, counters, histograms and per-frame profiles. Local cumulative values start at instance creation; trends require differences between snapshots. Missing measurements are represented by `null`, distinct from measured zero. Histogram quantiles come from bins and should not be read as exact individual latency samples.

CUDA graph granularity is especially consequential. The default graph mode records replay duration in the graph profile, while the kernel profile covers eagerly launched kernels. A sparse kernel list can therefore be expected even during heavy decode work. Node tracing exposes kernels within graphs but changes collection cost. Do not combine the two granularities as if they were interchangeable measurements.

## Account for the cost of observation

The [overhead guide](https://graphsignal.com/docs/guides/profiler-overhead/) now publishes manufacturer measurements, contrary to the earlier research note's absence-of-overhead description. On a single-GPU Blackwell host, default profiling added 0.1% decode time in a GPU-bound workload, within its ±0.9% spread, and 1.3% in a llama.cpp case. Node tracing added 8.1% in the latter, with ±5.5% spread. These are scoped author results, not universal overhead guarantees.

The AMD example is more cautionary: on an MI300X virtual function, full kernel tracing changed a small SGLang model's mean inter-token latency from 6 ms to 27 ms. The project explicitly distinguishes this investigation mode from the default mode without per-kernel tracing. Virtualization and dispatch frequency limit transferability. Validate performance changes with ordinary execution too, following a [reproducible benchmark protocol](/journal/inference-benchmark-method/).

## Decide where diagnostic information lives

The [security reference](https://graphsignal.com/docs/security/) states that local endpoints bind to loopback by default. Binding another address exposes a read-only, unauthenticated endpoint; network reachability then determines who can read it. Signals include process and host information, so the absence of prompt recording does not make the payload empty of operational detail.

The project says prompts and completions are not recorded. Signals upload requires an explicitly set API key; a separate version check sends the profiler version once per run unless disabled. The local endpoint lasts only while the workload runs, so preserve needed observations before exit. These boundaries make the profiler useful for a measured optimization loop, while leaving the actual code change and its validation under the operator's control.
