diff --git a/quest/m1/quic-sim-bulk-slow.md b/quest/m1/quic-sim-bulk-slow.md deleted file mode 100644 index 0084ccefa5b..00000000000 --- a/quest/m1/quic-sim-bulk-slow.md +++ /dev/null @@ -1,20 +0,0 @@ -# [S] Make the relay's concurrent-groups sim test fast - -## Goal - -`quic_sim::concurrent_groups_carry_bulk_transfers_losslessly` -(`rs/moq-relay/tests/integration/quic_sim.rs`) finishes well inside nextest's -SLOW mark, so `just check` never times it out. - -## Plan - -On a loaded host it takes 40 to 60 s on `main` (5589d3c295: 41, 45, 45, 51, -and 59 s), against nextest's 60 s limit, and timed out once in a full -`just check` on -[moq-dev/moq#9518](https://github.com/moq-dev/moq/pull/9518), whose branch -runs it in the same 39 to 52 s. The test runs on the simulated clock, so the -time is CPU spent simulating, not waiting. Profile one run (`perf record` on -the nextest binary) to see what dominates, such as per-packet work in the -simulated network or the transfer size, then shrink what the test does -without losing what it checks: concurrent groups carried losslessly under -the sim's congestion. Do not raise the timeout: a SLOW test is a bug to fix. diff --git a/rs/moq-relay/tests/integration/quic_sim.rs b/rs/moq-relay/tests/integration/quic_sim.rs index 91be8c5dc13..1c6a81a8277 100644 --- a/rs/moq-relay/tests/integration/quic_sim.rs +++ b/rs/moq-relay/tests/integration/quic_sim.rs @@ -315,9 +315,10 @@ fn many_groups_carry_bulk_transfers_losslessly() { } /// How many bulk transfers share one connection in -/// [`concurrent_groups_carry_bulk_transfers_losslessly`]: well past the two that pause when -/// each paused stream holds its whole stream window. -const SESSIONS: usize = 12; +/// [`concurrent_groups_carry_bulk_transfers_losslessly`]: past the two that pause when each +/// paused stream holds its whole stream window, which evicts one. Each costs the same CPU to +/// simulate, so more is left to [`MANY`]. +const SESSIONS: usize = 4; /// How many share one in [`many_groups_carry_bulk_transfers_losslessly`]. Past a couple of /// hundred, the frames in flight at once each hold credit until they seal, and that fills