-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrand-zones.fio
26 lines (23 loc) · 934 Bytes
/
rand-zones.fio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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/
# It's also possible to use zoned_abs to specify absolute sizes. For
# instance, if you do:
#
# random_distribution=zoned_abs:50/10G:30/100G:20/500G
#
# Then 50% of the access will be to the first 10G of the drive, 30%
# will be to the next 100G, and 20% will be to the next 500G.
# 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