Io uring/multiple write modes#2089
Open
minwooim wants to merge 2 commits into
Open
Conversation
63aaaae to
955c909
Compare
Previously, `--write_mode=` takes one of either write, uncor, zeroes and verify by replacing all the WRITE commands to the given commands. This option replaces all writes issued by a job with a single write type command defined by write_mode, which limits flexibility. This patch supports mixed `--write_mode=` within a job based on the given ratio of each write family command. Usage: --write_mode=30:write/20:zeroes/uncor:50 fio provides independent workloads on a per-job (thread_data) basis. Issuing multiple write family commands previously required configuring multiple jobs, which was cumbersome. This patch allows a single job to exercise a variety of write commands. Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
If WRITE command zeroed out to specific offest, it should be verified as zero just like trimmed. If WRITE command errored to specific offset, verify phase should be aware that the offset has been errored and error will be coming expectedly. This patch added two flags for @io_u and @ipo to represent that the offset is errored or zeroed so that verify phase can verify them accordingly. Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
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.
Introduce multiple wmode(write_mode) options for DDIR_WRITE workload.