Repository navigation
research/residency_scheduler: KV-residency-aware request scheduling (Bidaw FAST '26, engine#86, HIP-1345 §2.3) - #108
Closed
breezesamuel wants to merge 1 commit into
Closed
breezesamuel wants to merge 1 commit into
breezesamuel wants to merge 1 commit into
Conversation
…Bidaw FAST '26, engine#94, HIP-1345 §2.3) Bounded clean-room implementation of Bidaw's first mechanism (compute -> storage awareness) at the fabric scheduling-policy layer: - ResidencyTier (Resident/Host/Ssd) + SchedRequest + tier-ranked smallest-KV-first ordering (stable sort, deterministic) - Sequential-server simulation with per-tier load bandwidths and prefill compute rate; reports mean/p50/p95/max TTFT, per-tier worsts, goodput (max TTFT reported as order-invariant, honestly) - 5 tests: ordering lock, resident zero-load invariant, determinism + accounting identity, residency-beats-FIFO on cold head-of-line (mean + warm-wait), empty-input zeroing; stdlib only - results/residency-scheduler-results.json: FIFO vs residency on the identical 24-request mixed warm/cold workload (8 resident / 8 host / 8 SSD, 16 MiB..2 GiB), two SSD-bandwidth scenarios; raw numbers - results/HIP-1345-update.md: proposed §2.3 status addendum (single-node half; the Enso/distributed half is cloud PR hanzoai#48) + explicit out-of-scope statement (mechanisms 2-3, real I/O, batching, admission control, hanzoai#56 integration) - Upstream Bidaw figures remain the authors' own per the bounty caveat; no reference code exists to port - clean-room from the abstract
This was referenced Nov 18, 2026
Member
|
cargo test -p hanzo-kv-fabric fails to compile at this head: examples/residency_bench.rs imports hanzo_kv_residency, which is not a crate. Please fix the import so the bench reproduces residency-scheduler-results.json. |
Member
|
Closed: #109 implements the scheduler in hanzo-router and reproduces its numbers; this one's example does not compile and stays at the policy layer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Research deliverable for #86 ([Bounty #13] KV-residency-aware scheduling, Bidaw FAST '26, HIP-1345 §2.3): a bounded clean-room implementation of Bidaw's first mechanism — KV-residency-aware request ordering — at the
hanzo-kv-fabricscheduling-policy layer, with a deterministic mixed warm/cold workload, its FIFO matched baseline, raw measurements, the HIP-1345 §2.3 status update, and an explicit out-of-scope statement.Contract coverage (6-point)
hanzo-kv-fabric/results/residency-scheduler-results.json.hanzo-kv-fabric/src/residency_scheduler.rs(tier model, ordering policy, sequential-server simulation, 5 tests) +hanzo-kv-fabric/examples/residency_bench.rs(the workload + both schedules) + results JSON + HIP update. Bounded: one module, no engine integration, no lib changes beyond the module declaration.ttft = wait + load + prefill), residency-beats-FIFO on the cold-head-of-line case, empty-input zeroing.cargo testgreen on windows/amd64; stdlib-only (no new dependencies).results/residency-scheduler-results.json(p50/p95/p99/max TTFT per policy, goodput, ordering cost);results/HIP-1345-update.mdproposes the §2.3 status addendum and carries the out-of-scope statement.Key honesty boundaries
Draft PR — happy to rebase or restructure per maintainer preference.
lib.rs note
hanzo-kv-fabric/src/lib.rsgains onepub mod residency_scheduler;line. If #100/#104/#105 merge first, this PR rebases cleanly on their merged lib.rs.