---
title: "Scaling data ingestion for machine learning training at Meta"
description: "Meta'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."
url: "https://swe.quest/articles/scaling-data-ingestion-for-machine-learning-training-at-meta-87e5966270af4276"
canonical: "https://engineering.fb.com/2022/09/19/ml-applications/data-ingestion-machine-learning-training-meta/"
source: "Meta Engineering"
published: "2022-09-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["ml-platform","data-pipelines","performance","storage-systems","recommendation-systems"]
---

# Scaling data ingestion for machine learning training at Meta

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-09-19, 11 min read, Case study. Original: [https://engineering.fb.com/2022/09/19/ml-applications/data-ingestion-machine-learning-training-meta/](https://engineering.fb.com/2022/09/19/ml-applications/data-ingestion-machine-learning-training-meta/)

## Summary

Meta'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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)

## Prerequisites

- columnar storage formats
- ML training pipelines ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))
- memory bandwidth bottlenecks

## Keywords

DPP, Tectonic, DWRF, Apache ORC, Hive, PyTorch, FlatMaps

## Related posts

- [Meta’s AI Storage Blueprint at Scale](https://swe.quest/articles/meta-s-ai-storage-blueprint-at-scale-5c0823e3afed9f38.md): Meta Engineering · 2026-07-01 · Medium · 11 min read · Storage systems, ML platforms, Caching, System design, Performance engineering
  Meta rebuilt its BLOB-storage stack on top of the Tectonic block layer to stop storage from stalling GPUs in AI training.
- [Streaming datasets: 100x More Efficient](https://swe.quest/articles/streaming-datasets-100x-more-efficient-8732da9f7e4dd1b1.md): Hugging Face · 2025-10-27 · Medium · 7 min read · Data pipelines, Model training, Performance engineering, Python, Storage systems
  Hugging Face reworked streaming in the \`datasets\` library so multi-terabyte datasets can feed large training jobs directly from the Hub, keeping the same \`streaming=True\` API.
- [From Chunks to Blocks: Accelerating Uploads and Downloads on the Hub](https://swe.quest/articles/from-chunks-to-blocks-accelerating-uploads-and-downloads-on-the-hub-0403426cd59197cb.md): Hugging Face · 2025-02-12 · Medium · 9 min read · Storage systems, ML platforms, Data structures, Performance engineering
  Hugging Face's Xet storage backend uses content-defined chunking for deduplication but avoids per-chunk overhead by aggregating chunks into content-addressed blocks of up to 64MB and using shards to map files to chunks.
- [How Meta trains large language models at scale](https://swe.quest/articles/how-meta-trains-large-language-models-at-scale-c827e36c67bd0ee6.md): Meta Engineering · 2024-06-12 · Easy · 6 min read · Model training, Networking, Hardware, Datacenters, Distributed systems
  Training LLMs at Meta shifted workloads from many small recommendation jobs to a few enormous GPU jobs, forcing changes across hardware, data center layout, reliability, networking and storage.
- [How we scaled metrics aggregation by moving durable state into storage](https://swe.quest/articles/how-we-scaled-metrics-aggregation-by-moving-durable-state-into-storage-09bea3fd544962da.md): Datadog Engineering · 2026-11-17 · Medium · 12 min read · Stream processing, Scaling, Observability, Storage engines, Distributed systems
  Datadog's metrics aggregation service, which merges DDSketch distributions to reduce tag dimensions, went through three generations as volume grew roughly 10× each time.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
