Skip to content

Paper note

Sector-error prediction: what adaptive scrubbing gains

Published 2026-10-10 · updated 2026-11-20

A 2017 simulation shortened error-detection time. That is not a measured reduction in data loss, and its accelerated-scrub budget is not the false-positive rate.

On this page11 sections
Hard disk data
Backblaze public SMART data, 7 models of 2,719 to 36,368 drives; more than a billion device hours in the full data set
SSD data
About 30,000 Google MLC SSDs in 3 models; uncorrectable errors and bad blocks per drive-week
Prediction target
Whether a drive shows a sector error in the next one-week interval
Scoring
False positive rate and false negative rate, 75% training and 25% testing
Cross-checks
NetApp, 1.53 million disks over 32 months (SIGMETRICS 2007); Google hard disks (FAST 2007)

False-positive rate is not a scrub budget

Three denominators matter. False-positive rate counts false alarms among error-free drive-weeks. Recall counts alerts among error-containing drive-weeks. The fraction of all drive-weeks receiving an alert includes both. An error-containing week is one positive interval, whether it contains one bad sector or many.

Let p be error-week prevalence, r recall and f false-positive rate. The alerted fraction is q = r × p + f × (1 − p). If every alert enables faster scanning for one whole, equal-duration interval, q is also the accelerated fraction of normalized drive-time. Otherwise measure durations explicitly. Variable drive capacities also require weighting when budgeting fleet-wide bytes.

Illustrative arithmetic, not ATC measurements. Recall is assumed to be 80% throughout. Each row represents one million equal-duration drive-weeks; scan speed doubles in alerted weeks. Values are rounded for display; the downloadable results retain exact fractions.

Synthetic alert counts and normalized scrub work
Error weeksFPRTrue alertsFalse alertsAlerted timePrecision
1%2.00%8,00019,8002.78%28.78%
1%10.00%8,00099,00010.70%7.48%
0.1%2.00%80019,9802.08%3.85%
1%1.21%8,00012,0002.00%40.00%

In the first row, 2% FPR produces 2.78% accelerated time, not 2%. The last row instead fixes the total budget at 2%; with the same assumed prevalence and recall, FPR must be about 1.21%. In general, a budget b requires f ≤ (b − r × p) / (1 − p) for p below one. If true alerts alone exceed the budget, no nonnegative FPR can satisfy it at that recall. This is an accounting constraint, not evidence that a real classifier achieves that operating point.

With constant baseline scan rate and acceleration factor k, normalized scan volume is 1 + (k − 1) × q. Doubling for 2% of drive-time therefore adds 2% scan volume in this idealization. It does not establish 2% more energy, 2% higher foreground latency or a 2% fleet peak-load increase. Simultaneous alerts can concentrate work. A useful further experiment would compare targeted scanning with an equal-total-work fixed-rate policy, using the same foreground workload and error trace.

Source arithmetic check: section 4.2 of the ATC paper associates 2% FPR with roughly two false-alarm weeks in a 52-week year. Even if all 52 weeks were negative, 0.02 × 52 is 1.04 expected weeks. More generally it is 0.02 × the number of negative weeks. This arithmetic issue does not by itself invalidate the paper's plotted simulation; it is not a recalculation of that experiment.

The same alert time can require ten times the extra bytes

The time-only formula above describes normalized work per device. A shared storage link carries bytes. If every device completes one full pass per week, a 20 TB scan scope needs ten times the baseline byte rate of a 2 TB scope. An alert on either device counts equally in device-time, but not in scan traffic.

Constructed fleet: 98 devices with 2 TB scan scopes and two with 20 TB scopes. Every device is observed for one week and has a baseline of one pass per week: 236 TB in total. In each case below, two devices run at twice their own baseline rate for the entire week. TB means 10^12 bytes.

Synthetic fleet calculations, not observed device behavior
Faster scansDevice-timeExtra, TBExtra, %
Accelerate two 2 TB drives2%41.69%
Accelerate two 20 TB drives2%4016.95%

