posix-fadv-noreuse · shipping · also FADV_NOREUSE

POSIX_FADV_NOREUSE

POSIX_FADV_NOREUSE is a file-access advice value indicating that the application does not expect to reuse the specified data.

Related Observatory article: Read on hesela.com

On Linux it was a no-op from 2.6.18 through 6.2; since 6.3 it permits page replacement to discount accesses. It neither bypasses the page cache nor promises immediate eviction. [1] The v6.14 generic implementation sets FMODE_NOREUSE on the open file description; POSIX_FADV_NORMAL clears it. [2]

SEQUENTIAL does not clear NOREUSE in the same generic implementation; NORMAL clears both NOREUSE and RANDOM. Advice order therefore matters when a shared handle changes workload. [2]

Relations

related
posix_fadvise, Buffered I/O, Page cache, POSIX_FADV_DONTNEED, RWF_DONTCACHE, readahead (Linux syscall), POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL

Advantages

  • Can express one-pass access without changing to direct I/O.

Limitations

  • Advice is nonbinding and kernel-version dependent.

Citations

  1. Linux man-pages 6.19: posix_fadvise(2), advice semantics and return values. (accessed 2026-10-15)
  2. Linux v6.14 mm/fadvise.c: generic_fadvise, including the end-of-file partial-page exception. (accessed 2026-10-15)

JSON: /data/terms/posix-fadv-noreuse.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. POSIX_FADV_NOREUSE. Hesela. 2026-11-11. https://hesela.dev/terms/posix-fadv-noreuse/