-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·48 lines (36 loc) · 875 Bytes
/
run
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
#!/bin/bash
if [ -z $DISK ]; then
echo "You need to set \$DISK"
exit
fi
FSL=( "Bento-fs" "Bento-user" "Bento-prov" "ext4-ordered" "ext4-journal")
for FS in "${FSL[@]}"; do
export FS=$FS
export MNT=/mnt/$FS
mkdir ./results/$FS
./bento_init
./prepare_disk
./mount
./redis
./rocksdb
./otherapps
sudo cp -r -f $MNT/results/. ./results/$FS
sudo find results -type d -exec chmod 755 {} \;
sudo find results -type f -exec chmod 644 {} \;
sudo find results -type f -exec chown -R $USER:$USER {} \;
sudo find results -type d -exec chown -R $USER:$USER {} \;
# filebench writes to the final results dir immediately
./filebench
./umount
done
FSL2=( "Bento-fs" "ext4-journal")
for FS in "${FSL2[@]}"; do
export FS=$FS
export MNT=/mnt/$FS
./bento_init
./prepare_disk
./mount
# writes to the final results dir immediately
./fio_latency
./umount
done