Staggered scrubbing
Staggered scrubbing is a scan-order strategy that visits segments across multiple disk regions before returning to subsequent segments in each region.
The disk is divided into m regions of r segments each. A pass reads the first segment of every region, then the second segment of every region and so on up to the r-th, and then starts again. Because latent sector errors cluster in space, sampling one segment per region and returning later can expose an affected region earlier than reading each region in full before moving on; the gain depends on the error pattern and detection objective. [1]
On a 7200 RPM drive the overhead against sequential reading was a factor of 5 to 8 for 32 KB or 64 KB requests and about 2% for 1 MB or 2 MB requests, which led to 1 MB segments and 128 MB regions matched to the radius of most error clusters. A later simulation on field data found the effect for 128 MB regions unchanged for segment sizes from 1 KB to 32 MB, while 64 MB segments halved the gain over standard scrubbing. [1] [2]
For scrub intervals of 7 to 14 days that simulation reports mean time to error detection shorter by 30 to 70 hours, or 10 to 20%, and up to 40% overall, with the scrub frequency unchanged. The method only reorders reads, unlike accelerated or adaptive policies that change the scan rate after a first error. [2] [1]
Detection objectives can favor different schedules. In Hesela's sixteen-segment cyclic example, four simultaneous errors occupy one region and onset is uniform over a complete cycle. Staggering lowers mean time to the first hit from 5.375 to 2 time units, leaves the per-error mean at 8, and raises mean time to find all four from 10.625 to 14. Checks are instantaneous; no repair or error-triggered acceleration occurs. These exact constructed values are not a reproduction of either paper's simulator or a claim about hardware performance. [5]
Relations
Advantages
- Reordering one complete pass need not increase its number of segment checks; it does not make seek or elapsed-time costs equal. [1]
Limitations
- Historical HDD scan-order results are not guarantees for SSDs or array data-loss rates. [1]
- If errors are assumed completely uncorrelated in time, the reduction in mean time to error detection falls to 2 to 5%. [2]
Citations
- Oprea and Juels. A Clean-Slate Look at Disk Scrubbing. FAST 2010, sections 2, 4.2 and 6.
- Schroeder, Damouras and Gill. Understanding latent sector errors and how to protect against them. FAST 2010, sections 2 and 5.
- Hesela: first-alarm, per-error and final-detection objectives in an exact cyclic scrub example.
Further reading
- Hesela: Scrubbing, detection time and repair boundaries
- Hesela: LET interval union versus event-mean detection delay.
Sources & caveats
- oprea is the FAST 2010 paper by Oprea and Juels, read in section 4.2 on the staggered strategy and its overhead measurements.
- schroeder is the FAST 2010 paper by Schroeder, Damouras and Gill, read in sections 5.2.3, 5.2.4 and 6 on simulated scrub policies.
- The figures are published results for hard disk drives and were not reproduced.