forked from google/ghost-userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diff_workload.sh
34 lines (25 loc) · 1.52 KB
/
diff_workload.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
arr=("0.025" "0.05" "0.075" "0.1" "0.125" "0.15" "0.175" "0.2")
# 0.005 0.025 0.05 0.07 0.08 0.09 0.1
for workload in ${arr[@]}; do
echo "RUN $workload"
if ! test -f ./diff_workloads/ghost_$workload.out.done; then
sudo bazel-bin/experiments/scripts/shinjuku.par ghost $workload 30us 10000 151000 10000 | tee ./diff_workloads/ghost_$workload.out
mv ./diff_workloads/ghost_$workload.out ./diff_workloads/ghost_$workload.out.done
echo "Done ghost_$workload.out"
fi
if ! test -f ./diff_workloads/cfs_$workload.out.done; then
sudo bazel-bin/experiments/scripts/shinjuku.par cfs $workload 30us 10000 151000 10000 | tee ./diff_workloads/cfs_$workload.out
mv ./diff_workloads/cfs_$workload.out ./diff_workloads/cfs_$workload.out.done
echo "Done cfs_$workload.out"
fi
if ! test -f ./diff_workloads/fifo_centralized_agent_$workload.out.done; then
sudo bazel-bin/experiments/scripts/shinjuku.par ghost $workload 10000 151000 10000 fifo_centralized_agent 30s | tee ./diff_workloads/fifo_centralized_agent_$workload.out
mv ./diff_workloads/fifo_centralized_agent_$workload.out ./diff_workloads/fifo_centralized_agent_$workload.out.done
echo "Done fifo_centralized_agent_$workload.out"
fi
if ! test -f ./diff_workloads/c-queue_$workload.out.done; then
#sudo bazel-bin/experiments/scripts/centralized_queuing.par ghost $workload 10000 151000 10000 | tee ./diff_workloads/c-queue_$workload.out
#mv ./diff_workloads/c-queue_$workload.out ./diff_workloads/c-queue_$workload.out.done
echo "Done c-queue_$workload.out"
fi
done