Conversation
Add the verifyio library and its first three standalone consumers: - verifyio/block, xattrstore, verifier: a checksummed block format that stores metadata in xattrs to allow for verification, OFD-locked writes, and a sweep-line verifier that classifies every byte range of a file by how many xattr records claim it. - internal/trace: a zap-based IO trace logger shared by later tools. - smoke/verify/dump: standalone commands to write+verify a single node in one shot, verify existing data files, and dump a file's block headers for hand inspection. Refs: #324
Add three more consumers of the verifyio library: - iotest-soak: multi-threaded, long-running write/re-write stress test across overlapping and non-overlapping file pools, built to surface silent corruption and torn writes under sustained load. - iotest-posixbench: write-once POSIX IO benchmark with manifest-based post-run verification. - iotest-util: utility commands (write, xattrcap) for driving the library manually. Refs: #324
Add the "beegfs iotest" subcommand family on top of the verifyio-based tools: - Standalone probes: smoke, verify, dump, bench. - Framework-managed multi-node workloads: soak and inval, with SSH fan-out, shared-path status files, and a start/status/stop/cleanup lifecycle. See ctl/internal/cmd/iotest/DESIGN.md for details. Refs: #324
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do / why do we need it?
Adds
beegfs iotest, a tool for driving IO workloads built into beegfs.It has 3 components:
verifyio, a Go library to drive POSIX IO.are relatively simple and more about demonstrating functionality than being final products.
The goal of this is to drive IO in a customer-like manner: requests flow
from the client module → network → storage.
The verifyio library is intended to support both benchmark mode (where
we just write the data as quickly as possible) and a verification mode,
where we place xattrs with checksums alongside the file to allow for data
verification. The written data also includes checksums to allow the
detection of bit rot.
For the tooling, there are currently two modes:
Standalone probes (
smoke,verify,dump): quick, single-nodechecks: write+verify a sanity check in one shot, verify existing data
files, or dump a file's block headers for inspection.
Framework-managed multi-node workloads (
bench,soak,inval):SSH fan-out across nodes, shared-path status files, and a
start/status/stop/cleanup lifecycle.
benchmeasures bandwidth,soakis a long-running write/re-write stress test that surfacessilent corruption and torn writes under sustained load, and
invalmeasures cross-node metadata cache-invalidation latency.
Related Issue(s)
This is the beginning of work toward #324
Where should the reviewer(s) start reviewing this?
Begin with the verifyio library (the first commit). This covers the
block format, xattr store, locking, and the verification code.
Then the various consumers of the library, and finally the interface
into the beegfs CLI.
What are the next steps after this PR?
There are a lot of improvements planned for all of these features long
term. This is intended to be the initial commit for a lot of additional
work — a starting point, not a finishing point.
The next steps planned for the verifyio library include: mmap support,
various directory stress/verification mechanisms,
non-fcntl inter-node locking, and more programs for cache-coherence testing.
Then, adding consumer test programs for those features.
Checklist before merging:
to be added or updated? — documentation for the CLI is in
ctl/internal/cmd/iotest/DESIGN.md, and for the verifyio libraryin
verifyio/README.md.this change?
tests? — this includes unit tests for the verifyio library; no
additional unit tests required for this PR.
integration tests? — no.