Freeblock scheduling
Freeblock scheduling fits background HDD transfers into predicted rotational delays while aiming to preserve the next foreground transfer's timing.
The foreground request is selected first; background work uses the remaining positioning opportunity. Extra seeks consume some of that opportunity. This is not simply waiting until the request queue is empty. [1]
Large sets of unordered blocks give the scheduler more choices. The last blocks of a scan can be awkward to reach; promoting them to foreground priority trades scan completion against foreground interference. [1]
The FAST 2002 external prototype used limited command queueing and adjacent-request merging to handle timing and drive-cache behavior. Imperfect prediction and control reduced usable bandwidth relative to the earlier simulation. [2]
The external prototype could merge a background read into a not-yet-issued destination request, but could not extend the already-issued source request. Separate commands on one track could trigger unwanted prefetch behavior. A wraparound opportunity therefore did not necessarily fit one permitted command. [2]
Figure 11 offers LBN ranges 1326-1334 and 1112-1145, containing 9 and 34 sectors. The prototype takes the larger range and leaves 9 sectors unused. Hesela's calculation gives 34/43 of this opportunity, not a disk-wide bandwidth or scan-completion fraction. [4]
Seek-time conservatism trades fewer missed rotations for fewer accepted background transfers. More background bandwidth can also reflect a less efficient foreground policy, so evaluate both workloads together. [2]
API contract: FAST 2004 also uses idle time. Tasks have no ordering guarantee; reads need not reflect registration-time contents. A write may complete through another write to the same location. Scheduling completion does not establish a point-in-time backup. [5]
Relations
- related
- Rotational latency, I/O scheduler, Anticipatory scheduling, Data scrubbing, Semi-preemptible I/O, Storage snapshot, Eager writing
Advantages
- The FAST 2004 getbuffer_fn callback acquires a write buffer only when selected for service and can decline an unavailable buffer, avoiding a lock throughout the potentially long scheduling wait. [5]
Limitations
- Prediction errors can miss the intended sector passage and add a rotation of delay. [2]
- Stable snapshot contents do not imply stable block addresses. In the paper's FreeBSD snapshot-COW case, the backup checks returned blocks with the snapshot system and re-registers relocated reads. Application-COW instead preserves the snapshot map. [5]
Citations
- Lumb et al. Towards Higher Disk Head Utilization: Extracting "Free" Bandwidth from Busy Disk Drives. OSDI 2000, sections 2, 5.2 and 6.
- Lumb, Schindler and Ganger. Freeblock Scheduling Outside of Disk Firmware. FAST 2002, pp. 275-288; sections 2-5.
- Hesela: FAST 2002 Figure 11 range-count reconstruction, code, tests and scope
- Thereska, Schindler, Bucy, Salmon, Lumb and Ganger. A Framework for Building Unobtrusive Disk Maintenance Applications. FAST 2004, sections 2-4.
Further reading
Sources & caveats
- Historical source synthesis, not a current Linux scheduler option, SSD capability or reproduced benchmark.
- The Figure 11 calculation checks inclusive LBN counts under one-request eligibility. It does not reconstruct track geometry, command timing or measured performance.