# Comparing buffered-I/O mechanisms

StreamCache evidence review, 2026-12-04. This is a source review and proposed
measurement protocol, not a reproduced benchmark or a measured speedup.

## Read the comparison at the right layer

[StreamCache](https://hesela.dev/terms/streamcache/) addresses page-cache
management. Its paper should not be read as evidence that selecting an existing
Linux advice flag reproduces the prototype.

Before comparing implementations, record what is actually changed:

| Choice | What must be identified | What cannot be inferred from its name |
| --- | --- | --- |
| Buffered I/O implementation | Kernel, filesystem, allocation and writeback paths | A high cache hit rate or durable completion |
| Retention advice | Flag, supported target and initial cache state | Bypass of page-cache allocation or copying |
| Automatic readahead | Backing-device setting and per-open state | A fixed transfer size for every request |
| Direct I/O | Alignment, filesystem support and completion contract | Zero coherence overhead or persistence |

The [RWF_DONTCACHE API](https://man7.org/linux/man-pages/man2/readv.2.html)
requests best-effort pruning of cache content created by the operation and
initiates writeback for writes. Previously cached ranges are retained by the
hint. It is not a replacement for a synchronization contract.

## A reproducible comparison checklist

The following is Hesela's proposed protocol, not an experiment performed here.

1. Fix the kernel, filesystem, device topology, memory budget and I/O interface.
2. Separate cold scans, warm rereads and concurrent mixed workloads. Record the
   initial cache state; never clear a shared production cache for a benchmark.
3. Report application bytes and elapsed time separately from device bytes.
   State whether the timer includes the required synchronization and error checks.
4. Keep request size, process count and total file bytes constant across variants.
5. Record CPU cost, allocation work and foreground latency during writeback,
   rather than treating aggregate bandwidth as a complete diagnosis.
6. Repeat independent runs and retain distributions, configuration and raw logs.
   A counterfactual about a different machine needs a new measurement.

## Artifact access is a separate check

The [ATC 2024 evaluation results](https://sysartifacts.github.io/atc2024/results)
list Available, Functional and Reproduced badges for StreamCache. On 2026-12-04,
the linked [Zenodo v1 record](https://zenodo.org/records/11180773) is public but
marks its files Restricted. Its DOI, 10.5281/zenodo.11180773, identifies the
software artifact, not the conference paper.

The badges record conference evaluation; they do not establish present anonymous
download access or a reproduction by Hesela. We did not obtain or execute the
archive. Its public record lists CC BY 4.0; inspect the actual code's licenses and
environment instructions before any authorized reuse.

## Source map

- Li and Zhang, [USENIX ATC 2024 proceedings entry](https://www.usenix.org/conference/atc24/presentation/li-zhiyue), pp. 1119-1134.
- [Full paper](https://www.usenix.org/system/files/atc24-li-zhiyue.pdf): sections 4-6 support the mechanism and evaluation scope in the term. No paper figures or full text are republished.
- [Linux v6.16 backing-dev.c](https://github.com/torvalds/linux/blob/v6.16/mm/backing-dev.c): bdi_alloc initializes ra_pages; read_ahead_kb_store can change it.
- [Linux v6.16 readahead.c](https://github.com/torvalds/linux/blob/v6.16/mm/readahead.c): file_ra_state_init copies the backing-device budget; window selection is dynamic.

The corpus correction distinguishes a 128 KiB initialization default from the
actual readahead window. See [Page cache](https://hesela.dev/terms/page-cache/)
and the separate [readahead syscall](https://hesela.dev/terms/readahead/).
No kernel module was installed, shared cache dropped or device setting changed.

## Journal extension: the comparator changes inside the paper

Li and Zhang's [journal article](https://doi.org/10.1145/3721486), *Building
Stream-based Page Cache to Accelerate File Scanning on Fast Storage Devices*,
extends their ATC paper. We read the 29-page
[author-hosted version](https://cloud.tsinghua.edu.cn/f/7c024e716d3845ec962d/),
including the methods, rather than transferring the abstract's headline
improvements into a new result. The article is [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/); this section is
Hesela's interpretation. The paper and its figures are not redistributed here.

The extension statement on page 22:1 identifies added device comparisons,
design explanations, CPU profiling and stability experiments. Its main
evaluation still uses Linux 5.4 and an eight-Optane RAID-0 array; section 1 also
contains single-device motivation tests. Those are different experimental
contexts, not evidence that every figure used eight devices.

### Three names, two different comparison designs

| Location | What the labels compare | What a reader must not conclude |
| --- | --- | --- |
| Section 6.1 and main evaluation setup | XFS configurations using the original page cache, adapted FastMap-cache, or StreamCache | FastMap-cache is the original mmap interface |
| Section 6.4, Figures 19-20 | Dirty-state maintenance variants inside StreamCache; other techniques are held fixed | Each curve is an unchanged end-to-end implementation of the named system |
| Section 6.3, Figures 17-18 | Foreground buffered-I/O CPU components before and after optimization | A smaller allocation component proves the same reduction in total CPU work |
| Section 6.4, Figure 20 | Instantaneous bandwidth while writing a 20 GB file | This is a p99 latency distribution or a durable-write SLA |

In section 6.4, the reused labels are shorthand for an ablation: the experiment
changes dirty-state handling while retaining the other StreamCache techniques.
That isolates one design choice. It cannot be silently pooled with the main
system comparison. The authors' labels are preserved in the evidence record,
with a separate field stating what they mean in that experiment.

### A cost can move rather than disappear

Section 6.3 explains why StreamCache's data-copy component becomes more
expensive even as allocation gets cheaper. Page clearing is moved away from
foreground allocation. Cache-loading work that the baseline encounters during
clearing is then charged during the later copy in StreamCache.

Hesela's interpretation: compare a common end-to-end boundary and retain the
individual components. Neither allocation-only timing nor a percentage of a
shorter total is a complete CPU-cost comparison. Background work also needs
accounting if the question is total system cost. We did not reconstruct
per-run timings or confidence intervals from plotted bars.

### Bibliographic dates are not interchangeable

The downloaded version identifies ACM TOS 22(3), article 22, 29 pages, with a
July 2026 publication footer. The publisher-deposited
[Crossref record](https://api.crossref.org/works/10.1145/3721486), checked
2026-12-04, reports online publication on 2026-07-25 and print publication on
2026-08-31. Its DOI record was created on 2025-03-05. Record creation is not
proof of an online-first publication date. The paper separately records
acceptance on 2025-02-14.

The [structured review](https://hesela.dev/research/streamcache/journal-review.json)
retains these date types, source locators, the downloaded PDF hash and comparison
boundaries. It contains reviewed literature claims, not new benchmark
measurements. The existing artifact-access limitation remains: a readable
journal article is not an accessible, reproduced software artifact.
