Repository navigation
gpu, placement: test CPU tier heat and larger host pages - #814
Conversation
There was a problem hiding this comment.
Verdict: CLEAN: The added page-size and CPU-tier assertions introduce no blocking defect.
Checked
Duplicates: 0 new functions, types or constants. The local count-check closure has no reusable duplicate. Dryer reported 0 pairs.
Complexity: node_nvme_host_run rose from 22 to 26 through eviction-mode assertions in the existing fixture.
Silent failure: 1 default followed. Tick legitimately has no counts; Heat storage is initialized once, and the assertions require Some.
Tests, static mutation check: rejecting pages above 16 KiB at crates/os/src/lib.rs:463 fails the new 64 KiB assertion.
Tests, static mutation check: capping the page at 16 KiB in crates/placement/src/placement.rs:3323 fails the 64 KiB Split, Parts and NVFP4 assertions.
Tests, static mutation check: dropping columns = 0 at crates/gpu/src/host/tier_cpu.rs:90 fails the first Heat count assertion; dropping the all-host prefetch at crates/gpu/src/host/tier_cpu.rs:95 fails the decay assertion. Existing host-budget assertions are unchanged.
Gates: no pins or tolerances moved; existing page-size cases remain, and the hardware test stays ignored.
Escape catalog: no patterns matched.
Performance: tests only; no production hot path changed.
Notes
The reported targeted RTX 5090 runs omit the tested commit hashes and do not include the required just gate-* run. GPU evidence is incomplete.
This review used source inspection; no builds or tests were run.
Card check: needs-gpu. This pull request changes crates/gpu/src/host/tier_cpu/tests.rs and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 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. |
CPU 계층의 Tick과 Heat 방출 규칙, 그리고 4 KiB보다 큰 호스트 페이지 계산에 빠져 있던 시험을 보태고, 운영 코드는 바꾸지 않습니다.
Follows up the review notes on #408 and #746.
What and why
This adds tests only. Production code, public APIs and kernels are unchanged. Two gaps are covered.
Host pages (
crates/os/src/lib.rs,crates/placement/src/placement.rs). The OS layer accepts any power-of-two base page of at least 4 KiB, and the placement row room takes the page size as an argument. The existing tests stopped at 16 KiB.the_base_page_is_a_power_of_two_of_at_least_four_kibibytesnow also checks that a 64 KiB page counts, andthe_row_room_counts_the_hosts_base_pagechecks the 64 KiB row room, including the Split, Parts and NVFP4 cases. The 4 KiB and 16 KiB cases stay.CPU tier eviction (
crates/gpu/src/host/tier_cpu/tests.rs). The hardware fixturehw_held_node_nvme_host_run_keeps_eager_and_captured_rowsran only with theTickrule. It now runs F32 and Q8 under bothTickandHeat. The first column carries a host expert and an NVMe expert, the second column the same NVMe expert, so the routing count of that expert shows whether the clock moves once per column. After the captured graph runs, two all-host columns are served and the test checks that the existing counts decayed by the matching factor. UnderTickno routing count may exist. The earlier checks on eager against graph output, refill, callback lifetime and fault and reset paths are unchanged.Release notes: Under the hood: tests for the CPU tier's Heat eviction counts and for host pages larger than 16 KiB.
Code shape
cargo fmtandcargo clippyare clean onbloomery-osandbloomery-placement. Clippy was not run onbloomery-gpu; its changed test compiled and ran on the GPU machine below.Duplication found or removed (
path:line): none. The duplicate scan reported no candidates.What I ran
Each new check was also run against a deliberately broken build to show it can fail.
Pages, on a CPU machine, with the commands:
counted_pageset to refuse pages above 16 KiB, the OS test fails on the new 64 KiB assertion. Withrow_roomset to cap the page at 16 KiB, the placement test fails on the new 64 KiB assertion, with 2,147,483,648 against the expected 8,589,934,592. Both tests pass on the restored code.CPU tier, on the RTX 5090 machine below, with the commands:
TickandHeat, and the host budget test passes.just gate-gpu-libnot run: the full library gate belongs to the PR chain, and production code is unchanged, so no PTX comparison or speed measurement applies.Hardware
The GPU commands ran on an RTX 5090 machine.
nvidia-smiprinted:The CUDA version is the one
nvidia-smireports. The model is the Q8_0 fixture the test writes itself, so nothing is downloaded.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.