-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_jobfile.sh
46 lines (45 loc) · 1.33 KB
/
start_jobfile.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
#!/bin/sh
echo
echo Testing Sequential Read ...
FIO_RW=read
READ_IOPS=$(fio jobfile.fio --fallocate=none --runtime=30 --directory=$MOUNTPOINT --output-format=json+ --blocksize=4096 --output=read.json)
echo ==========================
echo = Sequential Read Result =
echo ==========================
echo
echo "$READ_IOPS"
echo
echo
echo Testing Random Read ...
FIO_RW=randread
RANDREAD_IOPS=$(fio jobfile.fio --fallocate=none --runtime=30 --directory=$MOUNTPOINT --output-format=json+ --blocksize=4096 --output=randread.json)
echo ======================
echo = Random Read Result =
echo ======================
echo
echo "$READ_IOPS"
echo
echo
echo Testing Sequential Write ...
FIO_RW=write
WRITE_IOPS=$(fio jobfile.fio --fallocate=none --runtime=30 --directory=$MOUNTPOINT --output-format=json+ --blocksize=4096 --output=write.json)
echo ===========================
echo = Sequential Write Result =
echo ===========================
echo
echo "$WRITE_IOPS"
echo
echo
echo Testing Random Write ...
FIO_RW=randwrite
RANDWRITE_IOPS=$(fio jobfile.fio --fallocate=none --runtime=30 --directory=$MOUNTPOINT --output-format=json+ --blocksize=4096 --output=randwrite.json)
echo =======================
echo = Random Write Result =
echo =======================
echo
echo "$RANDWRITE_IOPS"
echo
echo
echo =================
echo = Test Complete =
echo =================