Abstract
In conventional disk processing, discontinuous sectors must be transferred by individual operations even if they reside on the same track. This often leads to unavoidable rotational latency when cache stage/destage operations start. This paper introduces the Continuous Operating Cache Schedule (COCS), a novel strategy that enables the transfer of discontinuous sectors in a single operation. By minimizing rotational latency and even achieving zero-latency in specific cases, experimental results illustrate that COCS significantly improves disk array performance.
The I/O Bottleneck: Rotational Latency
In the era of spinning disk systems, the "I/O bottleneck" remains a critical hurdle. Even with advanced disk caching, a physical limitation persists: rotational latency. When a disk controller needs to access "discontinuous" sectors (e.g., Sector 1 and Sector 4 on the same track), conventional methods treat these as separate operations.
After finishing the first sector, the controller must process interrupts and prepare for the next task. By the time it is ready for the subsequent sector, the physical disk head has often already spun past the start of that sector. This "missed head" problem forces the system to wait for a full disk rotation to reach the target sector again, causing latency to skyrocket.
The COCS Strategy
The authors propose Continuous Operating Cache Schedule (COCS) to address this. The core principle is a "more is less" approach: to speed up the system, the controller sometimes transfers more data than requested to maintain continuity.
Key Mechanisms:
- Range Tracking: The controller tracks the
MinSector(first dirty/staged sector) andMaxSector(last) for a given track. - Gap Filling: If a new request falls outside the current range but on the same track, COCS fetches all the "clean" sectors between the existing range and the new sector into the cache.
- Single Operation I/O: By filling these gaps, the cache always contains a physically successive block of data. During a "destage" (write to disk), the controller can write the entire range in one continuous motion, shielding the operation from software overhead delays.
Experimental Setup
The researchers evaluated COCS using a custom-built integrated disk array called HUST_RAID. The hardware environment consisted of:
- Host: A Pentium 133 PC.
- Storage: Five disks configured as a RAID 5 array (2.16GB total capacity) connected via SCSI 2.
- Simulation: The Qbench utility was used to simulate various I/O request rates and patterns to measure hit ratios and server response times.
Key Insights and Results
- Successive Cache Guarantee: The authors provide a logical proof that under COCS, all sectors in the cache for a given track will always be physically successive, simplifying scheduling logic.
- Zero-Latency Potential: If the disk head is at the
MinSectorposition when a destage starts, rotational latency effectively drops to zero. - Performance Gains: Experimental results showed that COCS consistently achieved a higher hit ratio due to aggressive pre-fetching. More importantly, the improvement in latency was dramatic; in high-demand scenarios, processing time dropped from approximately 18ms under a normal schedule to roughly 10ms—a 45% reduction.
- RAID 5 Synergy: COCS is particularly effective for RAID 5, where the "read-modify-write" cycle for parity updates frequently creates the discontinuous sector patterns that COCS is designed to optimize.
Limitations and Future Work
While effective, COCS introduces a trade-off in memory overhead. By filling gaps with unrequested data, it consumes more cache space per track, which could lead to more frequent evictions in memory-constrained systems. Additionally, while the current implementation is track-level, future work could extend these optimizations to handle multi-track transfers more efficiently. Although modern SSDs lack physical rotational latency, the underlying principle of coalescing small, discontinuous writes remains a foundational concept in modern storage controllers.
Summary updated