vkback: report VRAM/GTT reserve lines and refusal counters in UMEM_MEMREPORT #185
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!185
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-185"
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?
@deuxque on GitHub · 2026-12-02 06:06 UTC · original
deuxque:pr/vram-budget-telemetry→main· +151 −8 · 2 files · 1 commits · openProblem
8 GB cards (#103 RX 6650 XT, #111) still exhibit texture refusals and refill churn,
but
UMEM_MEMREPORTonly prints heap use/budget. The reserve-line math is inline inresidency.rs, untested, and not surfaced alongside the refusal counters.Relevant sites:
greenfield/vkback/src/residency.rs:62-98— VRAM/GTT line calculation (over_line)greenfield/vkback/src/srclife.rs:97-108—texture_placerefusalgreenfield/vkback/src/slotwrite.rs:367-374— refused slot writegreenfield/umem/src/lib.rs:801-840— budget /vram_headroomChange
greenfield/vkback/src/vramline.rs(wired via#[path = "vramline.rs"]inresidency.rsto keeplib.rswithinpolicy::file_size), with zero Vulkandependencies.
over_line()byte calculations identically and delegatepast_line()to the same helper with saturating arithmetic.
UMEM_MEMREPORTright after the existingVRAM/GTT(use/budget)summary:keep,line, and clamped integer percent (0%ifbudget == 0)refused both(self.life.refused_both)refused slots(self.refused_slots.len())Computed Reserve Lines
VRAM reserves
max(25% of budget, 4 GiB)and GTT reservesmax(10% of budget, 2 GiB);the resulting usable percentage is clamped to
50..=90%(andline = (budget / 100) * pct):Verification
greenfield/vkback/src/vramline.rscovering 8,176 / 12,288 /16,384 MiB VRAM & GTT, sub-4-GiB
50..=90%floor clamping, zero-budget handling,strict
pastboundaries, and free-space saturation.cargo test --manifest-path greenfield/Cargo.toml --workspace --no-fail-fast:252 passed, 6 ignored, 0 failed.
cargo clippy --manifest-path greenfield/Cargo.toml -p vkback --all-targets -- -D warnings:0 warnings.
cargo test --manifest-path greenfield/Cargo.toml -p vkback --test policy:6 passed, 0 failed (
lib.rsline count unchanged).AI use
Assisted by DeepSeek V4.1 Flash Free (initial extraction) and Gemini 4 Neon (integer-percent
formatting polish and verification), human-directed scope. All unit, policy, and clippy
checks ran on an isolated Linux / RDNA 2 host with zero allocation or eviction behavior
change; full-title on-card GPU capture remains pending.
Refs #103 #111
@copilot-pull-request-reviewer[bot] on GitHub · 2026-12-02 06:07 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
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.