Skip to content

fix(gpu): default GPU sampling off - #112

Merged
reiase merged 2 commits into
DeepLink-org:masterfrom
VincentCheungKokomo:pr/gpu-sampling-default-off
Nov 16, 2026
Merged

reiase merged 2 commits into
DeepLink-org:masterfrom
VincentCheungKokomo:pr/gpu-sampling-default-off

Conversation

@VincentCheungKokomo

@VincentCheungKokomo VincentCheungKokomo commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Auto-on GPU sampling (1 Hz) measurably slows CUDA/NCCL-heavy training running in other processes on the same node: +26% step time at 1s and +5.5% at 60s on 8xH200 MoE-FSDSP PPO (64-step A/B runs, Welch t>10), identical via the legacy nvidia-smi path and in-process NVML — the cost is the NVML queries' driver-lock contention, which only manifests under real training load. Default the collector off; keep explicit opt-in (PROBING_GPU_SAMPLE_MS / SET probing.gpu.sample_interval_ms) and give PROBING_GPU=on a fixed 60000 ms interval instead of the now-zero default. Guard the autostart return so a zero default maps to off rather than a zero-interval busy loop.

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…aining

Auto-on GPU sampling (1 Hz) measurably slows CUDA/NCCL-heavy training
running in other processes on the same node: +26% step time at 1s and
+5.5% at 60s on 8xH200 MoE-FSDSP PPO (64-step A/B runs, Welch t>10),
identical via the legacy nvidia-smi path and in-process NVML — the cost
is the NVML queries' driver-lock contention, which only manifests under
real training load. Default the collector off; keep explicit opt-in
(PROBING_GPU_SAMPLE_MS / SET probing.gpu.sample_interval_ms) and give
PROBING_GPU=on a fixed 60000 ms interval instead of the now-zero
default. Guard the autostart return so a zero default maps to off
rather than a zero-interval busy loop.
The force-on autostart test still expected Some(DEFAULT), and the
platform-gated auto tests expected Some(DEFAULT) when a backend was
present; the first failure also poisoned ENV_TEST_LOCK, cascading into
every other env test (PoisonError). Assert the new contract instead:
explicit on → FORCED_ON_SAMPLE_INTERVAL_MS, auto → None regardless of
backend presence, and add a plain assertion that the default is 0.
@VincentCheungKokomo
VincentCheungKokomo force-pushed the pr/gpu-sampling-default-off branch from 3436163 to 784b605 Compare November 13, 2026 09:47
@VincentCheungKokomo VincentCheungKokomo changed the title fix(gpu): default sampling off — NVML auto-polling taxes colocated tr… fix(gpu): default sampling off Nov 16, 2026
@VincentCheungKokomo VincentCheungKokomo changed the title fix(gpu): default sampling off fix(gpu): default GPU sampling off Nov 16, 2026
@reiase
reiase merged commit 044f1cc into DeepLink-org:master Nov 16, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants