[pr-fix][performance][memory] Lower the default DARNER_MEMORY_FLOOR_MB from 1024 to 512 #110

Open
CRCODE22 wants to merge 2 commits from CRCODE22/Darner:fix/issue-70-memory-floor-512 into main
First-time contributor

Summary

The default soft floor of 1024 MB serialised first-seen pipelines into multi-second freezes on a 32 GB PC (the title commits ~17 GB; the driver's compiler takes several more; free RAM sits near 1 GB in a world load). 140 of 141 compilemem lines said pressured=true; the PC ended with 20 MB free; full-screen passes waited 1.4 to 7.2 s for their pipeline.

Lower the soft physical floor to 512 MB. Compiles still go one at a time under it, but the 4096 MB commit floor remains the hard limit that keeps the process from ending in ptxas fatal: Memory allocation failure.

Testing

  • cargo test -p darner-gpu --lib memguard — 6 passed
  • cargo test -p darner-gpu --lib compilemem — 13 passed
  • Needs: like-for-like A/B on the same PC, same route, both values (1024 and 512), to confirm the freezes go away without new out-of-memory crashes.

Fixes #70

## Summary The default soft floor of 1024 MB serialised first-seen pipelines into multi-second freezes on a 32 GB PC (the title commits ~17 GB; the driver's compiler takes several more; free RAM sits near 1 GB in a world load). 140 of 141 compilemem lines said pressured=true; the PC ended with 20 MB free; full-screen passes waited 1.4 to 7.2 s for their pipeline. Lower the soft physical floor to 512 MB. Compiles still go one at a time under it, but the 4096 MB commit floor remains the hard limit that keeps the process from ending in ptxas fatal: Memory allocation failure. ## Testing - cargo test -p darner-gpu --lib memguard — 6 passed - cargo test -p darner-gpu --lib compilemem — 13 passed - **Needs**: like-for-like A/B on the same PC, same route, both values (1024 and 512), to confirm the freezes go away without new out-of-memory crashes. ## Related Fixes #70
The default soft floor of 1024 MB serialised first-seen pipelines into
multi-second freezes on a 32 GB PC (the title commits ~17 GB; the driver's
compiler takes several more; free RAM sits near 1 GB in a world load).
140 of 141 compilemem lines said pressured=true; the PC ended with 20 MB
free; full-screen passes waited 1.4 to 7.2 s for their pipeline.

Lower the soft physical floor to 512 MB. Compiles still go one at a time
under it, but the 4096 MB commit floor remains the hard limit that keeps
the process from ending in 'ptxas fatal: Memory allocation failure'.

This is a default change and needs a like-for-like A/B: same PC, same
route, both values (1024 and 512), to confirm the freezes go away without
new out-of-memory crashes.

Fixes #70
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/issue-70-memory-floor-512:CRCODE22-fix/issue-70-memory-floor-512'
git switch 'CRCODE22-fix/issue-70-memory-floor-512'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'CRCODE22-fix/issue-70-memory-floor-512'
git switch 'CRCODE22-fix/issue-70-memory-floor-512'
git rebase 'main'
git switch 'main'
git merge --ff-only 'CRCODE22-fix/issue-70-memory-floor-512'
git switch 'CRCODE22-fix/issue-70-memory-floor-512'
git rebase 'main'
git switch 'main'
git merge --no-ff 'CRCODE22-fix/issue-70-memory-floor-512'
git switch 'main'
git merge --squash 'CRCODE22-fix/issue-70-memory-floor-512'
git switch 'main'
git merge --ff-only 'CRCODE22-fix/issue-70-memory-floor-512'
git switch 'main'
git merge 'CRCODE22-fix/issue-70-memory-floor-512'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!110
No description provided.