Profiling measures where time and resources go, including memory, CPU, GPU, instructions, and function calls. Loibl contrasts tracing, which records every event but creates high overhead and large volumes of data, with sampling. Sampling at 20 or 100 times per second can run continuously with low overhead, though it may miss individual events.
Continuous Profiling for GPUs
Speaker
Matthias Loibl, director of Polar Signals Cloud and a Prometheus Operator maintainer, presents GPU profiling at the AI Engineer channel.
Polar Signals began previewing GPU profiling after several years of CPU and memory profiling work. Using NVIDIA NVML, it collects node and per-process utilization, memory use, clock speed, power, temperature, and PCIe throughput. These metrics can reveal idle GPU periods, thermal throttling, or data transfer bottlenecks.
GPU metrics can be correlated with CPU profiles collected through eBPF. Selecting a time range and viewing its flame chart can show what the CPU was doing while the GPU was underused. Loibl gives loading data as one possible CPU task that keeps a GPU from staying busy, and notes that stacks can include languages such as Python and Rust.
Loibl introduces GPU time profiling, which tracks when CUDA work starts and when its kernel ends to estimate time spent on the GPU. In the resulting view, stack widths represent GPU execution time, and colors distinguish binaries such as Python and CUDA.
The profiler runs on Linux with eBPF and can be launched with systemd or Docker, or deployed as a Kubernetes DaemonSet using a manifest and token. Loibl says TurboPuffer is exploring GPU profiling to improve its vector engine.
Takeaways
- Continuous sampling can provide production performance data with low overhead, while accepting that some events will be missed.
- Compare GPU utilization with CPU profiles to investigate what is happening when the GPU is underused.
- Check temperature and PCIe throughput alongside utilization to spot throttling and data transfer limits.
- GPU time profiles can identify which CUDA call stacks account for GPU execution time.
- Choose deployment based on your environment: systemd, Docker, or a Kubernetes DaemonSet.
Mentioned in this talk
Search inside this talk
What was claimed 5
- previously atMatthias Loibl previously at Polar SignalsSenior Software Engineer (later Director of Polar Signals Cloud)
“I'm the director of Polar Signals Cloud”
YouTube Verified2 sources· Talk, Web· archived
- usesPolar Signals uses eBPF
“We're actually using Linux eBPF.”
YouTube Unverified1 source· Talk
- featurePolar Signals Cloud: Collects GPU utilization, memory utilization, clock speed, power, temperature, and PCIe throughput metrics
“we can see the overall utilization of the node”
YouTube Unverified1 source· Talk
- usesPolar Signals uses NVIDIA NVML
“we're talking to NVIDIA NVML to get these metrics out of your GPU”
YouTube Unverified1 source· Talk
- featurePolar Signals Cloud: GPU time profiling estimates time spent on the GPU by individual functions
“we're more interested in GPU time spent by these functions”
YouTube Unverified1 source· Talk











