-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·24 lines (19 loc) · 589 Bytes
/
test.sh
File metadata and controls
executable file
·24 lines (19 loc) · 589 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Parse input
if [ $# -ne 4 ]; then
echo "Usage: $0 <# of objects> <max size of objects> <# of tasks> <# of containers>"
exit
fi
number_of_objects=$1
max_size_of_objects=$2
number_of_processes=$3
number_of_containers=$4
sudo insmod kernel_module/memory_container.ko
sudo chmod 777 /dev/mcontainer
./benchmark/benchmark $1 $2 $3 $4
cat *.log > trace
sort -n -k 4 trace > sorted_trace
./benchmark/validate $1 $2 $4 < sorted_trace
# if you want to see the log for debugging, comment out the following line.
rm -f *.log trace sorted_trace
sudo rmmod memory_container