Repository navigation
feat: a shared machine keeps its GPUs, a lane shows its own (ADR-0115) - #600
Merged
Merged
Conversation
- The share switch takes a GPU cap (`max_gpus`, the agent's `--max-gpus`): the most GPUs other members' lanes hold; 0 keeps them for the owner. - A free GPU whose memory is more than a quarter used by processes on the machine is not offered (`busy`, "in use on the machine"). - The node writes a lease's GPUs into the lane's file; the lane's daemon reports them as the lane's `gpu`, and its card and usage page show a GPU tile. - The machines table's "Shares" column says the GPUs a machine offers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 21, 2026
Merged
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.
A shared machine offered every GPU no lane held: its owner could not keep one, and a pool lane could get a GPU the owner was using right then. A lane's usage never showed its GPU, and the machines table showed one only as a badge. ADR-0115 records what was built.
Review card
Approved by the owner in the conversation on 2026-11-20, points 1 to 4 ("alle accepted").
14.2 CPU · 6.7 GB · 1 GPU freeorheld.max_gpus: the most GPUs it offers the pool;0keeps them for its owner; not set, as before, all.Decided on my own (also in the ADR):
nvidia-smi's), noshare_percentfor GPUs.busy; lowering the cap takes nothing from a running lane.--max-gpusonly when set, so an older agent in a WSL distribution still starts.nvidia-smi, once a round) only while a lease holds one, and writes them into the lane's file with its containers' load; the daemon keeps them out of the lane's expected memory need.Changes
devstack-node:share::offered_gpus(cap, busy, held),assign_gpusfrom that view,Settings::max_gpus,--max-gpus;laneinfra::refreshwrites the lease's GPUs.devstack-daemon:external.rsreadsgpus,usage.rsreports the lane'sgpu.devstack-hub: the switch'smax_gpus, passed to the agent.· 1 GPU freein the machines table, "in use on the machine", GPU cap in the share switch and setup dialog.docs/pool.md,docs/dashboard-api.md, CHANGELOG, ADR-0115.Verification
cargo fmt --check,cargo clippy --workspace --all-targets,cargo test --workspace: green.ui:npm run typecheck,vitest(297 tests): green.2 GPUs (1 free)in the machines table, the GPU cap saved as 0.🤖 Generated with Claude Code