Minimum CPU Sampling Interval #430
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 256 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #430"
general
weight: 0.35
pellared
Summary
This PR requires instrumentation libraries that support AlwaysOn CPU profiling to define, document, and enforce a runtime-specific minimum sampling interval. This change restricts previously supported configuration values and is proposed under the security-related changes exception.
Identified security risk
Very short sampling intervals pose a potential risk of CPU resource exhaustion and denial of service. For threaded runtimes, profiling requires collecting call stacks from all process threads. Repeating this operation too frequently can consume CPU resources needed by the application and degrade its availability.
For example, the existing .NET interval validation accepts a 1 ms interval when snapshot profiling is disabled.
This risk assessment is based on code inspection; the actual impact depends on the runtime and workload.
User-visible impact
This change mitigates the risk by requiring:
A documented minimum sampling interval appropriate for each runtime.
Enforcement of the minimum across all configuration sources, including after runtime-specific interval adjustments.
Migration
Affected settings include SPLUNK_PROFILER_CALL_STACK_INTERVAL and the corresponding distribution.splunk.profiling.always_on.cpu_profiler.sampling_interval configuration field. Remote configuration must also respect the same minimum.
Before upgrading, users should review their explicitly configured sampling intervals and increase any values below their distribution's documented minimum.
Deployments using supported intervals or existing defaults require no configuration changes. Deployments using newly unsupported intervals may collect fewer profiling samples if their configuration falls back to the default.