The Performance Envelope of Inverted Indexing on Modern Hardware

Jimmy Lin, Lori Paniak, Gordon BoerkearXiv 2019

Abstract

Traditional inverted indexing, the foundation of modern search engines, has reached a performance ceiling dictated by hardware rather than software. This paper evaluates the Lucene indexing library on high-end hardware to identify modern bottlenecks. Results indicate that indexing throughput is primarily constrained by physical disk I/O and file system overhead, suggesting that future performance gains require architectural shifts rather than incremental algorithmic improvements.

Introduction

The inverted index remains the core data structure for large-scale information retrieval systems. Despite the rise of neural search, production environments at major tech companies still rely on this "mature" technology. However, as hardware has evolved to include dozens of CPU cores and terabytes of RAM, the question arises: where does the performance bottleneck lie today? This study investigates whether software optimizations or hardware limitations define the current performance envelope.

Methodology

The researchers utilized the Lucene search library via the Anserini toolkit on a server featuring dual Intel Xeon Platinum processors (48 cores) and 1 TB of RAM. They tested various storage configurations to isolate I/O bottlenecks by varying the source of raw data and the target for the index. Storage options included a network-attached Ceph cluster, local disk arrays (tested with ZFS and XFS file systems), and SATA SSDs.

Two standard web crawl datasets were used for benchmarking:

  • ClueWeb09b (CW09b): 50.2 million pages, totaling 231GB (compressed).
  • ClueWeb12-B13 (CW12b): 52.3 million pages, totaling 389GB (compressed).

Results and Analysis

The experiments revealed that hardware and file system choices significantly impact indexing speed, with throughput varying by up to 3x for the same dataset depending on the configuration.

Table 1: Indexing performance metrics across different source and target storage configurations for the CW09b and CW12b datasets.

Key Findings

  • Physical Isolation: The highest throughput was achieved when source data and the target index were on physically separate media (e.g., Ceph to SSD). Reading and writing from the same disk array caused significant performance degradation due to disk head contention.
  • File System Overhead: The choice of file system proved critical. XFS outperformed ZFS by approximately 40%, as the computational overhead of ZFS's data protection features (like checksumming) slowed high-throughput indexing.
  • The Hardware Ceiling: In the best-case scenario (Ceph to SSD), indexing reached speeds of roughly 14,500 documents per second for CW09b. The researchers observed a consistent write throughput of ~500MB/s, which is the theoretical limit of the SATA controller, indicating the software was running at the hardware's maximum capacity.
  • Network Efficiency: Surprisingly, reading data over a 10 GbE network (Ceph) was often as fast as local spinning disks, suggesting modern networking is no longer a primary bottleneck.

Discussion and Conclusion

The study concludes that traditional indexing software is now "running as fast as the hardware allows." Because the system eventually chokes on disk write speeds even with 48 cores available, further algorithmic tweaks to compression or processing are unlikely to yield significant gains.

Future work must focus on rethinking the indexing pipeline to better manage I/O concurrency and exploit high-speed NVMe storage. Moving away from the current model of independent thread processing toward a model that optimizes for modern storage controllers will be essential to breaking the current 500MB/s barrier.

Summary updated

BibTeX
@misc{lin2019performance,
  author = {Jimmy Lin and Lori Paniak and Gordon Boerke},
  title = {{The Performance Envelope of Inverted Indexing on Modern Hardware}},
  year = {2019},
  eprint = {1910.11028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.11028},
}
Figure