Repository navigation
placement, gpu: a host-room refusal names the reading that gave the room, so a BLOOMERY_HOST_ROOM value reads as given - #885
Conversation
…oom, so a BLOOMERY_HOST_ROOM value reads as given HostNeed::check and HostNeed::grant take the room with its HostRead, and HostShort carries it: the refusal names MemAvailable, the cgroup v2 room or vm_statistics64 for a read room, and BLOOMERY_HOST_ROOM for a given one, with "Raise or unset BLOOMERY_HOST_ROOM" in place of "Free host memory". The placed load, the MTP draft load, the node tier's arena grant, the parts load's read-ahead checks and the checkpoint pin check read the room through host_available_read and pass the reading on.
There was a problem hiding this comment.
Verdict: CLEAN: the refusal text now has one owner (HostShort's Display), every caller hands on the reading host_available_read already returns, and I found no failure path.
Non-blocking
⚠ Advice names the lever for any HostRead::Given room: workstation.rs:1260. Given also covers a room a gate passes in code (gate_mimo2_e2e.rs:329, placement.rs:4810), where "Raise or unset BLOOMERY_HOST_ROOM" does not apply. The room line says "or the caller", so it is not wrong, and only gates reach it. Split the variant only if a user-facing path starts passing a code-given room.
⚠ No test covers the new reading in load_host: node.rs:475. A mutant that passes HostRead::MemAvailable there instead of read turns no assertion red. The path needs a tier node, so a unit test is costly. A line in the PR body that this site is untested is enough.
Checked
- Duplicates: 9 new items checked (
readtest helper,check/grantroom tuple,HostShort.read, theGivenadvice arm, the newDisplaystrings), none duplicated. dryer: 0 pairs. - Complexity: crapper flagged nothing. The new
matchinHostShort::fmtis even growth. - Silent failure: 7 sites followed (
host_available_readerrors inparts.rs,mtp38.rs,model.rs,node.rs,qwen3moe_place.rs). Each still maps the error to a namedGpuErrororErr. Nounwrap_or,.ok()orlet _ =added. - Hot path: none touched. The
Box<HostRead>is built only on a refusal. - Tests:
host_need_is_refused_past_mem_availableprotects the advice match atworkstation.rs:1258; the mutant "Given arm advisesFree host memory" turns it red.later_reads_use_their_own_peak…protectsparts.rs:168; a mutant that drops{read}turns it red. - Gates: no pin, band, tolerance or lint level moved. Old assertions changed text only.
- Escape catalog: no pattern matched (no shell files in the diff).
- Sibling paths: no old refusal text remains;
host_available()is still used byNodeCensus::here.
Notes
- Evidence: the body carries the
nvidia-smiline (RTX 5090), both hashes, and the commands with output. Clippy was not run onbloomery-gpu; CI covers it.
Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/shared/qwen3moe_place.rs, crates/gpu/src/arch/qwen3moe/mtp38.rs, crates/gpu/src/host/node.rs … and carries a gate run on the author's card, which counts as verified.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
호스트 메모리 room 부족 거절 문구가 room을 준 출처(읽은 값인지 BLOOMERY_HOST_ROOM으로 준 값인지)를 밝히고 그에 맞는 조언을 하도록 고치는 수정입니다.
What and why
When a load was refused for lack of host room, the message said "the host has N B available (MemAvailable, ...)" and advised "Free host memory", even when
BLOOMERY_HOST_ROOMhad set the room. A user who had set the lever was told to free memory that was never the limit.Now the refusal states where the room came from. A room this machine read prints its reading (
MemAvailable in /proc/meminfo, the cgroup v2 room orvm_statistics64). A room given byBLOOMERY_HOST_ROOMor by the caller prints "given by BLOOMERY_HOST_ROOM or the caller, not read from this machine", and the advice reads "Raise or unset BLOOMERY_HOST_ROOM". The OS-reserve clause says "the room leaves out" instead of namingMemAvailable.The reading already came from
host_available_read.HostNeed::checkandHostNeed::grantnow take that(u64, HostRead)pair, andHostShortkeeps the reading in aBox<HostRead>, so the text comes fromHostShort'sDisplayalone. The model load, MTP draft load, node-tier load and the parts loader hand the reading on. The parts read-ahead refusal and shrink line, and the checkpoint pin refusal in the gates, print it the same way.Release notes: Fixed: a refusal for lack of host memory says whether the room was read from the machine or given by
BLOOMERY_HOST_ROOM, and advises raising or unsetting the lever when it was given.Code shape
HostShort'sDisplay, from the readinghost_available_readalready returns. Each caller hands it on instead of rebuilding a label.mtp38.rsonly hands on the reading it gets from the common owner.load_hostno longer reads the arena setting it never used.cargo fmtis clean.cargo clippyis clean onbloomery-placementandbloomery-gpu-gates; I did not run it onbloomery-gpuor the lint ratchet.Duplication found or removed (
path:line): none.What I ran
Tested head
ce01312ae61268b349c55a4b84b2b40a0065eed6on upstream mainb9594b6d1ac0da6d63a9d6dd42f7ea85ac739f99.On a CPU-only Linux machine, the placement library tests:
cargo test -p bloomery-placement --libtest result: ok. 207 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.11s.host_need_is_refused_past_mem_availablefails with exit 101. With a given room made to advise "Free host memory", the same test fails with exit 101.On an RTX 5090 machine (card below), the parts tests on the card:
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 430 filtered out; finished in 15.21s. This includeslater_reads_use_their_own_peak_under_a_falling_host_room, which checks the given-room label, andhw_a_parts_load_refuses_a_short_host_before_reading.cargo check --workspace --all-targetswith the workspace's full feature set finishes withFinisheddevprofile [unoptimized + debuginfo] target(s) in 42.34s.cargo clippy -p bloomery-gpu-gates -p bloomery-placementexits 0.The whole GPU library gate on the same card (recipe
just gate-gpu-lib, which runsbloomery-gpulib tests with the held-card tests serialized, then thebloomery-verbslib tests):bloomery-gpulib tests:test result: ok. 426 passed; 0 failed; 0 ignored; 0 measured; 10 filtered out; finished in 31.40s.test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 426 filtered out; finished in 3.30s.bloomery-verbslib tests:test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s.I did not run a timed measurement. The change touches only refusal text and its plumbing, not the decode or prefill path. I did not run the other GPU gates or the lint ratchet.
Hardware
The RTX 5090 machine ran the parts tests and the build check. The placement tests ran on a Linux machine with no GPU.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.