Analyses / Tape engineering
LTFS performance: when does the write job finish?
/ Updated / Source review
A tape optimization can move work beyond the point where a benchmark stops. Compare the same completion boundary: transferring file data, writing recoverable metadata and finishing an unmount are different milestones.
For recovery, distinguish the selected index, salvaged records and verified files; the recovery checklist sets out what each outcome establishes.
On this page6 sections
Placement changes the next operation's cost
IBM's documented LTFS placement sequence writes eligible files to the data partition first and retains their bytes in memory. A full buffer or unmount then triggers index writing and placement in the index partition. Nearby files can be faster to access immediately after mounting; that advantage is not a permanent random-access guarantee. [IBM, section 3.5.4]
The placement policy therefore deserves a write-side assessment as well as a read-side one. Two locations on the same cartridge are not independent backups.
What the 2015 scheduler experiment measured
Villa Real, Richmond, Biskeborn and Pease evaluated Unified on IBM LTO-5 hardware using synthetic workloads. Section VI-E writes 1,000 files of 10 MiB; ten qualify for the index partition. Each file is fsynced before close. [NAS 2015, sections V and VI]
| Scheduler cache | Write time | Throughput |
|---|---|---|
| 50 MiB | 159 s | 63 MiB/s |
| 1 GiB | 82 s | 122 MiB/s |
The larger cache deferred all index-partition writes until unmount. The section does not report a separate unmount duration or clearly establish an end-to-end completion time. It also leaves drive start/stop time uncontrolled. These results are not a current-drive speed forecast.
A separate streaming experiment averages ten runs after a warm-up transfer and excludes tape turnarounds. Its timing protocol must not be silently assigned to the cache experiment. The paper also finds software prefetching can add overhead: more buffering is not automatically better for every read pattern.
Incremental indexes solve a different problem
SNIA LTFS 2.5.1 permits incremental metadata in the data partition, reducing repeated full-index recording. Compliant implementations must read these increments but need not generate them. Clean unmount still requires full indexes. [SNIA, sections 5 and 9; Annex H]
Incremental does not mean a byte-level patch: when extentinfo or extendedattributes appears, its complete contents are required. Recovery applies the preceding full index and the intervening increments. Annex H's suggested chain limit is guidance, not a universal mandatory value.
Engineering inference: avoiding repeated full metadata is distinct from reducing file fragmentation or partition switches. An optimization in one category does not demonstrate improvement in the others.
A recovered index is not a verified archive
The end of a write job also needs an acceptance boundary. Restoring a namespace, salvaging readable records and recovering the intended file versions answer different questions. The pinned reference implementation's command manual separates rollback, full recovery of extra data and recovery of a missing end-of-data marker. They are different operations, not successive grades of proof. [ltfsck manual]
| Outcome | What remains to check |
|---|---|
| Selected index generation | Whether it describes the intended versions, and whether their referenced bytes can be read. |
| Lost-and-found records | Original file grouping, logical order, paths and metadata are not reconstructed by the pinned salvage helper. |
| Verified files | Coverage of the expected inventory and versions, with missing or unreadable items recorded separately. |
In reference commit efc9e3a5, newly synthesized _ltfs_lostandfound entries represent individual logical tape-record reads. The helper generates names from partition, block and read length, and assigns timestamps during recovery. It does not reconstruct original filenames or combine the records into their original multi-record files. Its caller selects trailing regions; this is not an exhaustive search for every historical orphan. [pinned helper and callers]
This limitation concerns synthesized salvage entries, not ordinary named files recovered through a surviving index. The code review is not evidence that every LTFS implementation has the same recovery behavior.
SNIA LTFS 2.5.1 Annex F.3 defines optional interoperable file-hash attributes but does not require implementations to generate or check file hashes. A successful mount alone therefore does not establish whole-file hash verification. [SNIA, Annex F.3]
A stored ltfs.hash.sha256sum attribute is metadata, not a verification event. Annex F.3 leaves hash maintenance and update policy outside the specification. [SNIA, Annex F.3] Verification guidance: after a rewrite or rollback, establish which content version the stored value describes and recompute its digest.
Record what was actually recovered
Hesela verification guidance: retain media identity, implementation version, selected index generation, history policy, command result and complete logs. Separate indexed files from newly synthesized salvage records. Compare reconstructed paths, lengths, versions and whole-file digests with a trusted, preexisting inventory. A digest calculated only after salvage fingerprints that output; it cannot by itself establish the original file identity or intended version.
Report missing files, unreadable data and unassigned records separately. Do not test erase-history or missing-end-of-data recovery on the only copy. No tape recovery, full-command fault test or product fix is demonstrated here. See the LTFS index record for the machine-readable distinctions.
Measure a complete archival job
For a controlled comparison, preserve the same input files and verify the restored bytes. Record these boundaries separately rather than reporting one unlabeled throughput number:
- Application writes, including all close and synchronization errors.
- Metadata synchronization and successful unmount.
- A fresh mount and retrieval of both selected and ordinary files.
Keep drive, firmware, software version, cache budget, compression, placement rules, access order and index policy fixed or explicitly varied. Report repeated-run variation and include positioning and turnaround time when they belong to the job. This is a proposed evaluation protocol, not an experiment performed here.
IBM documents timer-, close- and unmount-triggered index policies. Changing that policy changes the recovery/performance tradeoff; it should not be a hidden benchmark setting. [IBM, mounting options] Read the LTO compatibility and recovery reference before treating a successful mount as proof of recoverability.
Scope and sources
Source review, not a hardware benchmark, crash test or recovery guarantee. No modern-drive speedup is inferred, and the historical paper's unmount timing remains unresolved. Machine-readable context: LTFS index and data placement policy.
- Villa Real et al. An I/O Scheduler for Dual-Partitioned Tapes. NAS 2015, sections V-VI (author-hosted full paper)
- SNIA LTFS Format Specification 2.5.1, sections 5, 9 and Annexes F.3 and H
- IBM Spectrum Archive SDE and LE, SG24-8090-04 (2018), mounting options and section 3.5.4
- LTFS reference implementation, ltfsck(8): rollback, full recovery and missing-EOD recovery (commit efc9e3a5)
- LTFS reference implementation, ltfs_internal.c: _ltfs_populate_lost_found and callers (commit efc9e3a5)