Both cases accelerate 2 of 100 device-weeks. The first adds 4/236 of baseline bytes; the second adds 40/236. Total scan volume is 240 TB or 276 TB. The tenfold difference is the constructed scope ratio, not a measured property of large drives. No error labels are supplied, so neither row has an inferred FPR.

Weight the baseline byte rate, not capacity alone

For each device or identical-device group, let b be baseline bytes per second, T the observed seconds, a the seconds spent accelerated, k its rate multiplier and n the device count. Baseline bytes are sum(n × b × T); extra bytes are sum(n × b × a × (k − 1)). Divide the second sum by the first for the extra-volume fraction. Device-time instead uses sum(n × a) / sum(n × T).

Here b is scan bytes per pass divided by the baseline pass period. For allocated-data scrubs, use selected bytes, not nameplate capacity. Different pass periods can also make equally sized devices unequal in byte cost. Use actual durations and merge overlapping alerts before counting accelerated time; duplicate notifications do not create additional device-hours.

These sums assume that the requested constant rates are achievable. A saturated link or a foreground-I/O limit can delay completion, so planned bytes are not a coverage receipt. Record completed bytes and per-region verification progress. The calculation does not predict peak load, latency, energy, repair traffic or detection benefit.

Reproduce both rows with capacity_model.py, 14 tests and exact results and source hash. Run python3 capacity_model.py --check and python3 -m unittest test_capacity_model.py. The original source-figure CSV and homogeneous examples are unchanged.

Read-only at the host does not mean no flash maintenance

The ATC paper's section 4.4 discusses read-only scrubs and field studies without a read-count/uncorrectable-error correlation. [ATC 2017]Our interpretation: an aggregate correlation does not establish that every additional read is physically harmless.

Cai and colleagues characterized read disturbance on planar 2Y-nm MLC NAND using an FPGA platform. Repeated reads can shift thresholds in unselected cells; wear and read-pass voltage affect the response. Their discussion of mitigation includes moving data to another block. [DSN 2015, sections 2.3 and 3]Raw cell errors and uncorrectable errors reported to a host are different endpoints.

Therefore, keep host scan bytes separate from internal NAND programs caused by read reclaim. Neither paper supplies a universal safe scrub frequency or a conversion between those counters. This is a reason to measure controller behavior, not a reason to disable scrubbing. See the read-reclaim evidence and measurement boundaries.

Detection time is not data-loss probability

Read the reported gain as G = baseline MTTD / adaptive MTTD. A gain of 1.7 to 1.8 corresponds to 41.18% to 44.44% less mean detection time, using 100 × (1 − 1/G). It does not mean 70% to 80% less time. Nor does the same percentage become a reduction in data loss: that also depends on redundancy, overlapping failures, repair success and time to complete repair.

Mean time to detection is event-weighted. Accelerated-mode duty fraction is time-weighted. Targeting high-risk intervals can improve the former without accelerating most intervals, so a large detection gain and a small duty fraction are not inherently contradictory. But neither a confusion matrix nor duty fraction determines MTTD: error onset times, affected locations and scan scheduling are also required.

Before operational use, preserve chronology and device identity in validation, report the natural evaluation prevalence, and separate first errors from repeat-error weeks. Log alert duration, bytes scanned, foreground latency, detection and repair completion. If true error onset is unknown, distinguish an observation timestamp from an occurrence timestamp. The historical aggregate table alone cannot supply those measurements.

Reproduce this arithmetic with Python's standard library: model.py, tests and results with source hash. Run python3 model.py --check and python3 -m unittest test_model.py in the same directory. There is no fitted model, empirical uncertainty estimate or replication claim. The source-figure CSV and provenance remain separate from these synthetic examples.

Equal scan budgets can still rank differently

