notes

Where the kernel suite's time goes

Read from the time-record-* artifacts of 30 green merge-group runs of ci.yml, 2026-10-16 16:43 to 2026-10-17 16:28 UTC. Milestone 807 (the kernel suite reports what each test cost, and the riscv64 suite's time is explained) wrote the record. Every figure is guest time under QEMU TCG unless it says phase, which is host time.

Full medians are in two files beside this page: kernel-suite-time/per-test-medians.tsv (654 tests, the median over the runs that recorded each) and kernel-suite-time/per-module-medians.tsv (110 system_tests modules; each run's module sum, then the median).

The runs

39049533667, 39047563611, 39046882948, 39044362921, 39044296578, 39042260802, 39041012695, 39031958289, 39026018093, 39024963403, 39022703071, 39008645871, 39004167669, 39003594045, 39002671195, 39002638565, 39000567580, 38999427449, 38997281221, 38997118765, 38994400601, 38994366541, 38993833063, 38976866787, 38976812950, 38975708023, 38973117762, 38970563790, 38969976716, 38934238212.

These are the 30 newest successful runs that kept all four artifacts (time-record-test-aarch64-riscv64, -test-x86_64, -cpu-matrix-1, -cpu-matrix-2). The artifacts start on 2026-10-15, so no older run can be read.

How long each suite takes

Median seconds of host time per phase, from the test job's legs. The range over the 30 runs is in the record.

leg image build boot suite
aarch64 system_tests 6.8 0.1 149.8
riscv64 system_tests 6.7 0.2 184.1
x86_64 system_tests 7.0 0.7 129.5
aarch64 kernel unit tests 2.7 0.1 7.5
riscv64 kernel unit tests 3.2 0.2 8.9
x86_64 kernel unit tests 3.7 0.7 9.4

The five cpu-matrix models run the same riscv64 suite: 183.8 to 184.1 s for four of them and 193.1 s for rva23s64. The suite phase is 184 s of a leg that costs about 200 s, so the suite is nearly all of it.

Where the riscv64 system tests spend it

Modules by riscv64 median, in seconds. The ratio is riscv64 over aarch64 where both ran the module.

module aarch64 riscv64 x86_64 ratio
compositor_tests 21.5 31.7 34.6 1.47
riscv64_virtual_io_tests none 30.3 none none
package_index_tests 19.5 19.9 18.9 1.02
display_tests 9.2 14.9 14.8 1.63
login_user_schedule_tests 8.4 12.8 0.0 1.53
net_confinement_tests 10.9 11.1 11.0 1.02
login_tests 3.9 4.8 0.0 1.24
all 110 modules 149.6 185.0 131.2 1.24

The riscv64 suite runs 391 system_tests, aarch64 394 and x86_64 378. Over the whole suite riscv64 is 1.24 times aarch64.

Two kinds of test sit at a ratio near 1.0. package_index_tests and net_confinement_tests wait on wall time or the network, so the emulated CPU does not matter. The modules with a ratio of 1.5 or more (compositor_tests, display_tests, login_user_schedule_tests) compute under TCG, where riscv64 is the slower emulation.

The ten slowest tests on riscv64, median seconds:

s test
19.9 package_index_tests::a_package_is_fetched_through_the_index_by_name_over_tls_and_judged_by_its_digest
15.2 riscv64_virtual_io_tests::an_accept_nobody_answers_ends_at_the_stacks_bound
10.1 display_tests::a_bitmap_font_and_a_vt_engine_put_readable_text_on_the_scanout
7.8 compositor_tests::three_clients_compose_into_one_scanout_and_the_host_sees_it
6.3 login_user_schedule_tests::suspending_a_user_ends_their_schedule_and_refuses_them_until_resumed
5.3 net_confinement_tests::a_squatter_at_a_shared_stack_endpoint_cannot_capture_the_clients_traffic
5.3 riscv64_virtual_io_tests::a_host_process_connects_to_the_guest_and_is_answered
5.2 net_confinement_tests::a_socket_holder_cannot_receive_on_its_socket_capability
4.7 confined_fuzzer_tests::a_confined_fuzzer_reaches_nothing_it_was_not_granted
3.9 nth_retype_tests::login_gives_back_everything_when_any_retype_of_a_login_fails

What the growth since 2026-09-20 consists of

The comparison points are two scrapes recorded in milestone 807's block (the riscv64 section of test went from 358 to 457 tests and from about 47 to 110 s between 2026-09-20 and 2026-10-06) and this page's record. They are different instruments. The block measured two scrapes of one suite 17% apart, so treat any difference under that as noise.

Between the 2026-10-06 scrape (320 system_tests, 129.0 s) and these runs (391 tests, 185.0 s), the suite gained 71 tests and about 56 s. What the data attributes:

What this does not explain

How the record is taken

xtask/src/time_record.rs writes the record. The child's stdout passes through byte for byte as it arrives, and each whole line is stamped. Four phases are cut from the stamps. build runs from the spawn to the guest's first line, which is cargo building the image and QEMU starting. boot runs to the runner's running line, suite to test result:, and exit to the child's exit. A phase whose end marker never came is left out rather than guessed.

The record is whole when every test announced on a test <path> ... line has a time line, every time line names such a test, and their count is the running line's.

The clock check compares the guest's sum of per-test times with the host's span for the same tests. On x86_64 the guest's clock is a TSC calibrated once at boot. Milestone 571 (the x86 boot calibrates the TSC once, and can be wrong by 4x) found it fragile, and nothing else in the tree would notice. The span holds every test body plus the overhead between tests: the name, the frame ledger's charge, and the reports after the last one. So the sum sits below the span and exceeds it only on a fast clock. Under TCG the guest's counter follows the host's clock and stops when the VM stops, so it cannot honestly run ahead. The upper slack covers the host's stamp landing a pipe read late. Half the span, the lower bound, is far below any measured share and far above a 4x error. Its three seconds of absolute slack keep a short image (137 kernel unit tests in about six seconds on riscv64) from failing on fixed costs. A repeated run is not judged, because the runner scans the frame bitmap twice between runs.

The host watchdog ends a boot 60 s past the running test's guest budget. The guest's ceiling fires on the first tick past its budget, prints the test's name and a thread dump, and exits; 60 s leaves that exit room, with margin for a guest clock a little behind the host's. Boot and exit get the default budget plus the grace, 150 s, and the slowest of either in CI on 2026-10-11 was 1.8 s. The slowest honest test in about 27,000 per-test records was 20.5 s, measured over three merge-group CI runs on 2026-10-11 and eight lane runs on patagonia, a shared and busy host. That test was package_index_tests::a_package_is_fetched_through_the_index_by_name_over_tls_and_judged_by_its_digest on aarch64, and no test reached 30 s. CI's test job runs every leg in a median of about 17 minutes, against a 25-minute timeout-minutes and the budget of milestone 721 (each merge-group CI job has a 20-minute budget). A hang costs a run 2.5 minutes and fails with the test's name. The hang that motivated it is in scheduler.md.