forked from haiwan/sledge
parent
607864d9fa
commit
9559c92c68
@ -0,0 +1,104 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [loop count]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
json_file="test_multiple_image_processing4.json"
|
||||
rm -rf $json_file
|
||||
touch $json_file
|
||||
|
||||
base_exec_time=(39287 96381 8173 23912)
|
||||
base_port=10000
|
||||
base_m_index=1
|
||||
func1_base_name="resize"
|
||||
func2_base_name="png2bmp"
|
||||
func3_base_name="cifar10_"
|
||||
|
||||
deadline_times=(2 10)
|
||||
loop_count=$1
|
||||
|
||||
for ((i=0; i <$loop_count; i++))
|
||||
do
|
||||
for ((j=1; j <=4; j++))
|
||||
do
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * ($i+1)))
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * (2**$i)))
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * (2**($i*2 + 1))))
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * 4))
|
||||
new_deadline=$((${base_exec_time[$j-1]} * ${deadline_times[$i]}))
|
||||
func1_new_name=$func1_base_name$base_m_index
|
||||
func1_new_port=$base_port
|
||||
base_port=$(($base_port + 1))
|
||||
|
||||
cat >> $json_file << EOF
|
||||
{
|
||||
"active": true,
|
||||
"name": "$func1_new_name",
|
||||
"path": "resize_wasm.so",
|
||||
"port": $func1_new_port,
|
||||
"relative-deadline-us": $new_deadline,
|
||||
"argsize": 1,
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/jpeg",
|
||||
"http-req-size": 1024000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024000,
|
||||
"http-resp-content-type": "image/png"
|
||||
},
|
||||
|
||||
EOF
|
||||
func2_new_name=$func2_base_name$base_m_index
|
||||
func2_new_port=$base_port
|
||||
base_port=$(($base_port + 1))
|
||||
|
||||
cat >> $json_file << EOF
|
||||
{
|
||||
"active": true,
|
||||
"name": "$func2_new_name",
|
||||
"path": "C-Image-Manip_wasm.so",
|
||||
"port": $func2_new_port,
|
||||
"relative-deadline-us": $new_deadline,
|
||||
"argsize": 1,
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/png",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 4096000,
|
||||
"http-resp-content-type": "image/bmp"
|
||||
},
|
||||
|
||||
EOF
|
||||
func3_new_name=$func3_base_name$base_m_index
|
||||
func3_new_port=$base_port
|
||||
base_port=$(($base_port + 1))
|
||||
|
||||
cat >> $json_file << EOF
|
||||
{
|
||||
"active": true,
|
||||
"name": "$func3_new_name",
|
||||
"path": "cifar10_wasm.so",
|
||||
"port": $func3_new_port,
|
||||
"relative-deadline-us": $new_deadline,
|
||||
"argsize": 1,
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/bmp",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024,
|
||||
"http-resp-content-type": "text/plain",
|
||||
"tail-module": true
|
||||
},
|
||||
|
||||
EOF
|
||||
echo "$func1_new_name, $func1_new_port, $func2_new_name, $func2_new_port, $func3_new_name, $func3_new_port, $new_deadline"
|
||||
base_m_index=$(($base_m_index + 1))
|
||||
done
|
||||
done
|
||||
|
@ -0,0 +1,107 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [loop count]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
json_file="test_multiple_image_processing5.json"
|
||||
rm -rf $json_file
|
||||
touch $json_file
|
||||
|
||||
base_exec_time=(39287 96381 8173 23912)
|
||||
base_port=10000
|
||||
base_m_index=1
|
||||
func1_base_name="resize"
|
||||
func2_base_name="png2bmp"
|
||||
func3_base_name="cifar10_"
|
||||
|
||||
deadline_times=(2 10)
|
||||
loop_count=$1
|
||||
|
||||
for ((i=0; i <$loop_count; i++))
|
||||
do
|
||||
for ((j=1; j <=4; j++))
|
||||
do
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * ($i+1)))
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * (2**$i)))
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * 4))
|
||||
#new_deadline=$((${base_exec_time[$j-1]} * (2**($i*2 + 1))))
|
||||
new_deadline=$((${base_exec_time[$j-1]} * ${deadline_times[$i]}))
|
||||
func1_new_name=$func1_base_name$base_m_index
|
||||
func1_new_port=$base_port
|
||||
base_port=$(($base_port + 1))
|
||||
|
||||
cat >> $json_file << EOF
|
||||
{
|
||||
"active": true,
|
||||
"name": "$func1_new_name",
|
||||
"path": "resize_wasm.so",
|
||||
"port": $func1_new_port,
|
||||
"relative-deadline-us": $new_deadline,
|
||||
"argsize": 1,
|
||||
"admissions-percentile": 80,
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/jpeg",
|
||||
"http-req-size": 1024000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024000,
|
||||
"http-resp-content-type": "image/png"
|
||||
},
|
||||
|
||||
EOF
|
||||
func2_new_name=$func2_base_name$base_m_index
|
||||
func2_new_port=$base_port
|
||||
base_port=$(($base_port + 1))
|
||||
|
||||
cat >> $json_file << EOF
|
||||
{
|
||||
"active": true,
|
||||
"name": "$func2_new_name",
|
||||
"path": "C-Image-Manip_wasm.so",
|
||||
"port": $func2_new_port,
|
||||
"relative-deadline-us": $new_deadline,
|
||||
"argsize": 1,
|
||||
"admissions-percentile": 80,
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/png",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 4096000,
|
||||
"http-resp-content-type": "image/bmp"
|
||||
},
|
||||
|
||||
EOF
|
||||
func3_new_name=$func3_base_name$base_m_index
|
||||
func3_new_port=$base_port
|
||||
base_port=$(($base_port + 1))
|
||||
|
||||
cat >> $json_file << EOF
|
||||
{
|
||||
"active": true,
|
||||
"name": "$func3_new_name",
|
||||
"path": "cifar10_wasm.so",
|
||||
"port": $func3_new_port,
|
||||
"relative-deadline-us": $new_deadline,
|
||||
"argsize": 1,
|
||||
"admissions-percentile": 80,
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/bmp",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024,
|
||||
"http-resp-content-type": "text/plain",
|
||||
"tail-module": true
|
||||
},
|
||||
|
||||
EOF
|
||||
echo "$func1_new_name, $func1_new_port, $func2_new_name, $func2_new_port, $func3_new_name, $func3_new_port, $new_deadline"
|
||||
base_m_index=$(($base_m_index + 1))
|
||||
done
|
||||
done
|
||||
|
@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [perf output file, chain_function_perf.log or single_function_perf.log or opt_function_perf.log]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
output=$1
|
||||
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
export SLEDGE_CPU_SPEED=3300
|
||||
#export SLEDGE_SCHEDULER=SRSF
|
||||
export SLEDGE_SIGALRM_HANDLER=BROADCAST
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_NWORKERS=1
|
||||
export SLEDGE_SCHEDULER=EDF
|
||||
export SLEDGE_SANDBOX_PERF_LOG=$path/$output
|
||||
echo $SLEDGE_SANDBOX_PERF_LOG
|
||||
cd $project_path/runtime/bin
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_big_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_armcifar10.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_png2bmp.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_image_processing.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/mulitple_linear_chain.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing3.json
|
||||
LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing4.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/my_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_sodresize.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/my_sodresize.json
|
@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [perf output file, chain_function_perf.log or single_function_perf.log or opt_function_perf.log]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
output=$1
|
||||
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
export SLEDGE_CPU_SPEED=3300
|
||||
export SLEDGE_SCHEDULER=SRSF
|
||||
export SLEDGE_SIGALRM_HANDLER=BROADCAST
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_NWORKERS=1
|
||||
#export SLEDGE_SCHEDULER=EDF
|
||||
export SLEDGE_SANDBOX_PERF_LOG=$path/$output
|
||||
echo $SLEDGE_SANDBOX_PERF_LOG
|
||||
cd $project_path/runtime/bin
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_big_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_armcifar10.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_png2bmp.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_image_processing.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/mulitple_linear_chain.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing3.json
|
||||
LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing5.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/my_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_sodresize.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/my_sodresize.json
|
@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [perf output file, chain_function_perf.log or single_function_perf.log or opt_function_perf.log]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
output=$1
|
||||
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
export SLEDGE_CPU_SPEED=3300
|
||||
export SLEDGE_SCHEDULER=SRSF
|
||||
export SLEDGE_SIGALRM_HANDLER=BROADCAST
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_NWORKERS=1
|
||||
#export SLEDGE_SCHEDULER=EDF
|
||||
export SLEDGE_SANDBOX_PERF_LOG=$path/$output
|
||||
echo $SLEDGE_SANDBOX_PERF_LOG
|
||||
cd $project_path/runtime/bin
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_big_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_armcifar10.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_png2bmp.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_image_processing.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/mulitple_linear_chain.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing3.json
|
||||
LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_multiple_image_processing4.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/my_fibonacci.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/test_sodresize.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/my_sodresize.json
|
Loading…
Reference in new issue