Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 9 min read Case study hardMaster

How Facebook deals with PCIe faults to keep our data centers running reliably

Meta detects, diagnoses and remediates PCIe faults across millions of servers using PCIcrawler, MachineChecker, a log-parsing error service, FBAR auto-remediation and Scuba analysis. Any uncorrected PCIe error marks hardware faulty. Corrected errors are tracked as rates over several windows and checked against per-platform thresholds derived by correlating them with system stalls. Down-negotiated link speed and width are detected by comparing current speed and width against the minimum capabilities of both link ends. Reseating fixes most link issues, with repeat-offender rules escalating to component and then motherboard swaps, and rate-limited remediation keeps a code bug from mass-draining the fleet.

Related posts

  • Detecting silent errors in the wild: Combining two novel approaches to quickly detect silent data corruptions at scale

    Meta Engineering mediumAdept

    Meta detects CPU silent data corruptions (SDCs), hardware errors that leave no log trace and propagate into applications, with two complementary fleet-testing methods. Fleetscanner piggybacks minutes-long intrusive tests on maintenance events like reboots and firmware upgrades, reaching each machine about once every 180 days. Ripple testing injects bit patterns with known results alongside production workloads in runs of hundreds of milliseconds, finding 70% of faulty CPUs within 15 days versus about 6 months for opportunistic testing. Because each method also catches faults the other misses (23% unique to opportunistic, 7% to ripple), Meta recommends running both.

  • How Meta keeps its AI hardware reliable

    Meta Engineering hardMaster

    Silent data corruptions (SDCs), hardware miscomputations that leave no trace, now occur at roughly one fault per thousand devices and are a growing threat to large-scale AI training and inference. Meta classifies hardware faults as static, transient or silent. It detects SDCs fleet-wide with Fleetscanner (periodic directed tests every 45-60 days), Ripple (millisecond co-located tests) and Hardware Sentinel (kernel-space exception analysis, 41% better than test-based methods). For AI workloads, SDCs cause NaN propagation and corrupted gradient variance during training and wrong outputs during inference. Mitigations combine infrastructure strategies (reductive triage, deterministic training, hyper-checkpointing) with stack strategies (gradient clipping, algorithmic fault tolerance, shadow-node verification, parameter vulnerability factors, divergence detection).

  • Inside Prometheus: Meta’s Journey to a Gigawatt-Scale Supercluster

    Meta Engineering hardMaster

    Prometheus is Meta's gigawatt-scale AI training supercluster in New Albany, Ohio, built in phases toward roughly 1 million GPUs. It runs NVIDIA GB200 (Catalina/Ariel, 800G scale-out per GPU) and GB300 (Clemente) NVL72 racks on a dedicated Ethernet back-end network with building-level fabrics of up to 20,736 GPUs and an aggregation network spanning 2 to 100+ km. Reliability engineering covers 64-of-72 GPU slices with in-rack spares (about 13% overprovisioning), parallelism-aware fault tolerance, async delta checkpointing, and targeted fixes for NVLink signal integrity and HBM faults. These cut interruptions by 99% and delivered over 85% goodput for pre-training, over 90% for RL, and an MTBI above 54K GPU hours.

  • Everyone gets faster writes: We turned off FPW's in Neon

    Neon hardMaster

    Neon disabled Postgres full-page writes fleet-wide because its stateless compute streams WAL to a Paxos safekeeper quorum and has no local disk pages that can tear. To keep delta chains bounded without FPW images, the pageserver now generates page images itself once a page accumulates more deltas than a threshold, rather than relying on the checkpoint cycle. HammerDB TPROC-C throughput rose up to 4.5x on 32 vCPU, and WAL per transaction fell from 58KB to under 4KB (94%). In production, p99 read latency dropped 30-50%, and the change was rolled out without restarts via the XLOG_FPW_CHANGE WAL record.

  • Power Loss Siren: Making Meta resilient to power loss events

    Meta Engineering mediumAdept

    Power Loss Siren (PLS) is Meta's rack-level power loss detection system: a relay daemon on each top-of-rack switch polls power supply signals and, if AC power isn't restored within 45 seconds, sends a link-local UDP multicast so server-side handlers can act during the remaining ~45 seconds of the rack's 90-second battery runway. MySQL uses the signal to proactively promote remote secondaries while the old primary keeps serving writes on battery, and stateless PHP web servers drain gracefully, cutting peak error rates during power loss events by about 100x. PLS also let Meta stop building dual-powered rows, spreading storage racks across the data center and reducing buffer capacity and stranded power. Planned work includes deferring Tectonic disk-cache flushes until a power loss alert, which early tests suggest cuts disk utilization about 13% and write latency about 50%.

The quest for software engineering knowledge.

Look:
Layout: