# Reconcile fio logs with JSON+ counts

This is an executed reporting-consistency fixture, not a device benchmark.
The fio null engine completes simulated operations without data transfers.
Eight jobs cross configured depth 1/8, log_avg_msec 0/10 and two repetitions.
Each uses 2048 operations, 4096 bytes per operation, mixed reads/writes,
randseed=41, no ramp time, clocksource=clock_gettime and log_entries=4096.
The log has time_ms, latency_ns, direction, bytes and priority columns.

## Replay retained evidence

Keep fio-log-observations.json, fio-log-result.json, fio-log-reconciliation.mjs,
fio-log-reconciliation.test.mjs, run-fio-log-reconciliation.mjs and
fio-histogram.mjs together. With Node.js:

    node --test fio-log-reconciliation.test.mjs

The observation bundle retains parsed native reports and exact completion-log
strings. The result contains the bundle hash, original report/log hashes,
checker/model/runner hashes, binary and selected source hashes, environment and
full argument vectors. The native report whitespace is not preserved in the
bundle, so its original byte hash is provenance, not a bundle-replay assertion.
The original unmodified report bytes remain in the retained run directory.
Latency values and elapsed time are host-dependent. Replaying these retained
observations is exact; collecting new observations need not reproduce timings.

## Collect new evidence

Obtain upstream fio and verify commit ed675d3477a70a42d2e757b713f6c7125a27cdca
(fio-3.41), with no tracked modifications. Review its GPL-2.0 license and build
scripts before building. Our build used:

    ./configure --disable-native
    make -j2 fio

No system installation or privileged target is needed. Then run:

    node run-fio-log-reconciliation.mjs /path/to/fio-source /new/output-directory

The runner refuses an existing output directory. It checks the commit, source
changes and version, records the executable hash, and runs only the null engine.
It does not establish a reproducible-binary build or authenticate an arbitrary
executable that merely prints the expected version. Review your toolchain.
Rename the new result.json to fio-log-result.json and observations.json to
fio-log-observations.json for replay alongside the same code version.
If future slow runs span more windows, expect more than two mean-log rows.

## Interpretation

For per-I/O logs, compare each direction's row count with clat_ns.N, rebuild
the bin counts and select the exact nearest-rank p99. The selected raw value
must land in the bin reported by fio. Duplicate timestamp/direction pairs are
retained; the time field is not an operation identifier.

For averaged logs, validate the direction populations and JSON+ counts without
pretending the logged means are individual samples. This fixture emits a zero
block-size field for those window summaries. It checks mean mode only, no
optional offset/issue-time/hex-priority columns, multiple jobs, coarsened
histograms, compressed logs, errors, trims or unusual engines.

No logging-overhead estimate, power-failure test, workload-independence proof or
population confidence interval follows from these runs. In particular, the
depth-1 null path is synchronous while depth 8 uses the engine's queued path;
their timings are not alternative SSD measurements.

## Primary sources

- fio 3.41 HOWTO, Log File Formats and logging options:
  https://github.com/axboe/fio/blob/ed675d3477a70a42d2e757b713f6c7125a27cdca/HOWTO.rst
- fio 3.41 null engine, stat.c and iolog.c at the same commit:
  https://github.com/axboe/fio/blob/ed675d3477a70a42d2e757b713f6c7125a27cdca/engines/null.c
- Kogias, Mallon and Bugnion, Lancet, USENIX ATC 2019, pp. 881-896,
  sections 4.2-4.3 and 6: https://www.usenix.org/system/files/atc19-kogias-lancet.pdf

Reviewed 2026-10-21. Lancet is methodological context for distinguishing
workload compliance, observer bias and statistical convergence. Its RPC
evaluation is not reproduced here and supplies no SSD performance figure.
Fixture code and generated observations are original Hesela work, CC0-1.0.
No fio executable, upstream source or third-party paper is redistributed.
