# FS-PI: printed summaries and derived ratios

Hesela source review and arithmetic, 2026-12-05. Not a hardware reproduction.

## Reproduce

Use Python 3.10+ from this directory. No third-party dependencies or network:
```sh
python3 -B audit.py --check
python3 -B -m unittest discover -s . -p test_audit.py
python3 -B -O -m unittest discover -s . -p test_audit.py
```

input.json transcribes selected numeric facts from Gupta et al., FAST 2026,
Tables 7 and 9, printed p. 653. The paper digest and exact locations are retained.
Page 653 was rendered and visually inspected against the transcription.
results.json is generated by audit.py and binds both input and calculation hashes.
The original paper and upstream benchmark code are not redistributed.

## What the arithmetic establishes

FS WAF here means host writes divided by application writes, not NAND/host.
For the buffered baseline, 835.46/240 = 3.481083..., rounding to 3.48.
Table 7 prints 3.42. The adjacent prose on p. 652 instead gives 3.48.
The other two differing printed ratios, 1.62 and 2.77, agree with truncation;
3.42 agrees with neither ordinary two-decimal rounding nor truncation.
This is an internal numerical inconsistency, not proof that the experiment is invalid.

The Table 9 host totals imply an 18.964314% write reduction and a 1.234024
fixed-host-write-budget multiplier. The latter is conditional on equal-duration,
stationary workloads and a constant budget. It does not measure failure times.
The printed DWPD pair gives a slightly different ratio due to rounding.
Do not combine that one-hour observation with the separate Table 7 comparison.
There are no confidence intervals here: the input contains rounded summaries,
not the four individual repetitions described by the paper.

## Three write boundaries

Let A be application bytes, H host bytes and N NAND bytes in the same observation:
filesystem amplification is H/A, device amplification N/H, and end-to-end N/A.
Their identity is N/A = (H/A) * (N/H); reduced N alone does not identify a change
in N/H. Our added Table 7 fields preserve these denominators explicitly.

All four N/H quotients round to 1.0323. These printed totals support lower NAND
traffic, not a demonstrated improvement in internal device amplification.
Equal display rounding is not proof of identical true ratios or a significance
test. Individual runs and counter precision are unavailable in this input.

The pinned direct and buffered scripts capture iostat host-write deltas but do
not contain NAND log acquisition. This is a reproduction gap in those two files,
not a claim that the authors did not collect NAND counters elsewhere. Preserve
raw before/after counters, their units and the same observation interval before
making a device-amplification claim.

## Reproduction boundary

The artifact at b7932c465aca7e856da9c1ea6003d4febf24d3d9 requires its custom
Btrfs/XFS kernel branches and a suitable NVMe device. Its write-amplification
README maps the mode named nodatasum to its FS-PI configuration. That is not an
instruction to disable checksums on an ordinary installation.

The paper names dev_pi; the pinned script actually mounts with nodatasum.
Resolve this version/configuration distinction before attempting reproduction.
The script also formats the target namespace, recreates the filesystem and
reloads a kernel module. Hesela did not execute it. No raw hardware result,
universal performance improvement or shipping-kernel support is asserted.

Sources:
- https://www.usenix.org/system/files/fast26-gupta.pdf
- https://www.usenix.org/conference/fast26/presentation/gupta
- https://github.com/anuj7781/advancing-data-integrity-in-linux/blob/b7932c465aca7e856da9c1ea6003d4febf24d3d9/btrfs_write_amplification/README.md
- https://github.com/anuj7781/advancing-data-integrity-in-linux/blob/b7932c465aca7e856da9c1ea6003d4febf24d3d9/btrfs_write_amplification/direct-io/write_reduction.sh
- https://github.com/anuj7781/advancing-data-integrity-in-linux/blob/b7932c465aca7e856da9c1ea6003d4febf24d3d9/btrfs_write_amplification/buffered-io/write_reduction.sh
