Skip to content

Commit debf478

Browse files
ppennaCopilot
andcommitted
doc: describe CI's AMD runners and what an AMD series needs
doc/benchmarks.md said that every CI microVM runner is an Azure VM with an Intel Xeon CPU and that none has an AMD CPU. Since the pools grew to eight runners each, four runners of each pool are AMD VMs, three with an EPYC 9V74 (Genoa) and one with an EPYC 7763 (Milan), all with the general role, so the microVM jobs run on them too, while each pool's one benchmark runner, which alone measures the backend's series, is still an Intel VM. Say so in doc/benchmarks.md, and say what an AMD benchmark runner needs before it takes the benchmark role: since runs-on can require labels but not exclude them, each series' platform job must also require a label of its vendor's benchmark runner, amd for an AMD series and, for an Intel series, one that the AMD runners lack, such as intel, added to the Intel benchmark runners before a workflow requires it; otherwise a platform job could take the other vendor's benchmark runner and fail its expected-host check. doc/ci.md names the AMD runners' CPUs, the CPU profiles that the microVM jobs boot on them, and how often a run's microVM jobs landed on each vendor's runners. Evidence: gh api repos/microsoft/nvx/actions/runners lists azure-amd-{kvm,mshv,whp}-{1..4} with general and amd, and the Intel benchmark runners azure-intel-kvm-3, azure-intel-mshv-4, and azure-intel-whp-5. The AMD runners' job logs report an EPYC 9V74 on -1 to -3, which boots amd.genoa.v2 (jobs 140406166675, 140406166752, and 140406468206 of run 45959894528 on KVM, MSHV, and WHP), and an EPYC 7763 on -4, which boots amd.milan.v1 (job 140589278699 of run 46023491895, 140406166566 of run 45959894528, and 140394803453 of run 45959888332), with doctor H2 and H3 passing. The data/*-virtual-machine-host.json files record Intel Xeon 8370C and 8573C hosts. Of the 40 CI runs that started on November 27, 2026, between 04:06 and 15:34 UTC, AMD runners ran 240 of the 422 microVM jobs, and each backend's microVM jobs ran on an AMD runner in 39 or 40 of the runs and on an Intel runner in 35 to 39. Refs #410 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e899b06 commit debf478

2 files changed

Lines changed: 31 additions & 14 deletions

File tree

‎doc/benchmarks.md‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,27 @@ coordinator fills the `.sh.in` templates before use.
5252
| `linux-mshv-virtual-machine` | MSHV | Virtual machine |
5353
| `windows-whp-virtual-machine` | WHP | Virtual machine |
5454

55-
The series names carry no CPU vendor: every CI microVM runner is an Azure virtual machine with an
56-
Intel Xeon CPU (Ice Lake-SP or Emerald Rapids), so each series has one vendor's samples. No CI
57-
microVM runner has an AMD CPU, so no AMD series exists yet. An AMD runner needs a built-in AMD
58-
[CPU profile](usage.md#cpu-profiles), because CI never uses host profiles and `benchmark` refuses a
59-
CPU that no built-in profile serves, and only Milan, Genoa,
55+
The series names carry no CPU vendor: each pool's benchmark runner alone measures its series, and
56+
the three benchmark runners are Azure virtual machines with Intel Xeon CPUs, whose models their
57+
`data/<platform>-host.json` files record, so each series has one vendor's samples. The pools also
58+
hold AMD virtual machines, with EPYC Genoa or Milan CPUs, but each of them carries `general`, so it
59+
runs the microVM tests and the other non-benchmark jobs, never a platform job, and no AMD series
60+
exists yet (see [Job graph and runner capacity](ci.md#job-graph-and-runner-capacity)). An AMD
61+
benchmark runner needs a built-in AMD [CPU profile](usage.md#cpu-profiles), because CI never uses
62+
host profiles and `benchmark` refuses a CPU that no built-in profile serves, and only Milan, Genoa,
6063
and Turin CPUs have one so far. Such a runner boots its guests on that profile through AMD-V, so its
6164
timings would skew an Intel series' baseline. [#410](https://github.com/microsoft/nvx/issues/410)
62-
tracks AMD runners. Before an AMD runner joins CI, give it series of its
65+
tracks AMD benchmark runners. Before an AMD runner takes the `benchmark` role, give it series of its
6366
own, named with an `-amd` suffix such as `linux-kvm-virtual-machine-amd`, in `PLATFORM_NAMES` and
6467
`OPENVMM_BACKENDS` in `scripts/nvx_tools/performance.py` and in the CI matrix, so their history
65-
lives in separate `data/` files. Local measurements on AMD hosts can use the names above, because
66-
only CI records history.
68+
lives in separate `data/` files. A job's `runs-on` can require labels but not exclude them, so each
69+
series' platform job must also require a label of its vendor's benchmark runner: `amd`, which the
70+
AMD runners carry, for an AMD series, and for an Intel series a label that the AMD runners lack,
71+
such as `intel`, which the [runner setup scripts](../scripts/setup/README.md#github-actions-runners)
72+
add with `--extra-runner-labels` or `-ExtraRunnerLabels`; add it to the Intel benchmark runners
73+
before a workflow requires it. Otherwise a platform job could take the other vendor's benchmark
74+
runner, and the job's [expected host](#expected-benchmark-hosts) check would fail it before it
75+
measures. Local measurements on AMD hosts can use the names above, because only CI records history.
6776

6877
CI runs the complete acceptance and performance suites and the five device metrics at one vCPU
6978
under the canonical microVM, and only the 512 MiB shell snapshot restore at `2`,

‎doc/ci.md‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -918,12 +918,20 @@ one's 8.9, on the benchmark runners, for which the platform jobs of
918918
overlapping runs queue.
919919

920920
The KVM, MSHV, and WHP pools have eight runners each. The pools mix Intel and
921-
AMD virtual machines; the AMD runners also carry `amd`, which no job requires.
922-
In each pool, one runner carries `benchmark` and runs only the platform job,
923-
and the others carry `general` and run all non-benchmark backend jobs. Platform
924-
jobs from overlapping workflow runs still measure one after another on their
925-
backend's single benchmark runner, but they never wait behind an unrelated
926-
build or test.
921+
AMD virtual machines: four runners of each pool are AMD VMs, three with an
922+
EPYC 9V74 (Genoa) and one with an EPYC 7763 (Milan), and they also carry `amd`,
923+
which no job requires. In each pool, one runner, an Intel VM, carries
924+
`benchmark` and runs only the platform job, and the others carry `general` and
925+
run all non-benchmark backend jobs. A microVM job therefore boots the Genoa or
926+
Milan [CPU profile](usage.md#cpu-profiles) when it lands on an AMD runner and
927+
an Intel one otherwise, while only Intel VMs measure the performance series
928+
(see [Benchmarks](benchmarks.md)). Since no job requires a vendor, a run tests
929+
a vendor's CPUs only where its jobs land: of 40 CI runs started on November 27,
930+
2026, between 04:06 and 15:34 UTC, the microVM jobs of KVM, MSHV, and WHP ran
931+
on an AMD runner in 40, 39, and 39 of them, and on an Intel runner in 35, 39,
932+
and 37. Platform jobs from overlapping workflow runs still measure one after
933+
another on their backend's single benchmark runner, but they never wait behind
934+
an unrelated build or test.
927935

928936
The role split follows an October 15-20, 2026 scheduling audit, when each pool
929937
had five runners. Before the split, the benchmark runners spent about one third

0 commit comments

Comments
 (0)