Repository navigation
Spec 06 Platform
Source: spec/06-platform.md at commit a9f0d61. The file is the source of truth; this page is a summary.
Chapter 06 specifies the machines and the operating system under every VYRN process. It covers the parts list per target and role, BIOS settings, the Linux kernel and its tuning, memory, the five NIC backends behind one Rust trait, the C shim, time and clock sync, AWS, the consumer box, macOS for development, host security, operating procedures, and the checklist a box must pass before it joins a facility. The engine chapters (05, 07) assume a quiet core, a hardware RX timestamp and a NIC that steers each packet to the lane that owns it. This chapter makes those assumptions true, or states exactly which target cannot and what it does instead.
-
One REF platform for every role (§0 P1, §2.1). All REF roles use the same EPYC 9575F board and memory and differ only in NICs and drives. The standby
vyrn-sequses the sequencer's SKU. -
Sequencer NICs (§0 P2, §2.3). The sequencer has 4 × X2541 client cards and 2 × dual-port X2542 replication cards, one per leaf switch. Port a carries stream-A (core 4) and port b carries stream-B (core 7). Each port has one CTPIO writer (
INV-PLT-7). - Fill TX → port map (§2.3). TX-A writes NIC0, TX-B writes NIC2, and TX-C writes NIC1 and NIC3.
- BIOS (§0 P3–P4, §3). NPS1, SMT off, C-states off, boost on, determinism slider on Performance, fabric P-state fixed. Firmware versions are pinned (§3.3).
-
Isolation (§0 P5, §4.2, §4.9).
isolcpus+nohz_full+rcu_nocbsapply to every core except the housekeeping coreHK: 51 on REF, 0 on CONSUMER,Hon AWS. An isolated core runs at most one thread, underSCHED_OTHER. Hot cores do not useSCHED_FIFO(§4.10). -
Mitigations and seccomp (§0 P6–P7, §4.4, §5.4).
mitigations=auto. Afterseal(), a hot thread is killed on any syscall outside a 9-entry allowlist. -
Five NIC backends (§0 P8, §6).
efvi,dpdk,afxdp,kernelandsimsit behindvyrn_nic::NicBackendand are dispatched statically.vyrn-seqstarts as a production sequencer only with latency class A, or with class C whentarget = aws(§6.8). - Fast-path frames (§0 P9, §6.2). IPv4 + UDP only, UDP checksum 0, no VLAN tag and no IP options.
-
C shim (§7).
vyrn-nic-shimturns ef_vi and DPDK header macros and inlines into real C-ABI functions. It holds no policy: client bytes are parsed only in Rust. Size:shim.his 84 lines, the total is ≤ 300 lines. -
Time (§0 P10–P11, §8). ptp4l runs on NIC 0. phc2sys slaves the other NICs to NIC 0.
vyrn-timemonmeasures cross-NIC skew on the wire. A box sequences only in stateELIGIBLE(INV-PLT-5). Losing the grandmaster is a holdover, not an outage. -
Deadline admission clock (§0 P13, §8.4). Each card has its own TSC↔PHC line, refreshed every 10 ms from a PTM cross-timestamp. The line's error bound is added to
age, soageis never under-stated (INV-PLT-6). -
NIC qualification on maxima only (§0 P14, §14.1–§14.2). A NIC qualifies only on maximum values over the whole B1 run: RX + TX ≤
NIC_FLOOR_NS, TX ≤ 240 ns, zero CTPIO fallbacks. B1 never ranks by percentile. - REF core map (§0 P15). It is the 01 §10 map. CCD 0 holds the BBO core, cuts, TX-A/B/C and streams. The pool is on CCD 7. Core 51 is the only core that is not isolated.
-
Pool NIC sharing (§0 P16, §6.3). The 7 pool cores share 7 ef_vi VIs on one card, with try-lock stealing inside CCD 7 (
INV-PLT-8). -
AWS (§0 P12, §9). The same x86-64 binary runs on
c6in.metalwith DPDK on ENA, on one NUMA node.rx_tsis the TSC at RX completion. - Consumer box (§10). A Ryzen 9 9950X3D with 11 lanes, one cut core and one merged TX core, using the V-cache CCD.
-
macOS (§11).
cargo test --workspacepasses on macOS. DEV latency numbers are never budgets or measurements.
All values are budgets unless the spec marks them otherwise. None of them is a measurement.
| Quantity | Value | § | Kind |
|---|---|---|---|
NIC_FLOOR_NS (RX + TX echo) |
560 ns | §0 P14, §14.1 | maximum (qualification) |
PLT_TX_MAX_NS |
240 ns | Local definitions | maximum (B1 checks it as a maximum) |
| RX budget | 320 ns | Open question 6, 01 §5 | budget |
PLT_JITTER_MAX_NS |
20 ns (all of DEADLINE_GUARD_NS = 20) |
§4.11 | maximum ("ever") |
PLT_TSC_MAP_ERR_NS |
10 ns | §8.4 | budget |
PLT_TSC_MAP_REFRESH_MS / _STALE_MS
|
10 / 50 ms | §8.4 | budget |
PLT_SKEW_BUDGET_NS |
25 ns, p99.9 | §8.3 | budget |
| Skew alarm / ineligible / halt | 50 / 100 / 1000 ns | §8.3 | budget |
PLT_HOLDOVER_MAX_S |
300 s | Local definitions | budget |
PLT_HUGEPAGES_REF / _CONSUMER
|
640 / 104 (1 GiB pages) | §5.1 | budget |
| Replica on-box log | 12 h at ≤ 20% load; ≥ 6 h (7.9 budget) at peak | §2.2 | budget |
PLT_N_LANES_AWS / PLT_N_LANES_CONSUMER
|
24 / 11 | §9.3, §10 | budget |
| CONSUMER throughput | ~220M msgs/s per book | §10 | budget |
| EPYC 9575F: 256 MB L3, 5.0 GHz boost | — | §2.1 | vendor |
| AWS instance rating 200 Gbps; per-flow 5 / 10 Gbps | — | §9.1, §9.4 | vendor |
-
- Decisions in one table
-
- How this chapter meets the hard constraints
-
- Bill of materials
-
- BIOS and firmware
-
- The Linux kernel
-
- Memory
-
- NIC backends
-
-
vyrn-nic-shim: the C shim
-
-
- Time
-
- AWS
-
- The consumer box
-
- macOS for development
-
- Host security
-
- Operating procedures
-
- Validation checklist
- Interfaces to other chapters (unnumbered)
- Local definitions (unnumbered)
- Requests to 01 (unnumbered)
- Open questions (unnumbered)
-
§14.1: fixes
DEADLINE_GUARD_NS= 20. The quiet-core probe bounds gaps at ≤ 20 ns, and the ≤ 10 ns TSC↔PHC error is added toage. 06 follows this (§4.11, §8.4). - §14.7: sets the REF NICs and storage: 2 × dual-port X2542 for replication, 12 × 61.44 TB NVMe per replica, an archive node per facility, and the X2522 for CONSUMER path B. 06 Request 3 still asks for the 61.44 TB drives, which §14.7 already has.
-
§14.11: on AWS,
rx_tsis the TSC read at RX completion. - §14.16: the observer box is 3 × ConnectX-6 Dx + 3 × X2541. TX ≤ 240 ns is a maximum of its own. Replica retention is ≥ 6 h at peak and 12 h at ≤ 20% load.
- §14.17.3: three TX cores, with TX-C on core 0 and OS and control on core 51. 06 builds its core map on this rule.
-
§14.18 O3, O4, O7: carried as 06's Open questions 13 (boot CPU in
nohz_full), 16 (archive feed gap) and 9 (PTM on X2541/SP5). -
Stale request: Request 9 says 01 still has
N_LANES_REF= 50 and that §14.3 has cut B on lanes 25–49 and the hasher on core 7. The current 01 has 49 lanes, and §14.3 has cut B on lanes 25–48 and the hasher on core 50. 00-index lists these as resolved.
vyrn-nic and the C shim (c/vyrn-nic-shim); host profiles in deploy/profiles/
The chapter lists 16 open questions. See Open Questions.
Overview
Working on VYRN
Spec
- 00 Index
- 01 Conventions
- 02 Requirements
- 03 Architecture
- 04 Protocol
- 05 Engine
- 06 Platform
- 07 Replication
- 08 Epochs
- 09 Chain
- 10 Accounts, Risk, MD
- 11 Build
- 12 Commitment
- 13 Availability
- 14 Envelope
Engine crates
Other crates
- vyrn-nic
- vyrn-log
- vyrn-data
- vyrn-consensus
- vyrn-replica
- vyrn-epoch
- vyrn-chain
- vyrn-md
- vyrn-sim
- vyrn-bench
Binaries
- vyrn-seq (stub)
- vyrn-validator (stub)
- vyrn-admin
Outside Rust
Reflects main at a9f0d61.