← Back to Pull requests

Minimum CPU Sampling Interval #430

Open
unknown opened this pull request with 256 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 05, 2026 08:49 UTC
Author

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.

Diff: 256 lines (+192 / -64) across 3 files Reviewer: pellared Review duration: 3006m
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
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.1% (MEDIUM) · Higher = larger blast radius
39.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.8% · Safe to merge
20.8%