A lower mean detection delay does not by itself guarantee a lower chance of losing the remaining good copy. The distribution of waiting times matters. This worked example makes the missing conversion explicit; it does not reproduce the ATC scrubber or rank deployed policies.

Consider one block with an already-damaged copy and one correct surviving copy. Fault onset is uniform over a repeating check schedule. Every check detects the damage and immediately restores protection. The survivor has an independent exponential remaining lifetime, with an assumed 20% failure probability per arbitrary time unit: rate lambda = -ln(0.8). This severe stress setting is not a drive failure rate. The NIST survival function supplies the distributional identity, not this modeling assumption.

Both schedules check the block three times per 17 time units. These are ideal point checks, not full-drive passes. All times use the same arbitrary unit; probabilities are conditional on the damaged-copy episode.

Calculated comparison under uniform onset and immediate repair
Repeating gapsMean delayMaximum delayConditional loss
1, 8, 83.7941850.8505%
3, 3, 114.08821150.1745%

The first schedule improves both mean and maximum delay, yet has slightly higher modeled loss. It detects only 5/17 of faults within two time units, versus 6/17 for the second schedule. By time eight it has caught all faults, versus 14/17. The detection distributions cross; neither is earlier at every threshold.

Average the risk over actual waiting times

For repeating gaps g and cycle duration T, uniform onset gives mean delay sum(g squared)/(2T). With independent survivor hazard lambda, conditional loss is 1 - sum(1 - exp(-lambda g))/(lambda T). More generally, for potential time V until protection is restored, it is E[1 - exp(-lambda V)], not 1 - exp(-lambda E[V]). Potential means the restoration time absent an earlier survivor failure.

At a one-in-a-million survivor failure probability per unit, the same schedules reverse back: the shorter-mean schedule has lower risk. For small hazard across the exposure window, lambda times mean delay can approximate risk; its absolute error is bounded by lambda squared times E[V squared]/2. A long tail can make that bound large. The package includes this low-hazard control, exact rational risk-ordering checks and bounded numerical integration.

This is not a reason to postpone repair. Adding an extra check without delaying any other check cannot increase loss in this model. For real systems, extend the exposure window through successful repair, retain incomplete and failed episodes, and avoid completed-only selection. Shared causes can link slow recovery to higher survivor risk. Equal check counts do not establish equal foreground cost, annual loss probability or MTTDL.

Oprea and Juels (FAST 2010, sections 5-6) use MLET, a single-drive exposed-time fraction, and leave replication-system extension to future work. That metric is distinct from event-mean detection delay. See also the LET/MTTD comparison.

Download the standalone reproduction package, machine-readable results and derivation and assumptions. Extract the package and run python3 -B replay.py with Python 3.11 or later. It needs no third-party libraries or network access and checks all four generated outputs plus 33 tests, including an optimized-Python run.

Numbers

Sector-error prediction as printed in Mahdisoltani et al., USENIX ATC 2017 (Backblaze hard disks, Google SSDs), rows 1 to 12, and in two cross-check sources, rows 13 to 15. Rates for prediction are per one-week interval. FPR is the share of error-free intervals wrongly flagged. Qualifiers such as 'nearly' and 'about' are the sources' wording.
MeasureValueUnitPopulation or scopeSource
Hard disks with at least one reallocated sector (SMART 5), lowest and highest model0.24 and 25.15percent of drivesHGST HMS5C4040BLE640 (9,426 drives) and Seagate ST3000DM001 (4,707 drives)ATC 2017
Hard disks with at least one reallocated sector, Hitachi HDS722020ALA33011.84percent of drives4,774 drivesATC 2017
SSDs with uncorrectable errors, three Google MLC models37.07 to 65.56percent of drivesAbout 10,000 drives per modelATC 2017
SSDs with bad blocks, three Google MLC models50.35 to 82.75percent of drivesAbout 10,000 drives per modelATC 2017
Error weeks caught at a 10% false positive rate, Hitachi and Seagate90 and 95percent of error intervalsRandom forest, prediction one week aheadATC 2017
Error weeks caught at a 2% false positive rate, hard disks70 to 90percent of error intervalsSame modelsATC 2017
Error weeks caught at a 10% false positive rate, SSDs50 to 70percent of error intervalsThree Google MLC models, uncorrectable errorsATC 2017
Training data size that still worked10 to 90percent of the usual training setHitachi disk; quality hardly affectedATC 2017
Faster error detection by an accelerated scrubber, hard disks1.7 to 1.8times faster than a fixed-rate scrubberScrub speed doubled after a prediction; accelerated mode at most 2% of the timeATC 2017
Faster error detection by an accelerated scrubber, MLC-A and MLC-D1.4 to 1.5times faster than a fixed-rate scrubberSame settingATC 2017
Time in accelerated scrub modeless than 2percent of the total timeAuthors' summary of the simulationATC 2017
Share of tested hard disk drive days affected by SMART 5, Seagate ST3000DM0011.77percent of drive days4,707 drivesATC 2017
Disks that developed latent sector errors over 32 months3.45percent of disksNetApp, 1.53 million nearline and enterprise disksSIGMETRICS 2007
Latent sector errors found by scrubbingmore than 60percent of errorsSame populationSIGMETRICS 2007
Google hard disks with a reallocation count above zeroabout 9percent of drivesMore than 100,000 ATA disks, December 2005 to August 2006Google, FAST 2007

This table is a short extract of printed figures, not a copy of the papers and not the data. Rows 1 to 12 are from Mahdisoltani et al. (ATC 2017). Rows 13 to 15 are cross-checks from other fleets and are different measures.

Method

The figures are copied from the USENIX PDF of Mahdisoltani, Stefanovici, and Schroeder, USENIX ATC 2017, not refit. The hard disk data are Backblaze's public daily SMART snapshots for 7 models of 2,719 to 36,368 drives each; the SSD data are a random sample of about 30,000 drives from three MLC models used in a Google field study (MLC-A, MLC-B, and MLC-D, 10,115 to 10,258 drives each). The authors cut each drive's history into one-week intervals and predict whether the next week will see an error (SMART 5 reallocated sectors for hard disks, uncorrectable errors for SSDs). They compare several machine learning methods, keep 20% to 60% of the training instances as error instances by undersampling, and split the data 75% training and 25% testing. They report the false positive rate (error-free intervals wrongly flagged) and the false negative rate (error intervals missed), and then simulate a scrubber that doubles its speed when an error is predicted. Two other sources check the surrounding numbers: Bairavasundaram et al., SIGMETRICS 2007 (NetApp, 1.53 million disks) and Pinheiro et al., FAST 2007 (Google hard disks). Neither tests prediction.

Limits

The hard disk results come from two models picked because they are common and have the highest error rates, and they are not an average over all drives. The prediction target is a weekly interval, not a disk, and what is predicted is whether a sector error happens in the week, not whether the disk fails; the authors say the false-positive rates would be too high for triggering drive replacement and are acceptable only for light actions such as a scrub. The paper says that 75% of data is used for training and 25% for testing, but does not establish a chronological or device-disjoint split. Treat forward-in-time and new-device performance as unverified, not as a quantified degradation borrowed from a different study. The scrubbing result is a simulation with a scrubber that alternates between two speeds and predictions made once a week; no deployment is reported. The SSD data are a sample from drives of Google's own field study (Schroeder et al., FAST 2016), so the SSD rows are not an independent check of that study. Backblaze reports SMART values that vary by model and manufacturer, so not every model reports every attribute, and the hard disk models are older consumer drives.

What the paper found

In this evaluation, sector-error predictions were useful inputs to a simulated scrubber. For the Hitachi HDS722020ALA330 and the Seagate ST3000DM001, random forests caught 90% and 95% of error weeks when 10% of error-free weeks were flagged by mistake, and 70% to 90% when only 2% were. The authors say the same prediction does not just restate SMART 197 (unstable sectors): removing it as an input gave the same results. Random forests matched or beat the other methods, including neural networks and support vector machines that needed much more tuning. Results for SMART 187 and SMART 197 were similar but slightly lower.

SSDs and little data. For the three Google SSD models, random forests caught 50% to 70% of uncorrectable-error weeks at a 10% false-positive rate, lower than for hard disks. Training on only 10% to 90% of the usual training data hardly changed the quality for the Hitachi disk. A predictor trained on other models still worked, with some loss: forests trained on MLC-B and MLC-D predicted MLC-A, and a forest trained on the Hitachi disk predicted errors for the Seagate disk.

The scrubbing use. A scrubber that reads data in the background finds latent errors, and a slower scrub means a longer window of vulnerability to data loss. In the authors' simulation, doubling the scrub speed after a prediction and keeping that mode to at most 2% of the time shortened the mean time to detect an error by 1.7 to 1.8 times for hard disks and 1.4 to 1.5 times for two of the SSD models. Their summary figure is nearly a factor of 2 with accelerated scrubbing less than 2% of the time.

Different endpoints, not a fleet ranking. The paper's hard disk shares (0.24% to 25.15% of drives with a reallocated sector) are higher than the 3.45% of 1.53 million NetApp disks that developed latent sector errors over 32 months in Bairavasundaram et al., but that study's nearline models ranged from 5% to 20% at 24 months, and Mahdisoltani et al. call their numbers in line with those. Bairavasundaram et al. also found that more than 60% of the errors were discovered by scrubbing, but this does not establish a universal scrub coverage or benefit. Pinheiro et al. found about 9% of Google's hard disks with a nonzero reallocation count.

Background on drive types is in the drive technology catalogue. Warning signs before a failure are also covered in the SMART failure signals analysis.

Related: scrubbing, detection timestamps and repair boundaries.

Training selection is not fleet prevalence

The authors reduce the majority class when preparing training data. Their FPR and FNR condition on the actual outcome; neither is the probability of an error given a score. A selected training class fraction must not stand in for natural fleet prevalence when estimating alert precision or expected events. Sections 3.1.3-3.1.4, pages 394-395. This does not allege that the paper claimed calibrated risk. Our exact synthetic prior-shift example shows why correct total forecasts can still conceal wrong subgroup probabilities.

Sources

  1. 01Improving Storage System Reliability with Proactive Error Prediction, Mahdisoltani, Stefanovici, and Schroeder, USENIX ATC 2017 (USENIX PDF) · accessed 2026-10-19
  2. 02An Analysis of Latent Sector Errors in Disk Drives, Bairavasundaram, Goodson, Pasupathy, and Schindler, SIGMETRICS 2007 (University of Wisconsin ADSL PDF) · accessed 2026-10-15
  3. 03Failure Trends in a Large Disk Drive Population, Pinheiro, Weber, and Barroso, FAST 2007 (USENIX HTML proceedings) · accessed 2026-10-09
  4. 04Cai et al., Read Disturb Errors in MLC NAND Flash Memory: Characterization, Mitigation, and Recovery, DSN 2015, sections 2.3 and 3 · accessed 2026-10-19
  5. 05NIST/SEMATECH e-Handbook, Exponential Distribution, section 1.3.6.6.7 · accessed 2026-11-20
  6. 06Oprea and Juels, A Clean-Slate Look at Disk Scrubbing, FAST 2010, sections 5-6 · accessed 2026-11-20

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

  1. · Correction: Distinguished reported simulation results from deployment outcomes; added explicit budget arithmetic and corrected the percent-to-weeks interpretation. Original table values retained.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. Sector-error prediction: what adaptive scrubbing gains. Hesela. 2026-11-20. https://hesela.com/analyses/sector-error-prediction-scrubbing/