Skip to content

Shorten the spill tests under Miri - #5

Merged
clabby merged 1 commit into
mainfrom
miri-spill-tests
Nov 14, 2026
Merged

clabby merged 1 commit into
mainfrom
miri-spill-tests

Conversation

@clabby

@clabby clabby commented Nov 14, 2026

Copy link
Copy Markdown
Owner

The Miri job timed out on main after both of the last two merges (run 43606927275). The four spill tests added in the performance round take 280 to 570 seconds each under Miri in CI. With them, the job took about 25 minutes on a good runner (1471 s of tests, against 748 s before the round) and went past its 30-minute limit on slower ones.

  • Spill tests. Under Miri they use 2 KiB blocks instead of 256-byte ones, so the class's largest bin holds 64 blocks instead of 512.
  • The test of a heap that only frees needs a class that can be reused anywhere, so it keeps 256-byte blocks. Under Miri it runs two bursts instead of eight.
  • The maintenance test stops feeding refills of the other class as soon as the idle batches have gone back, instead of running a fixed eight rounds.

Native runs are unchanged. With 64-byte blocks the four tests still cover a bin that has grown to its largest at 2048 blocks. I also checked the Miri sizes natively.

Locally under Miri, the four tests now take 21, 25, 36 and 53 seconds, down from 125 to 165 seconds each. The CI run on this PR will show the new job time.

The four spill tests took 280 to 570 seconds each in CI's Miri job, which
brought the job to about 25 minutes on a good runner and past its 30-minute
limit on a slower one (main timed out after both merges). Under Miri they now
use 2 KiB blocks, whose bin holds 64, and the test of a heap that only frees
uses the largest class that is reusable anywhere with two bursts instead of
eight. The maintenance test stops feeding refills once the idle batches are
back. Locally under Miri the four take 21 to 53 seconds, down from 125 to 165.
@clabby
clabby added this pull request to stack #7 November 14, 2026 15:57
@clabby
clabby merged commit 4dbde0f into main Nov 14, 2026
13 checks passed
@clabby
clabby deleted the miri-spill-tests branch November 14, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant