Pipelined Read-Retry
Pipelined Read-Retry overlaps NAND retry sensing with transfer and decoding of earlier attempts.
Park's research design uses CACHE READ and cancels unnecessary speculative work after successful decoding; its SSD evaluation used simulation. [1]
In regular read-retry each step senses, transfers and decodes before the next begins, so N steps take N x (tR + tDMA + tECC). Because a retry step is another read of the same page, CACHE READ lets the chip sense step k+1 while step k is transferred and decoded, giving N x tR + tDMA + tECC. After a successful decode the one speculative sensing still running is ended with RESET, which takes about 5 µs. [1]
In a simulated 512 GiB drive over twelve workloads, pipelining alone cut response time by up to 38.3% and by 17.7% on average. [1] With tR = 90 µs, tDMA = 16 µs and tECC = 20 µs, 19.9 steps take about 2,507 µs regularly and 1,827 µs pipelined, and the saving approaches 36 / 126 = 28.6% for many steps.
Sequential cache reads of different pages raised block-read speed from 15,633 to 18,285 KiB/s on a small-page chip. [4] The Linux NAND driver enables cache reads only when controller and chip support them, no read-retry modes and no on-die ECC are in use, and the request covers at least two full pages, and some chips lack the command or fail with it. [3] [5]
Relations
Advantages
- No change to the NAND chip is needed, only controller behaviour with an existing command that relies on an extra page buffer in the chip. [1]
Limitations
- Speculative sensing occupies the chip for one extra step and can delay other operations if it is not cancelled promptly. [1]
Citations
- Park et al. Reducing Solid-State Drive Read Latency by Optimizing Read-Retry. ASPLOS 2021, sections 6-7. DOI: 10.1145/3445814.3446719
- Linux v6.16 drivers/mtd/nand/raw/nand_base.c, sequential cache read and support checks.
- Linux MTD mailing list, January 2023: patch series 'mtd: rawnand: Support for sequential cache reads'.
- Linux MTD mailing list, September 2023: follow-up thread on chips that do not support cached reads.
Further reading
- Hesela: NAND read-retry and stage timing
- Cai et al. Error Characterization, Mitigation, and Recovery in Flash-Memory-Based Solid-State Drives. 2017, section 5.4.
Sources & caveats
- The retry-time results are simulation by the technique's university authors; the abstract gives different headline figures from the evaluation section, whose numbers are used.
- The kernel evidence covers sequential cache reads of different pages, not re-reading one page, so it does not confirm that real chips accept CACHE READ on the same page; the driver code gives no reason for the read-retry exclusion.
- CACHE READ support is optional in the standards and uneven in practice.
- Arithmetic: 19.9 x 126 = about 2,507 µs; 19.9 x 90 + 36 = 1,827 µs, 27.1% less; 8 steps give 1,008 against 756 µs; the mailing-list figures give +17.0% for a block and +5.6% for two pages.
- The read-retry survey is university-led with one drive-maker co-author.