Skip to content

Fix CSP memory overhead sizing with host off-heap limit - #2138

Merged
wjxiz1992 merged 2 commits into
devfrom
tools-2135
Sep 3, 2026
Merged

wjxiz1992 merged 2 commits into
devfrom
tools-2135

Conversation

@parthosa

@parthosa parthosa commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

There was a discrepancy in how AutoTuner handled spark.rapids.memory.host.offHeapLimit.enabled on CSP platforms: it skipped the specialized sizing calculation but finalized memory as if that calculation had run. This left only the JVM minimum instead of budget-aware executor overhead. The change uses one effective predicate for both decisions while preserving explicit overhead values and existing non-CSP behavior.

Fixes #2135.

Test plan

  • QualificationAutoTunerSuite: 55 tests passed.
  • ProfilingAutoTunerSuiteV2: 71 tests passed.
  • Scalastyle: 316 files checked, 0 errors and 0 warnings.

Scope

This change does not modify maxBytesInFlight handling.

Post-deploy Monitoring & Validation

No additional operational monitoring is required. The change affects offline AutoTuner recommendations and is covered by the Qualification and Profiling suites above.

@github-actions github-actions Bot added the core_tools Scope the core module (scala) label Sep 3, 2026
Use a single effective predicate so CSP platforms retain budget-aware
overhead while non-CSP host off-heap sizing and explicit values remain
unchanged.

Signed-off-by: Partho Sarthi <psarthi@nvidia.com>
Document why CSPs must stay on budget-aware overhead sizing and why the
protected overhead floor differs between the normal and specialized paths.

Signed-off-by: Partho Sarthi <psarthi@nvidia.com>

@wjxiz1992 wjxiz1992 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wjxiz1992
wjxiz1992 merged commit a885d41 into dev Sep 3, 2026
17 checks passed
@parthosa
parthosa deleted the tools-2135 branch September 3, 2026 03:14
@parthosa parthosa changed the title Fix CSP executor overhead sizing with host off-heap limit Fix CSP memory overhead sizing with host off-heap limit Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autotuner core_tools Scope the core module (scala)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AutoTuner: avoid under-sizing CSP executor overhead when host off-heap limit is enabled

3 participants