pressure: with JAXE_PRESSURE_PHYSICAL=1, physical memory decides the pressure level #171
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!171
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-171"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@mahhnameisjeff on GitHub · 2026-12-03 14:28 UTC · original
mahhnameisjeff:amd-pressure-physical→amd· +189 −1 · 3 files · 1 commits · openBase: origin/amd (
0902398). Independent of the other PRs from this batch.JAXE_PRESSURE_PHYSICAL=1already exists (residency.rs), buthost::current_pressure_levelstill classified by commit headroom. On AMDthe driver keeps every command allocator's memory for the process,
committed and write-combined but mostly never touched (a release returns
it to the driver's pool, never to Windows:
alloc_cap::tests::probe_reuse,an ignored test that measures this), and a page file that grows on demand
is counted at its present size. So commit headroom sat at 0.6-1.5 GB from
the world's load on, with RAM free, and the layer stayed in emergency or
elevated pressure: recording on one or two threads, emergency reclaims,
pool trims.
With the switch on, free physical memory decides (emergency below 512 MiB,
elevated below 1 GiB), commit only near its real end (256 / 768 MiB), and
the shared-memory percentage as before. Measured on RX 6700 XT 12 GB /
32 GB RAM: emergency reclaims 97 -> 2 per run, frame rate after the load
10 -> 11.3-12.6 fps.
Default behaviour is unchanged (the switch is off unless set).
Related: #133 (2211 emergency reclaims), #61, #64. Only tested with 32 GB
of RAM; 16 GB machines may want other thresholds.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.