notes

A saturated workload does not migrate under this scheduler

Name: ratified 2026-10-18 (calef, "Approve as a group"). Refused migration-finding.

An appendix to notes/soak.md, which states the finding and what it means for risk 5. This file holds the measurement, the mechanism, the instrument that found it, and the instruments the soak was deliberately not built on.

The finding

This is the part worth reading, and it is the reason the milestone was worth running rather than merely worth building. It is still true, and milestone 221 (the soak never crosses cores, so build the hook that makes it) did not repeal it. What that milestone added is a thread that is not part of the saturated workload, precisely because nothing inside the workload can be made to move.

The cross-core handoff count freezes within the first second and never moves again. It was measured across three topologies: one caller per responder, three callers per responder, and twice as many groups as cores. It was measured on both multicore architectures, at up to 65,000 round trips a second. The workload runs on every core and contends on every shared scheduler structure. The threads themselves stay exactly where pick_spawn_target put them.

The mechanism, and every clause of it is in the tree already

A placement counter cannot see this migration

Counting trace::Event::PlaceRemote reports 23, frozen, which reads as "the threads are not moving". That is true, but the counter could not have shown it. A rendezvous wake queues its peer locally, so the placement is local even when the thread has moved between cores. A placement counter is structurally blind to the migration this workload performs.

thread::Thread::last_cpu and trace::Event::Migrated answer the question where it cannot be dodged. That is schedule()'s switch_in, the one place every path to a CPU passes through, whatever moved the thread, and the finding holds under it.

Take the lesson, not just the number: a counter that is near the question is not the same as one that answers it, and the two agree right up until they matter.

What this means for risk 5

The decisive experiment as the risk states it, "sustained multi-core stress", is not one experiment. It is at least two, and this milestone delivers the first:

Saying so is the point. A run that quietly covered one and was quoted as covering both would be exactly the misuse design/roadmap/0219-a-workload-that-does-not-stop.md's BUGS section warns about. script/soak-test prints the gap on every run, so that nobody has to have read this note to know.

The second half is now runnable, which is a different claim from "has been run". See tick-route.md.

Why this extends serial_console and not the other two instruments

script/repeat-under-load and script/interleaving-check are the tree's existing load and concurrency instruments, and neither was the right place for this.