ata-read-look-ahead · shipping · also ATA read lookahead, Drive read look-ahead

ATA read look-ahead

ATA read look-ahead is a drive-controlled read-prefetch feature, separate from operating-system readahead and the drive's write-cache setting.

Related Observatory article: ATA read look-ahead on hesela.com

The hdparm controls differ by case: -a selects a software filesystem readahead sector count, whereas -A selects the drive feature. Changing one does not configure the other layer. [1]

SET FEATURES uses command opcode 0xEF with feature selector 0xAA to enable read look-ahead or 0x55 to disable it. Write-cache selectors 0x02 and 0x82 are separate; a read-prefetch change is not a write-cache flush. [2] [4]

IDENTIFY word 82 bit 6 reports support; word 85 bit 6 reports enablement. Linux v6.12 checks the validity pattern in word 87 before interpreting that enable bit. Neither field measures fetched bytes, cache hits or application latency. [3] [2]

The cited product manual says these settings revert to defaults after power cycling. That is a documented product behavior, not a guarantee about every ATA device or reset type. [4]

Relations

related
Serial ATA (SATA), readahead (Linux syscall), Write-back cache

Limitations

  • A host command path may not expose every device setting; enclosure and kernel compatibility matter. [1]

Citations

  1. hdparm(8): separate -a software readahead and -A drive read-lookahead controls (accessed 2026-11-14)
  2. Linux v6.12 ata.h: SET FEATURES selectors and ata_id_rahead_enabled validity check (accessed 2026-11-14)
  3. Linux v6.12 hdreg.h: IDENTIFY words 82 and 85, support versus enabled state (accessed 2026-11-14)
  4. WD Purple Pro PR18 manual D018-000157-AA00: Tables 4-6 and 4-7, pages 36-37 and 41 (accessed 2026-11-14)

Further reading

  1. Hesela: SATA command and cache-policy boundaries (accessed 2026-11-14)
Sources & caveats
  • Documentation and version-pinned Linux source review; no device command, cache-hit measurement or performance experiment was performed.
  • The power-cycle statement is limited to the WD Purple Pro PR18 manual. No universal default or reset-persistence behavior is inferred.

JSON: /data/terms/ata-read-look-ahead.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. ATA read look-ahead. Hesela. 2026-11-14. https://hesela.dev/terms/ata-read-look-ahead/