Meta’s AI Storage Blueprint at Scale
Meta rebuilt its BLOB-storage stack on top of the Tectonic block layer to stop storage from stalling GPUs in AI training. The rebuild collapsed multi-layer metadata into a flat ZippyDB schema with O(1) path-to-block lookups, replaced the dataplane proxy with a fat client SDK that streams directly from Tectonic, and deployed regional stacks colocated with GPUs. Hot spots and spikes are absorbed by a distributed data cache in spare GPU-host memory (Owl, ~80% hit rate) and a read-plan metadata cache (1-2 ms). Tail latency is handled with hedged reads, and checkpoint egress spikes with client-side dynamic concurrency control. To cut multi-hour cross-region ingestion, storage is treated as a tiered cache: host memory and flash as L1/L2, regional flash as L3 with TTL/LRU eviction, HDD-backed global storage as the source of truth, plus an explicit prefetch() API for on-demand hydration.
Related posts
- Scaling data ingestion for machine learning training at Meta
Meta Engineering mediumAdeptMeta's disaggregated Data PreProcessing tier (DPP) reads training data from the Tectonic file system, decodes it, extracts features and turns it into tensors for ML training. Because GPU performance is outpacing CPU and storage, many recommendation models are limited by data ingestion, and in power-constrained data centers that caps how many accelerators can be deployed. Four optimizations cut the data ingestion power budget by 35-45%. Storing each feature as its own on-disk stream (feature flattening with projection) raised reader throughput 2-2.3x, and client-side rebatching added 20-40%. A column-major FlatMap in-memory format added 9-17%, and storing features that are usually read together next to each other on disk cut storage-to-reader transfer by 45-55%. Future work includes HDD+SSD tiered storage and moving preprocessing onto GPUs.
- Consolidating Facebook storage infrastructure with Tectonic file system
Meta Engineering easyNoviceTectonic is Facebook's data-center-scale distributed file system that replaces a set of use-case-specific storage systems, each scaling to tens of petabytes, with exabyte-scale clusters serving an entire data center. It disaggregates file system metadata into independently scalable layers hash-partitioned over a shared key-value store, isolates performance across dozens of traffic groups rather than hundreds of applications, and uses a client-driven microservice architecture with tenant-specific client-side configuration to match specialized systems. Moving the data warehouse onto Tectonic cut its cluster count by 10x and freed stranded resources, with performance comparable to or better than the previous systems.
- Meta’s Infrastructure Evolution and the Advent of AI
Meta Engineering easyNoviceMeta's infrastructure grew from a LAMP stack with per-university databases to a global fleet of millions of machines. Along the way it added Memcache and TAO, edge POPs, a backbone network, cache-invalidation systems for cross-region consistency, and fleet systems such as Twine, Tectonic, ZippyDB, Shard Manager, Kraken, Taiji and Maelstrom. AI workloads changed those assumptions. Recommendation models brought GPUs into the fleet, and LLM training pushed synchronous jobs from 128 to thousands of GPUs, where one failure halts the whole job; Meta reports cutting the interruption rate by about 50x. It went on to build two 24k H100 clusters (InfiniBand and RoCE), a 129k-H100 cluster made by emptying five data centers, air-assisted liquid-cooled GB200 racks, AMD MI300 deployments, and its own MTIA silicon for ranking and ads inference.
- Building Meta’s GenAI Infrastructure
Meta Engineering easyNoviceMeta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3. One uses a RoCE fabric on Arista 7800 and OCP switches and the other uses InfiniBand, both with 400 Gbps endpoints, on Grand Teton servers. Storage combines a FUSE API over a flash-optimized Tectonic for synchronized checkpointing with a Hammerspace parallel NFS for interactive debugging. Large-cluster AllGather utilization initially ranged from 10% to 90%. Topology-aware job scheduling, routing changes and NCCL tuning brought it back above 90%, and PyTorch process-group startup dropped from hours to minutes.
- Xet is on the Hub
Hugging Face mediumAdeptHugging Face migrated its first model and dataset repositories from Git LFS to Xet storage, which uses content-defined chunking (~64 KB chunks aggregated into ~64 MB blocks) so that only changed bytes are uploaded. The migration moved 4.5 TB and ~6% of Hub download traffic in one day and exposed two production issues. First, unaligned range requests from hf_transfer forced CAS to stream whole blocks, a 4:1 read amplification. Adding chunk-length metadata to the block format fixed this and cut GET latency ~35%. Second, unflushed page cache during uploads caused disk throttling and pod load imbalance, which was mitigated with per-pod concurrent upload limits. The core lesson is that incremental migrations of real traffic surface problems test environments can't.