-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun-fio-scaling.sh
71 lines (67 loc) · 1.8 KB
/
run-fio-scaling.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
dir="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
if [ $# != 1 ]; then
echo "figure2-fio-run.sh requires one arg:" \
"1: nvme_device"
exit 1
fi
set -e
mkdir -p data/fio
# Writes
for bs in 8192; do
sudo nvme zns reset-zone -a /dev/${1};
sleep 1;
sudo ${dir}/fio-with-appends/fio \
--ioengine=io_uring_cmd \
--zone_append=0 \
--zonemode=zbd \
--direct=0 \
--rw=write \
--filename=/dev/$(echo ${1} | sed 's/nvme/ng/') \
--size=100% \
--time_based=1 \
--runtime=60s \
--ramp_time=10s \
--name=spdk_without_append \
--bs=${bs} \
--iodepth=1 \
--numjobs=1 \
--fixedbufs=1 \
--registerfiles=1 \
--hipri \
--sqthread_poll=1 \
--thread=1 \
--iodepth_low=0 \
--output-format=json \
> data/fio/f2_${1}_uring_without_append_${bs}
done
# Appends
for bs in 8192; do
for qd in 1 2 4 8 16 32 64; do
sudo nvme zns reset-zone -a /dev/${1};
sleep 1;
sudo ${dir}/fio-with-appends/fio \
--ioengine=io_uring_cmd \
--zone_append=1 \
--zonemode=zbd \
--direct=0 \
--rw=write \
--filename=/dev/$(echo ${1} | sed 's/nvme/ng/') \
--size=100% \
--time_based=1 \
--runtime=60s \
--ramp_time=10s \
--name=spdk_with_append \
--bs=${bs} \
--iodepth=${qd} \
--numjobs=1 \
--fixedbufs=1 \
--registerfiles=1 \
--hipri \
--sqthread_poll=1 \
--thread=1 \
--iodepth_low=0 \
--output-format=json \
> data/fio/f2_${1}_uring_with_append_${bs}_${qd}
done
done