---
name: fast-reproducibility
description: Use when logging device state, aging, and traces behind FAST numbers. Makes a run repeatable on worn hardware. Does not package for evaluators.
---

# FAST reproducibility

Use this from unboxing. A device is different after every experiment. Its history is part of the result.

Call: https://www.usenix.org/conference/fast27/call-for-papers

## Device diary

One per serial number. Each entry: date, run id, host bytes written, media bytes written if reported, percentage used, temperature range, errors, format and namespace settings, firmware.

```bash
D=diary/$(date -u +%Y%m%dT%H%M%SZ); mkdir -p "$D"
for n in /dev/nvme[0-9]; do [ -e "$n" ] || continue; b=$(basename "$n")
  nvme id-ctrl "$n" > "$D/$b.id" 2>/dev/null; nvme smart-log "$n" > "$D/$b.smart" 2>/dev/null; done
lsblk -O -J > "$D/lsblk.json" 2>/dev/null || true
for q in /sys/block/*/queue; do echo "$q $(cat $q/scheduler $q/nr_requests $q/read_ahead_kb $q/rotational 2>/dev/null | tr '\n' ' ')"; done > "$D/queues"
uname -r > "$D/kernel"; mount > "$D/mounts"; cat /proc/meminfo | head -3 > "$D/mem"
git rev-parse HEAD > "$D/commit"; git diff > "$D/dirty.patch"
```

These are Linux commands and need privileges. The two SMART snapshots before and after a run give write amplification without trusting your own counters.

## State images

Where possible, save the aged state: a file system image, an index, the script and seed that made it. For flash, save the preconditioning commands and the curve that shows flatness, since the state itself cannot be copied.

## Run line

```text
run | device serial, diary entry | state id | workload + seed | config hash | memory limit | background jobs | duration | warm-up cut | result file | valid, rule
```

Set the validity rule first: thermal throttling, error counts, scrub or trim in the interval, throughput not flat. Throw away by rule and count what was thrown away.

## Traces

Source, dates, fields, sampling, anonymization, filtering, replay method (open or closed loop, time compression, dependencies). Two replays of the same trace with different loops are two workloads.

## Latency data

Keep histograms per interval, or raw values. Percentiles cannot be averaged afterward. Record the clock and whether coordinated omission was handled.

## Crash runs

Seed, crash point, device image before recovery, and the checker's verdict. Keep failing images forever.

## Production numbers

Query text, time range, data retention, and the person who can run it again. Dashboards lose resolution with age: export now.

## Output

```text
[FAST record] devices <n>, diaries complete <n>
[States] images <n>, flatness curves <n>
[Runs] <n>, valid <n>, rule written before
[Histograms] stored raw: yes/no · [Loop] open/closed
[Crash images kept] <n>
[Production queries] saved, exported <date>
```

## Reverify each cycle

- Trace release terms.
