-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for zones of random IO, with varying frequency of access
Let's say you want to ensure that 50% of the IO falls in the first 5% of the flie, with the remaining 50% over the last 95%. Now that's possible with random_distribution=zoned. For this particular case, you would do: random_distribution=zoned:50/5:50/95 Up to 64 ranges can be specified, and multiple data directions can be given as well. The above would apply to both reads, writes, and trims. If you wanted to have 50% of the writes fall in the first 10%, 25% in the next 10%, and the last 25% over the remaining 80%, you could extend the above ala: random_distribution=zoned:50/5:50/95,50/10:25/10:25/80 Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information
Showing
11 changed files
with
472 additions
and
28 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
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
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,18 @@ | ||
# Sample job file demonstrating how to use zoned random distributionss | ||
# to have skewed random accesses. This example has 50% of the accesses | ||
# to the first 5% of the file (50/5), 30% to the next 15% (30/15), and | ||
# finally 20% of the IO will end up in the remaining 80%. | ||
[zones] | ||
size=2g | ||
direct=1 | ||
bs=4k | ||
rw=randread | ||
norandommap | ||
random_distribution=zoned:50/5:30/15:20/ | ||
|
||
# The above applies to all of reads/writes/trims. If we wanted to do | ||
# something differently for writes, let's say 50% for the first 10% | ||
# and 50% for the remaining 90%, we could do it by adding a new section | ||
# after a a comma. | ||
|
||
# random_distribution=zoned:50/5:30/15:20/,50/10:50/90 |
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
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
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
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
Oops, something went wrong.