Skip to content

fix(umbp): backend-policy SSD instances keep the UMBP_SSD_* settings - #967

Merged
TianDi101 merged 1 commit into
mainfrom
fix/umbp-policy-ssd-keeps-ssd-config
Nov 17, 2026
Merged

TianDi101 merged 1 commit into
mainfrom
fix/umbp-policy-ssd-keeps-ssd-config

Conversation

@TianDi101

Copy link
Copy Markdown
Collaborator

Problem

ApplyBackendPolicy builds each DRAM instance from config->dram, but each SSD instance from a default UMBPSsdConfig. A standalone server started with UMBP_BACKEND_POLICY therefore ignores every UMBP_SSD_* setting (durability, CRC, segment size, ...) on its policy SSD backends. A policy backend only accepts type, capacity, path, staging_slots and min_object_size, so these settings can't be set any other way.

Seen in a DeepSeek-V4-Pro pure-SSD run on main 7c27c14, with UMBP_SSD_DURABILITY=relaxed, UMBP_SSD_VERIFY_CRC=0 and two policy SSD backends per node:

[MakeFileSsdBackend] drives=1 durability=strict io_backend=io_uring queue_depth=4096
[SSDTier] /umbp-ssd/d0: direct_io=true verify_crc=true tier_io_threads=4 io_backend=io_uring

Fix

Start each policy SSD instance from config->ssd, the same way the DRAM branch starts from config->dram, then apply the policy's capacity and path. A multi-drive list arrives through storage_dir, which the policy overwrites, so each policy backend still gets only its own path.

With the fix, the same run logs:

[MakeFileSsdBackend] drives=1 durability=relaxed io_backend=io_uring queue_depth=4096
[SSDTier] /umbp-ssd/d0: direct_io=true verify_crc=false tier_io_threads=4 io_backend=io_uring

Tests

  • test_umbp_backend_policy_config has a new case, SsdPolicyKeepsPeerSsdSettings.
    • On main it fails: verify_crc is true, durability.mode is Strict, and segment_size_bytes is 4 GiB instead of 256 MiB.
    • With the fix it passes, and the policy's capacity and path still win.
    • The other 10 cases pass in both runs.

🤖 Generated with Claude Code

ApplyBackendPolicy built each policy SSD instance from a default UMBPSsdConfig,
while the DRAM branch starts from config->dram. A standalone server started with
UMBP_BACKEND_POLICY therefore ignored every UMBP_SSD_* setting: it ran
durability=strict and verify_crc=true under UMBP_SSD_DURABILITY=relaxed and
UMBP_SSD_VERIFY_CRC=0, with the default segment size as well. The policy JSON has
no per-backend SSD keys, so nothing could set them.

Start from config->ssd, then apply the policy's capacity and path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jhchouuu jhchouuu closed this Nov 10, 2026
@jhchouuu jhchouuu reopened this Nov 10, 2026
@jhchouuu jhchouuu closed this Nov 10, 2026
@jhchouuu jhchouuu reopened this Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

GPU CI for 6e2fb5ca (run): changed areas: umbp

lane runs jobs
mori no MI355X intranode, MI355X ROCm 10, MI355X JAX, MI355X internode
mi300x no MI300X intranode, MI300X internode
umbp yes UMBP unit test
cco no CCO unit test, CCO EPv2 single-node test, CCO internode
fused no CCO fused GEMM test
build yes MoRI build (compile check)

Test groups (the steps that run in those jobs): umbp.

Lanes follow the changed files. Adding ci:full re-runs CI with every lane, the full internode sweeps and every fused GEMM case; adding ci:mi300x re-runs it with the MI300X lanes added. /ci-rerun re-runs CI against the current main.

@jhchouuu

Copy link
Copy Markdown
Collaborator

Sorry for the close/reopen noise on this PR. I closed and reopened it only to re-trigger its CI on the current main. PR CI there runs just the tests that a PR's changed files need (#970), and a plain re-run would have kept the old workflow, which runs the full suite. It took two rounds, because the first reopen still picked up the old merge commit. Nothing in the PR was changed, and the earlier runs that were still queued were cancelled.

CI for this PR now runs only the build and the UMBP unit test, instead of every lane.

@TianDi101
TianDi101 merged commit 7e23fa2 into main Nov 17, 2026
30 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants