MARS: Multi-stage Accelerated Read Stack for Large-buffer Buffered Reads
Yang Shen, Kai Lu, Min Xie, Huijun Wu, Zhenwei Wu, Wenzhe Zhang
Abstract
Large-buffer reads increasingly connect data-intensive applications to high-speed storage. They amortize system-call overhead and create a larger in-kernel window for organizing page-cache work and submitting I/O. However, Linux buffered read primarily exploits only the former benefit. Within a large read, its conventional interleaved path repeatedly switches among fine-grained page-cache operations, amplifying metadata and serial orchestration overheads and failing to consistently expose enough in-flight requests to modern parallel SSDs. We present MARS, a multi-stage accelerated read stack for synchronous large-buffer buffered reads. MARS treats each large-range read as one unit of work and stages page-cache operations by data structure and dependency. During I/O waits, it handles user-buffer page faults and performs reorderable data copies early. Opportunistic kernel workers then copy remaining data in parallel and, when the backend provides sufficient parallelism, optionally submit I/O in parallel. We implement MARS in Linux 6.6.58. For MiB-scale fio reads, MARS improves bandwidth by up to 6.56 times over Linux. On five NVMe SSDs in RAID0, it reaches 36.87 GiB/s for 128 MiB random reads, 4.44 times Linux. MARS also accelerates DuckDB/Parquet queries by 1.80--2.15 times and ExecuTorch model loading by 3.17--3.61 times.
Create a lesson
Metadata
- Comments
- We found that the evaluation used Linux's default read-ahead setting. Enlarging the read-ahead window lets Linux issue substantially more I/O before waiting and removes most of MARS's reported advantage in the evaluated cold-read workloads. This materially changes the paper's central performance interpretation, so we withdraw it
Related papers
Behind a Simple Read: Understanding Work and Waiting in the Linux I/O Stack
Shared title terminologycs.OSYang Shen, Wenzhe Zhang, Yong Dong et al.
KuroANN: Avoiding Unnecessary SSD Reads in High-Recall Filtered Vector Search
Shared title terminologycs.OSSoobin Cho, Nakyung Lee, Jiwoong Park et al.
HyCoInfer: Cloud-Edge Collaborative Inference for Large Language Models on Heterogeneous GPU-FPGA Architectures
Shared title terminologycs.OSZewen Huang, Xiangwen Zhuge, Yingkun Hu et al.
EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities
Shared title terminologycs.OSZhengxiang Huang, Yujie Sun, Shengheng Chen et al.
High-Throughput Private Information Retrieval with on-CPU Accelerators
Shared title terminologycs.OSGyuyeong Kim
Aegis OS: A Transactional Multi-Tenant Operating System Runtime for Eliminating Authorization Fatigue in Autonomous Coding Agents
Shared title terminologycs.OSHui Zhao