-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mixed read/write tests to the benchmark. (#1130)
## Description of change As we make changes that might impact mixed read/write workloads it is useful to have some examples of these in our benchmarks. This change adds a 20/80, 50/50, and 80/20 read/write workload to the benchmarks. The results reporting is updated to support multiple job types in a single benchmark. This works by continuing to average over iterations as before, but averages each job separately then sums the averages to produce the final throughput number for that benchmark (i.e. (avg(read throughput) + avg(write throughput)) for the mixed benchmarks). ## Does this change impact existing behavior? No. ## Does this change need a changelog entry in any of the crates? No. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the [Developer Certificate of Origin (DCO)](https://developercertificate.org/). Signed-off-by: Andrew Peace <[email protected]>
- Loading branch information
Showing
4 changed files
with
96 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[global] | ||
name=fs_bench | ||
bs=256k | ||
runtime=30s | ||
time_based | ||
group_reporting | ||
|
||
[sequential_read] | ||
size=100G | ||
rw=read | ||
ioengine=sync | ||
fallocate=none | ||
numjobs=1 | ||
|
||
[sequential_write_four_threads] | ||
new_group | ||
numjobs=4 | ||
size=100G | ||
rw=write | ||
ioengine=sync | ||
fallocate=none | ||
create_on_open=1 | ||
fsync_on_close=1 | ||
unlink=1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[global] | ||
name=fs_bench | ||
bs=256k | ||
runtime=30s | ||
time_based | ||
group_reporting | ||
|
||
[sequential_read_two_threads] | ||
size=100G | ||
rw=read | ||
ioengine=sync | ||
fallocate=none | ||
numjobs=2 | ||
|
||
[sequential_write_two_threads] | ||
new_group | ||
numjobs=2 | ||
size=100G | ||
rw=write | ||
ioengine=sync | ||
fallocate=none | ||
create_on_open=1 | ||
fsync_on_close=1 | ||
unlink=1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[global] | ||
name=fs_bench | ||
bs=256k | ||
runtime=30s | ||
time_based | ||
group_reporting | ||
|
||
[sequential_read_four_threads] | ||
size=100G | ||
rw=read | ||
ioengine=sync | ||
fallocate=none | ||
numjobs=4 | ||
|
||
[sequential_write] | ||
new_group | ||
numjobs=1 | ||
size=100G | ||
rw=write | ||
ioengine=sync | ||
fallocate=none | ||
create_on_open=1 | ||
fsync_on_close=1 | ||
unlink=1 |
This file contains 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