﻿# Preserve fio random-offset seeds across storage comparisons

Preserve fio seeds with the full job and generator context, distinguishing repeatable logical demand from completed work and physical execution order.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-storage-fio-random-seed/
Language: en

Two random-read storage trials use the same file and queue settings but touch different logical offsets. The difference can change cache reuse and the work observed by a model-loading comparison. Fio random-generation controls belong in the workload record. A repeated seed can help reproduce logical demand, while it does not make device execution order or latency identical.

## Preserve the full generation setup

Record fio release, job file, effective per-job options, random generator and distribution, block sizes and selected file ranges. A seed without the rest of the generator context is insufficient to reconstruct the workload. Several jobs or changed file selection can alter the resulting demand even when a visible randseed value remains unchanged in an administrative summary.

## Distinguish repeatability controls

Fio documents randrepeat for predictable random generation and randseed for explicitly controlling the seed. Preserve their effective values rather than assuming an omitted option means a fresh independent pattern. A copied job section can also inherit settings. Keep generated-workload identity separate from trial number so repeated patterns and intentionally varied patterns remain visible in the comparison.

## Verify the operation boundary

Compare actual completed operations with the intended read ranges and declared end condition. A time-based run can complete different amounts of work when configurations differ. The same seed therefore does not guarantee an equal completed prefix, and a total-byte result does not prove identical offset demand. Use appropriate isolated tracing or a supported workload artifact when exact sequence equivalence matters to the investigation.

## Separate logical and physical order

Read requests identify logical file access, while the filesystem and block stack can transform, merge or reorder underlying work. Blk-mq introduces software and hardware queue boundaries beyond the generator. Matching random offsets does not freeze this scheduling, cache residency or background activity. Do not call a changed hardware completion order a failed seed-control experiment without examining which boundary the reproducibility contract actually covered.

## Compare repeats honestly

Keep repeated-pattern trials separate from experiments intentionally varying the workload population. Reusing a pattern can improve a matched comparison, but repeated requests within one run do not automatically become independent statistical samples. Preserve useful read completion, failures and latency under declared cache conditions. A useful result controls one source of workload variation; it does not establish model readiness or guarantee that a different seed represents every production loading pattern.

## Primary references

[fio Workload and Latency Measurement Reference](https://fio.readthedocs.io/en/latest/fio_doc.html).

[Linux read Result and Alignment Errors](https://man7.org/linux/man-pages/man2/read.2.html).

[Linux Multi-Queue Block I/O Architecture](https://docs.kernel.org/block/blk-mq.html).

Related reading: [LLM loading: read-latency tails beyond one SSD speed](/journal/nvme-read-latency-model-load/); [OS page cache and cold model loading: what to record](/journal/model-load-os-page-cache/).
