Skip to content

[grug] Allow ten-second dirty-page decay in EP hero runs - #9182

Draft
mcwitt-agent wants to merge 2 commits into
marin-community:mainfrom
mcwitt-agent:agent/hero-jemalloc-decay
Draft

mcwitt-agent wants to merge 2 commits into
marin-community:mainfrom
mcwitt-agent:agent/hero-jemalloc-decay

Conversation

@mcwitt-agent

Copy link
Copy Markdown
Contributor

Set the EP hero trainer's default jemalloc dirty-page decay to 10 seconds, allowing freed pages to be reused before reclamation. Keep jemalloc enabled with background purging, immediate muzzy-page decay, and two arenas. Explicit launch overrides still take precedence.

Immediate purging produced checkpoint-associated training stalls in the 64-GPU diagnostic: the total for six steps was 113.5–121.7 seconds, versus 97.7–99.4 seconds with purging disabled and 97.1–97.4 seconds without a save. After saves with purging disabled, allocator-reported resident memory was 64–69 GiB higher per node than in the preceding no-save condition with immediate purging. A finite decay interval is a minimal candidate for reducing the stalls while continuing to reclaim memory.

The 10-second setting has not been benchmarked. Keep this as a draft pending repeated-checkpoint measurements of total training time, worst-step latency, peak host memory, and memory recovery between saves. The diagnostic does not establish that this setting fixes production spikes or stays within production memory headroom.

Part of #9180.

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