Introduction
Modern file systems often "micromanage" storage by specifying exact Logical Block Numbers (LBNs) for every write operation. This creates a "blind leading the sighted" scenario: the file system, unaware of the disk head's precise physical position or the platter's geometry, makes a best-guess location. The disk must then obey, often incurring unnecessary seek and rotational delays.
This paper introduces range writes, a simple yet transformative change to the disk interface. Instead of dictating a single block location, the file system provides a range of acceptable targets. This allows the disk to pick the optimal spot based on its internal state, slashing write latency by up to 3x without requiring a total rewrite of the storage stack.
The Range Write Primitive
The core proposal is a new primitive: RangeWrite(list of ranges, alignment, data). Unlike the traditional Write(address, data), this interface gives the disk flexibility. Once the write is complete, the disk returns the specific address it chose, allowing the file system to update its metadata (e.g., inodes) accordingly.
The authors propose two primary scheduling algorithms for handling these ranges:
- Expand-and-cancel (ECS): A range is treated as multiple independent requests. The first one to reach the disk head "wins," and the others are canceled.
- Hierarchical-range scheduling (HRS): A more sophisticated algorithm that uses the disk’s knowledge of its own geometry to find the fastest target with minimal computation.
Evaluation and Key Results
The study evaluated range writes using the DiskSim simulator and a software prototype called Bark, which optimizes journaling in the Linux ext3 file system. Benchmarks included synthetic random write workloads, Untar (unpacking the Linux source tree), PostMark (email server simulation), and TPC-B (transactional database).
Key findings include:
- Latency Reduction: Range writes virtually eliminated rotational latency when given track-sized ranges. As shown in the performance graphs, increasing the "Queue Size" (the number of available write options) significantly reduces total service time by minimizing rotational delay.
- System-Wide Speedups:
Untarsaw a 16% performance boost, whilePostMarkimproved by approximately 35%. - Journaling Optimization: The
Barkprototype nearly doubled performance for synchronous workloads in theTPC-Bbenchmark by turning the circular log into a flexible "write-ahead region." - Resilience to Disk Fullness: Even at 90% capacity, range writes provided a ~20% improvement as the disk could still optimize for the nearest available free block.
Discussion and Future Work
Range writes create a clean separation of concerns: the file system sets coarse-grained policy (e.g., "put this block in this cylinder group"), while the disk makes fine-grained mechanical decisions. Interestingly, providing just 8 to 16 well-spaced target choices captures most of the performance benefits.
However, challenges remain. File systems must handle "delayed address notification," adding complexity to allocation engines. Furthermore, scattering blocks to optimize write speed could potentially hurt subsequent read sequentiality. The authors suggest restricting ranges to maintain approximate sequentiality or using range writes primarily for flexible data like logs. Future work could also explore "Range Reads" for systems with replicated data (e.g., RAID 1), allowing the system to read from the mirror closest to the disk head.
While widespread adoption requires changes to industry-standard interfaces like SATA/SAS, range writes offer a compelling middle ground between rigid micromanagement and overly complex storage abstractions.
Summary updated