Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 72 additions & 37 deletions docs/perf-runner.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,88 @@
# CI benchmarking machine
The machine that actually executes the benchmarks in CI has the following configuration.
# Benchmarking machine
The machine that actually executes the benchmarks is the `AX-42` server running on [Hetzner](https://www.hetzner.com/dedicated-rootserver/). It has the following configuration.

## Hardware
- 6-core AMD Ryzen 5 3600 with HyperThreading (12 hardware threads total)
- 8-core AMD Ryzen 7 PRO 8700GE with HyperThreading (16 hardware threads total)
<details>
<summary>Output of `lscpu`</summary>

```
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 113
Model name: AMD Ryzen 5 3600 6-Core Processor
Stepping: 0
CPU MHz: 3819.020
CPU max MHz: 3600.0000
CPU min MHz: 2200.0000
BogoMIPS: 7186.58
Virtualization: AMD-V
L1d cache: 32K
L1i cache: 32K
L2 cache: 512K
L3 cache: 16384K
NUMA node0 CPU(s): 0-11
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate sme ssbd ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smca
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-7
Off-line CPU(s) list: 8-15
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 7 PRO 8700GE w/ Radeon 780M Graphics
CPU family: 25
Model: 117
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
Stepping: 2
CPU(s) scaling MHz: 88%
CPU max MHz: 5184.0000
CPU min MHz: 0.0000
BogoMIPS: 7300.19
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 cl
flush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm co
nstant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmpe
rf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt ae
s xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4
a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core p
erfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba pe
rfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi
2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflu
shopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsave
s cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx512_bf16
clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_
save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshol
d avic vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2
gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid ove
rflow_recov succor smca fsrm flush_l1d
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 8 MiB (8 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Mitigation; Safe RET
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; STIBP always-on;
RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Srbds: Not affected
Tsx async abort: Not affected
```

</details>
- 64 GiB RAM, 32 GiB of swap
- 64 GiB RAM, swap disabled

## Software
- Kernel: `4.15.0-191-generic`
- OS: Ubuntu `18.04`
- Kernel: `6.8.0-60-generic`
- OS: Ubuntu `24.04`

## Configuration
### HyperThreading & Turboboost
As of November 2022, both are disabled.

Prior to October 2022, both were enabled. During October 2022 some
[experimentation](https://github.com/rust-lang/rustc-perf/issues/1450) was done
which found that disabling both reduced variance significantly.
The machine is configured via [this](https://github.com/rust-lang/simpleinfra/blob/master/ansible/playbooks/rustc-perf.yml) Ansible script.

### HyperThreading & Turboboost
Both are disabled.

### CPU scaling
Scaling governor set to `performance`.
Expand All @@ -62,4 +97,4 @@ Note that ASLR is also
Disabled with `kernel.nmi_watchdog=0` in `sysctl.conf`.

### Swap
`vm.swappiness` set to `60`.
`vm.swappiness` set to `10`. Swap is disabled anyway though.
Loading