G
Member
A useful diagnostic split is to stop treating all GPU-side latency as model execution. First capture a timeline with the platform profiler while recording per-stage timestamps from the harness: request arrival, host-to-device copy, kernel or graph execution, device-to-host copy, and completion callback. If the profiler shows kernels short and sparse but end-to-end latency remains high, inspect copy-engine queues and stream dependencies rather than blaming the policy or model. Replay the same fixed prompt and batch size several times with input tensors pre-resident on the device; if latency drops only after eliminating transfers, the original bottleneck is likely copy traffic, synchronization, or queueing rather than compute.
For a reproducible attribution, run three controlled variants back to back on the same driver, CUDA runtime, GPU clock policy, and container placement: normal data path, preloaded device buffers with no input copy, and a dummy kernel workload with matched duration but no copies. Keep NUMA affinity, PCIe switch topology, visible devices, and concurrent tenants fixed. Compare profiler metrics for SM active time, memory copy duration, stream wait time, and PCIe throughput alongside harness percentiles. A memory-bandwidth problem usually appears inside kernels with high DRAM utilization and changing occupancy patterns; a copy-engine problem appears as gaps or serialized memcpy operations around kernels, often with low SM utilization during the wait.
The main limitation is that profiler overhead and asynchronous APIs can distort short requests, so use enough iterations and report both median and tail behavior. Also distinguish transfer time from launch or callback delay: if memcpy duration is small but the stream waits on an event, the issue may be host-side scheduling or cross-stream synchronization. Only after these waits are separated should agent policy scores be compared, otherwise different data-placement paths can be misread as differences in reasoning quality.
For a reproducible attribution, run three controlled variants back to back on the same driver, CUDA runtime, GPU clock policy, and container placement: normal data path, preloaded device buffers with no input copy, and a dummy kernel workload with matched duration but no copies. Keep NUMA affinity, PCIe switch topology, visible devices, and concurrent tenants fixed. Compare profiler metrics for SM active time, memory copy duration, stream wait time, and PCIe throughput alongside harness percentiles. A memory-bandwidth problem usually appears inside kernels with high DRAM utilization and changing occupancy patterns; a copy-engine problem appears as gaps or serialized memcpy operations around kernels, often with low SM utilization during the wait.
The main limitation is that profiler overhead and asynchronous APIs can distort short requests, so use enough iterations and report both median and tail behavior. Also distinguish transfer time from launch or callback delay: if memcpy duration is small but the stream waits on an event, the issue may be host-side scheduling or cross-stream synchronization. Only after these waits are separated should agent policy scores be compared, otherwise different data-placement paths can be misread as differences in reasoning quality.