Synthetic fixtures computed locally. No model, graph runtime, GPU, scheduler or production service is contacted.
Experiment workspace
Decision trace
The question this experiment answers
A shared GPU at Belgavi's Book Store serves inference for the help desk agents and also runs a two-hour fine-tune. While the training holds the card, what should happen to inference requests: refuse them at once, let them wait until the training ends or their deadline passes, or drain the training and let it resume from its last checkpoint? And when the scheduler itself restarts mid-run, how long should it refuse new work while the training re-attaches? The rules follow what the Berth 0.6.0 release notes describe for berth train; the numbers come from this synthetic model.
Change one assumption at a time
Start from training_lock: 40 synthetic requests plus 3 retries during a scheduler restart, all refused at once while the training holds the card. Switch protection to pinned and watch the same requests wait out their 60 second deadline instead. Switch to none and the training is drained 19 times. Turn on a second card to see refusals turn into service elsewhere. Then change the restart rule from refuse until the training re-attaches to a fixed 15 seconds or no grace, and lower the re-attach time below 15 seconds to see when the fixed grace becomes safe.
Expected outcomes
With seed 15, a 120 minute training, 30 minute checkpoints, 3 minute requests and a 60 second client deadline: training_lock serves 5 requests on the card after the training, refuses 38 at once and finishes the training at minute 120. pinned_wait_to_deadline also protects the training but 35 requests time out after waiting, 2,100 seconds in total. no_protection serves all 40 requests, interrupts the training 19 times, loses 69 minutes of work and finishes at minute 266.7; with 5 minute checkpoints it loses 44 minutes and finishes at minute 241.7. With a second card, all 38 refused or timed-out requests are served there. restart_fixed_15s_grace admits 1 request onto the training card during the restart and restart_no_grace admits 3. pinned_hour_deadline serves 19 on the card and still times out 21.
Reading the decision trace
The first line restates the setup. Each later line is one request in arrival order, with its arrival time in minutes and seconds since the training started, the admission decision, how long the client waited and the outcome. Retries during the scheduler restart are labelled. A line marked COLLISION is a request admitted onto the card while the training still held it. The last line summarises service, refusals, timeouts, collisions and the training's lost work and finish time. Export JSON saves the inputs, every grouped row, the trace and these limits.
What this teaches
Refusing at once and pinning protect the training equally; the difference is what clients experience, a fast refusal they can act on or a wait that ends in a timeout. Draining a training is cheap for each request and very expensive for the run. The restart window is where a cooperative lease system can admit work onto a full card, and an unbounded wait for the training to re-attach closes it. The companion article explains the Berth 0.6.0 rules this model follows.
Limits of this model
One card, one training run, inference requests that each need the whole card for a fixed time, and clients that either give up at a deadline or move to a second card. Admission only: no VRAM accounting, no partial sharing, no queue priorities, no out-of-memory modelling, and no processes outside the scheduler, which a cooperative scheduler cannot stop. A collision only counts an inference admitted onto a card the training still holds. Arrivals are synthetic and seeded. This is not Berth's code and not a measurement of any GPU.