LayoutBench: Performance Benchmarking of Cloud Storage Layouts for Multimedia Data

Debopam Sanyal, Hongjie Chen, Alexey Tumanov, Joshua Kimball

TL;DR

LayoutBench is the first benchmark designed to systematically evaluate how the physical organization of multimedia data in cloud storage—such as individual files, tar archives, or Parquet tables—impacts retrieval performance and cost. The study reveals a critical trade-off: while columnar formats like Parquet can be faster for massive data fetches, they are often an order of magnitude more expensive than simple tar archives due to excessive network data transfer overhead.

What Problem Does This Paper Address?

Modern machine learning (ML) pipelines depend on massive datasets of images, audio, and video, typically stored in cloud object storage like AWS S3. Before a model can train, these samples must be retrieved and delivered to compute nodes. The "storage layout"—how these samples are grouped and organized—fundamentally determines how quickly and cheaply this happens.

Despite its importance, practitioners have lacked a systematic way to choose a layout. Existing benchmarks focus on structured database queries (OLTP/OLAP) rather than the large binary blobs typical of multimedia ML. Consequently, developers often choose layouts without understanding the hidden costs of network transfer or the memory bottlenecks of different storage strategies.

Methods

The authors introduce LayoutBench, an extensible framework that evaluates three representative layout strategies:

  1. L1 (Individual Objects): Storing each data sample as a standalone S3 object.
  2. L2 (Sequential Tar): Packing samples into tar archives and retrieving specific samples using HTTP RANGE GET requests based on a local metadata index.
  3. L3 (Columnar Parquet): Storing sample bytes as BLOBs within Parquet columns. This layout uses the DuckDB engine to perform "predicate pushdown," where the storage layer filters data before sending it to the client.

The benchmark measures three key metrics: end-to-end retrieval time, total data transferred, and monetary cost (S3 transfer fees + EC2 rental). The researchers tested these layouts across six different AWS EC2 instance types to identify whether performance was limited by CPU, memory, or network bandwidth.

LayoutBench retrieval architecture showing how L1, L2, and L3 interact with AWS S3.

Datasets

The benchmark utilizes the ImageNet-1K dataset (1.28 million images). To test scalability, the authors derived three versions:

  • Mini: A 1% random sample.
  • Medium: A 10% random sample.
  • Full: The complete training subset (~140 GB).

Evaluation is performed using 11 representative queries (Q1–Q11) that mimic real-world ML patterns, such as fetching all images of a specific class or filtering by image resolution and file size.

Key Insights and Ideas

  • The "Parquet Tax": While Parquet (L3) is a darling of the data engineering world, it carries a heavy price for multimedia. Because Parquet reads data in "row groups" (typically 128MB), fetching a single small image might require transferring tens of megabytes of unnecessary data.
  • Connection Reuse is King: The tar-based layout (L2) often outperforms individual files (L1) because it allows the client to reuse TCP connections for multiple range requests within a single archive, significantly reducing the "Time-to-First-Byte" latency.
  • Bottlenecks Shift with Layout:
    • L1 is bottlenecked by per-request latency.
  • L2 is bottlenecked by network bandwidth.
  • L3 is bottlenecked by memory; it requires much larger (and more expensive) EC2 instances to handle the metadata of large datasets.
  • Retrieval Size > Query Complexity: The dominant factor in how long a query takes is the number of samples returned, not how many filters (predicates) are in the SQL statement.

Key Results

  • Cost Dominance: Data transfer fees account for over 98% of the total cost.
  • L2 is the "Sweet Spot": For most image workloads, L2 provides the best balance. It is faster than L1 for large retrievals and significantly cheaper than L3.
  • L3 Performance Reversal: L3 is the slowest for small and mid-range queries but becomes the fastest for the absolute largest retrievals (e.g., fetching 230,000 images) because its row-group reads become more efficient at scale.
  • Economic Impact: In one test on the medium dataset, L3 cost $9.20 to execute a set of queries, while L2 cost only $0.80 for the exact same result.
Retrieval time comparison across different scales and instance types.

Limitations and Future Work

The authors acknowledge several limitations:

  • Modality: The study focused exclusively on images. Larger binary objects like high-resolution video or long audio tracks might shift the performance dynamics.
  • Read-Only: The benchmark does not currently measure the cost or time of writing/ingesting data into these layouts.
  • Single Provider: The experiments were limited to AWS S3; results might vary on Google Cloud Storage or Azure Blob Storage.

Future Work: The team plans to explore "hybrid layouts" that combine the I/O efficiency of tar files with the advanced filtering capabilities of Parquet, as well as extending the benchmark to text and vector retrieval workloads.

Summary updated

BibTeX
@inproceedings{sanyal2026layoutbench,
  author = {Debopam Sanyal and Hongjie Chen and Alexey Tumanov and Joshua Kimball},
  title = {{LayoutBench: Performance Benchmarking of Cloud Storage Layouts for Multimedia Data}},
  booktitle = {EuroMLSys@EuroSys},
  year = {2026},
  doi = {10.1145/3805621.3807610},
}
Figure