-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.sh
46 lines (35 loc) · 1.49 KB
/
run.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/bash
sudo sh -c 'echo 8000 > /proc/sys/fs/mqueue/msg_max'
SMALL_DISK=/media/windows/Users/Sunil/Everything/MS/Courses/CSC568_ESA/Project/data/disk/ssd
BIG_DISK=/media/windows/Users/Sunil/Everything/MS/Courses/CSC568_ESA/Project/data/disk/hdd
SMALL_USB=/media/sunil3590/D017-4C6C/ssd
BIG_USB=/media/sunil3590/D017-4C6C/hdd
SMALL_BANK=/media/windows/Users/Sunil/Everything/MS/Courses/CSC568_ESA/Project/data/bank/ssd
BIG_BANK=/media/windows/Users/Sunil/Everything/MS/Courses/CSC568_ESA/Project/data/bank/hdd
echo "Generating files ..."
./sshdd generate $SMALL_BANK $BIG_BANK > generate.log
echo "Complete\n"
echo "Copying files to internal and external disks ..."
sh reset_files.sh
echo "Complete\n"
echo "Benchmarking hard disk - free run ..."
./sshdd benchmark $SMALL_DISK $BIG_DISK 0 > benchmark_disk.log
echo "Complete\n"
echo "Benchmarking USB pendrive - free run ..."
./sshdd benchmark $SMALL_USB $BIG_USB 0 > benchmark_usb.log
echo "Complete\n"
echo "Benchmarking hybrid - free run..."
./sshdd benchmark $SMALL_USB $BIG_DISK 0 > benchmark_free.log
echo "Complete\n"
echo "Profiling SSHDD - free run ..."
./sshdd profile $SMALL_USB $BIG_DISK 0 > profile_free.log
echo "Complete\n"
echo "Copying files to internal and external disks ..."
sh reset_files.sh
echo "Complete\n"
echo "Benchmarking hybrid - timed..."
./sshdd benchmark $SMALL_USB $BIG_DISK 1 > benchmark_realtime.log
echo "Complete\n"
echo "Profiling SSHDD - timed ..."
./sshdd profile $SMALL_USB $BIG_DISK 1 > profile_realtime.log
echo "Complete"