PredictIO: Decoupling Workload Prediction from OS-Controlled Storage Prefetching

Jun Lu, Yancan Mao, Zhenya Ma, Sheng Yue, Yongjian Fu, Ju RenarXiv 2026

TL;DR

PredictIO is a new framework that decouples workload prediction from prefetch execution in the storage stack. By moving complex prediction logic to user space while keeping I/O execution in the kernel, it enables application-aware prefetching that reduces latency by up to 48% for LLM loading and speeds up database scans by nearly 3x.

What Problem Does This Paper Address?

Modern storage devices are incredibly fast, yet applications still stall waiting for data. The traditional solution is "readahead"—the OS guesses what you need next and fetches it early. However, standard OS readahead is "blind": it only looks for simple sequential patterns (spatial locality).

Many modern workloads don't follow these simple patterns:

  • Application Launches: Touch hundreds of sparse, non-contiguous files.
  • Databases: Traverse B-trees based on logical keys, which might be physically scattered across a disk.
  • LLM Runtimes: Load massive model shards based on specific tensor layouts and execution orders.

As shown in Figure 1, standard Linux readahead fails when access patterns aren't perfectly sequential, leading to high "tail" (P95) latency.

Figure 1. Linux readahead exploits offset locality rather than workload structure. Short contiguous runs receive little timely readahead and suffer high demand-read latency, while highly sequential accesses approach the sequential upper bound.

The authors identify a visibility asymmetry: the kernel sees raw file offsets, but only the application understands the structure that makes future I/O predictable. Existing attempts to fix this usually hardcode prediction logic into specific apps, making them brittle and hard to reuse.

Methods

The authors propose PredictIO, which implements a classic "policy-mechanism split":

  1. The Event Path: The kernel (via eBPF) or the application sends "hints" (like B-tree traversal steps or tensor metadata) to a user-space runtime.
  2. User-Space Policies: This is where the "brains" live. PredictIO supports diverse policies:
  3. History-based: Uses a Markov model to learn recurring sparse access patterns during app startup.
  4. Structure-aware: Uses B-tree traversal hints to predict upcoming child nodes in a database.
  5. Metadata-aware: Uses LLM tensor layouts to prefetch model weights before they are needed for computation.
  6. The Request Path: Policies emit uniform "page-range requests."
  7. Kernel-Space Executor: A specialized kernel backend receives these requests. It validates them, checks if the pages are already in the cache, and issues asynchronous I/O while ensuring speculative work doesn't overwhelm the system.
Figure 2. Different workloads expose different prediction sig- nals. Application launch contains recurring but sparse per-file page sequences, while SQLite B-tree traversal maps logically adjacent accesses to physically distant pages.

Datasets and Workloads

The researchers evaluated PredictIO across three major categories:

  • Desktop Applications: PyCharm, Shotcut, Firefox, VSCode, and Blender (measuring "cold start" latency).
  • Databases: SQLite and LMDB (using YCSB-style benchmarks and fragmented B-tree scans).
  • LLM Loading: Loading Qwen models (4.7GB to 12.1GB) using the llama.cpp runtime.
  • Hardware: Testing across NVMe SSDs, SATA SSDs, and traditional HDDs to see how device speed affects prefetching benefits.

Key Insights and Ideas

  • Decoupling is Powerful: By standardizing the interface between prediction and execution, a single B-tree prediction policy can be reused for both SQLite and LMDB with only tiny "adapters" (less than 100 lines of code).
  • Visibility is the Bottleneck: The primary reason prefetching fails isn't a lack of I/O bandwidth, but a lack of information. Providing the prefetcher with application-level context (like "I am about to scan this logical range") is more effective than any kernel-side heuristic.
  • Safety First: Moving prediction to user space could be risky if a buggy policy requests gigabytes of useless data. PredictIO's kernel executor acts as a gatekeeper, bounding the amount of in-flight speculative I/O to prevent "cache pollution."

Key Results

  • Application Launch: Reduced cold-start latency by 5.3–26.3%.
  • Databases: Achieved up to a 2.99× speedup for SQLite range scans on fragmented databases.
  • LLM Loading: Reduced loading latency by 8.8–47.9%. The benefit was particularly high when using explicit I/O paths rather than memory-mapped files.
  • Low Overhead: The control path (eBPF and user-space dispatch) is highly efficient, handling millions of events per second with nanosecond-scale latency.
  • Storage Sensitivity: While PredictIO provides massive gains on fast NVMe drives, its benefits are lower on HDDs, where speculative reads can actually compete with and slow down "demand" reads.

Limitations and Future Work

  • Training Requirement: The history-based policy for app launches requires an offline training phase to build its Markov model.
  • HDD Contention: On very slow devices (HDDs), the cost of a "wrong" prefetch is high. Future work could involve more dynamic throttling based on real-time device congestion.
  • Manual Instrumentation: While the adapters are small, developers still need to manually add "hints" to their applications to get the most out of structural or metadata-aware prefetching. Integrating this into common I/O libraries could automate the process.

Summary updated

BibTeX
@misc{lu2026predictio,
  author = {Jun Lu and Yancan Mao and Zhenya Ma and Sheng Yue and Yongjian Fu and Ju Ren},
  title = {{PredictIO: Decoupling Workload Prediction from OS-Controlled Storage Prefetching}},
  year = {2026},
  eprint = {2610.12971},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.12971},
}
Figure