Compare commits
16 Commits
master
...
remove_ato
Author | SHA1 | Date |
---|---|---|
|
a79bd35f11 | 3 years ago |
|
d3568884fe | 3 years ago |
|
7841162eee | 3 years ago |
|
acf7868430 | 3 years ago |
|
680879eca1 | 3 years ago |
|
1180fb68cd | 3 years ago |
|
99347aacd1 | 3 years ago |
|
c4f40cc5bf | 3 years ago |
|
9582ed445e | 3 years ago |
|
a9dd1f9710 | 3 years ago |
|
8a20ae7037 | 3 years ago |
|
48f9d44aea | 3 years ago |
|
da8dbc4032 | 3 years ago |
|
96f78698ce | 3 years ago |
|
b2754acc30 | 3 years ago |
|
c07ebd310f | 3 years ago |
@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "arch/getcycles.h"
|
||||
#include "local_runqueue.h"
|
||||
#include "panic.h"
|
||||
#include "sandbox_state_history.h"
|
||||
#include "sandbox_state_transition.h"
|
||||
#include "sandbox_types.h"
|
||||
|
||||
/**
|
||||
* Transitions a sandbox to the SANDBOX_RUNNABLE state.
|
||||
*
|
||||
* This occurs in the following scenarios:
|
||||
* - A sandbox in the SANDBOX_INITIALIZED state completes initialization and is ready to be run
|
||||
* - A sandbox in the SANDBOX_ASLEEP state completes what was blocking it and is ready to be run
|
||||
*
|
||||
* @param sandbox
|
||||
* @param last_state the state the sandbox is transitioning from. This is expressed as a constant to
|
||||
* enable the compiler to perform constant propagation optimizations.
|
||||
*/
|
||||
static inline void
|
||||
sandbox_set_as_init(struct sandbox *sandbox, sandbox_state_t last_state)
|
||||
{
|
||||
assert(sandbox);
|
||||
sandbox->state = SANDBOX_RUNNABLE;
|
||||
uint64_t now = __getcycles();
|
||||
|
||||
switch (last_state) {
|
||||
case SANDBOX_INITIALIZED: {
|
||||
sandbox->timestamp_of.dispatched = now;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
panic("Sandbox %lu | Illegal transition from %s to Runnable\n", sandbox->id,
|
||||
sandbox_state_stringify(last_state));
|
||||
}
|
||||
}
|
||||
|
||||
/* State Change Bookkeeping */
|
||||
assert(now > sandbox->timestamp_of.last_state_change);
|
||||
sandbox->last_state_duration = now - sandbox->timestamp_of.last_state_change;
|
||||
sandbox->duration_of_state[last_state] += sandbox->last_state_duration;
|
||||
sandbox->timestamp_of.last_state_change = now;
|
||||
sandbox_state_history_append(&sandbox->state_history, SANDBOX_RUNNABLE);
|
||||
sandbox_state_totals_increment(SANDBOX_RUNNABLE);
|
||||
sandbox_state_totals_decrement(last_state);
|
||||
|
||||
/* State Change Hooks */
|
||||
sandbox_state_transition_from_hook(sandbox, last_state);
|
||||
sandbox_state_transition_to_hook(sandbox, SANDBOX_RUNNABLE);
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 80)
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 77)
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
echo "fib num is $fib_num"
|
||||
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 77)
|
||||
cores=1
|
||||
#sledge_num=(2)
|
||||
ulimit -n 1000000
|
||||
./kill_sledge.sh
|
||||
|
||||
|
||||
for((j=1;j<=12;j++));
|
||||
do
|
||||
start_script_name="start_single_worker"$j".sh"
|
||||
server_log="server-"$cores"-$fib_num-$concurrency"$j".log"
|
||||
./$start_script_name $cores > $server_log 2>&1 &
|
||||
echo $start_script_name
|
||||
echo $server_log
|
||||
|
||||
done
|
||||
step=4
|
||||
for((j=1;j<=12;j++));
|
||||
do
|
||||
start_core=$(( 80 + ($j-1) * $step ))
|
||||
end_core=$(( 80 + $j * $step -1 ))
|
||||
echo $start_core $end_core
|
||||
port=$(( $j - 1 + 10030))
|
||||
taskset --cpu-list $start_core-$end_core hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://127.0.0.1:$port/fib" > /dev/null 2>&1 &
|
||||
done
|
||||
|
||||
sleep 60
|
||||
./kill_sledge.sh
|
||||
folder_name=${sledge_num[i]}"_$fib_num""_c$concurrency"
|
||||
mkdir $folder_name
|
||||
#mv *.log $folder_name
|
||||
|
||||
|
@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
setVim(){
|
||||
echo "hi comment ctermfg=3
|
||||
set hlsearch
|
||||
|
||||
if has(\"autocmd\")
|
||||
au BufReadPost * if line(\"'\\\"\") > 1 && line(\"'\\\"\") <= line(\"$\") | exe \"normal! g'\\\"\" | endif
|
||||
endif
|
||||
|
||||
" > ~/.vimrc
|
||||
}
|
||||
|
||||
setVim
|
||||
|
||||
#remember github username and password
|
||||
git config --global credential.helper store
|
||||
|
||||
do_partition() {
|
||||
echo "doing partition"
|
||||
echo "n
|
||||
p
|
||||
1
|
||||
|
||||
+400G
|
||||
w
|
||||
" | sudo fdisk /dev/sdb && sleep 4 && sudo mkfs.ext4 /dev/sdb1
|
||||
}
|
||||
|
||||
add_partition() {
|
||||
has_sdb=`sudo fdisk -l /dev/sdb|grep "/dev/sdb: 1.9 TiB"`
|
||||
no_partition=`sudo fdisk -l /dev/sdb|grep "Device"`
|
||||
#echo $has_sdb
|
||||
if [[ $has_sdb == *"Disk /dev/sdb: 1.9 TiB"* ]]; then
|
||||
if [ -z "$no_partition" ];
|
||||
then
|
||||
do_partition
|
||||
else
|
||||
echo "/dev/sdb already has paritions"
|
||||
exit
|
||||
fi
|
||||
else
|
||||
echo "no /dev/sdb or its capacity is not 1.1 TiB"
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
mount_partition() {
|
||||
sudo mkdir /my_mount
|
||||
sudo mount /dev/sda4 /my_mount
|
||||
df -h
|
||||
}
|
||||
#add_partition
|
||||
sudo mkfs.ext4 /dev/sda4
|
||||
mount_partition
|
||||
sudo chmod 777 /my_mount
|
||||
|
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# Executes the runtime in GDB
|
||||
# Substitutes the absolute path from the container with a path relatively derived from the location of this script
|
||||
# This allows debugging outside of the Docker container
|
||||
# Also disables pagination and stopping on SIGUSR1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$1")/../.."
|
||||
pwd
|
||||
)"
|
||||
path=`pwd`
|
||||
echo $project_path
|
||||
cd $project_path/runtime/bin
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SANDBOX_PERF_LOG=$path/srsf.log
|
||||
export SLEDGE_NWORKERS=1
|
||||
export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH"
|
||||
#gdb --eval-command="handle SIGUSR1 nostop" \
|
||||
# --eval-command="set pagination off" \
|
||||
# --eval-command="set substitute-path /sledge/runtime $project_path/runtime" \
|
||||
# --eval-command="run ../tests/fib.json"
|
||||
# ./sledgert
|
||||
|
||||
gdb ./sledgert
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10030,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "empty.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10030,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu",
|
||||
"port": 10030,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10039,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10040,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10041,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10031,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10032,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10033,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10034,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10035,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10036,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10037,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"name": "gwu2",
|
||||
"port": 10038,
|
||||
"replenishment-period-us": 0,
|
||||
"max-budget-us": 0,
|
||||
"routes": [
|
||||
{
|
||||
"route": "/fib",
|
||||
"path": "fibonacci.wasm.so",
|
||||
"admissions-percentile": 70,
|
||||
"expected-execution-us": 4000,
|
||||
"relative-deadline-us": 16000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
pid=`ps -ef|grep "sledgert"|grep -v grep |awk '{print $2}'`
|
||||
echo $pid
|
||||
sudo kill -2 $pid
|
||||
sudo kill -9 $pid
|
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# DISCLAIMER:
|
||||
# Script taken from http://askubuntu.com/questions/201937/ubuntu-detect-4-cpus-and-i-have-only-2-cpus
|
||||
|
||||
|
||||
echo "Disabling hyperthreading..."
|
||||
|
||||
CPUS_TO_SKIP=" $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list | sed 's/[^0-9].*//' | sort | uniq | tr "\r\n" " ") "
|
||||
|
||||
# Disable Hyperthreading
|
||||
for CPU_PATH in /sys/devices/system/cpu/cpu[0-9]*; do
|
||||
CPU="$(echo $CPU_PATH | tr -cd "0-9")"
|
||||
echo "$CPUS_TO_SKIP" | grep " $CPU " > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 0 > $CPU_PATH/online
|
||||
fi
|
||||
done
|
||||
|
||||
lscpu | grep -i -E "^CPU\(s\):|core|socket"
|
||||
|
@ -0,0 +1,46 @@
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
#get all file names which contain key_str
|
||||
def file_name(file_dir, key_str):
|
||||
throughput_table = defaultdict(list)
|
||||
for root, dirs, files in os.walk(file_dir):
|
||||
if root != os.getcwd():
|
||||
continue
|
||||
for file_i in files:
|
||||
if file_i.find(key_str) >= 0:
|
||||
segs = file_i.split('-')
|
||||
if len(segs) < 3:
|
||||
continue
|
||||
#print(file_i)
|
||||
cores_num = segs[0]
|
||||
concurrency = segs[2].split(".")[0]
|
||||
#print("core:", cores_num, " concurrency:", concurrency)
|
||||
get_values(cores_num, concurrency, file_i, throughput_table)
|
||||
#file_table[key].append(file_i)
|
||||
s_result = sorted(throughput_table.items())
|
||||
for i in range(len(s_result)):
|
||||
print(s_result[i])
|
||||
|
||||
def get_values(core, concurrency, file_name, throughput_table):
|
||||
cmd='grep "Requests/sec:" %s | awk \'{print $2}\'' % file_name
|
||||
#cmd='python3 ~/sledge-serverless-framework/runtime/tests/meet_deadline_percentage.py %s 50' % file_name
|
||||
rt=os.popen(cmd).read().strip()
|
||||
#print(file_name, rt)
|
||||
throughput_table[int(core)].append(rt)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import json
|
||||
argv = sys.argv[1:]
|
||||
if len(argv) < 1:
|
||||
print("usage ", sys.argv[0], " file containing key word")
|
||||
sys.exit()
|
||||
|
||||
file_name(os.getcwd(), argv[0])
|
||||
|
||||
#for key, value in files_tables.items():
|
||||
# get_values(key, value, miss_deadline_rate, total_latency, running_times, preemption_count, total_miss_deadline_rate)
|
||||
|
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
pushd 1_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
||||
pushd 2_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
||||
|
||||
pushd 3_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
||||
pushd 4_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
||||
|
||||
pushd 5_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
||||
pushd 6_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
||||
pushd 7_15_c100
|
||||
python3 ../parse_multi_sledge.py server-
|
||||
popd
|
||||
|
@ -0,0 +1,57 @@
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
global_total_throughput = 0
|
||||
#get all file names which contain key_str
|
||||
def file_name(file_dir, key_str):
|
||||
throughput_table = defaultdict(list)
|
||||
errors_table = defaultdict(list)
|
||||
for root, dirs, files in os.walk(file_dir):
|
||||
if root != os.getcwd():
|
||||
continue
|
||||
for file_i in files:
|
||||
if file_i.find(key_str) >= 0:
|
||||
segs = file_i.split('-')
|
||||
if len(segs) < 3:
|
||||
continue
|
||||
#print(file_i)
|
||||
cores_num = segs[1]
|
||||
concurrency = segs[3].split(".")[0]
|
||||
print("core:", cores_num, " concurrency:", concurrency)
|
||||
get_values(cores_num, concurrency, file_i, throughput_table, errors_table)
|
||||
#file_table[key].append(file_i)
|
||||
s_result = sorted(throughput_table.items())
|
||||
for i in range(len(s_result)):
|
||||
print(s_result[i], "errors request:", errors_table[s_result[i][0]])
|
||||
for i in range(len(s_result)):
|
||||
print(int(float(((s_result[i][1][0])))),end=" ")
|
||||
print();
|
||||
print("+++++++++++++++++++total throughput:", global_total_throughput)
|
||||
|
||||
def get_values(core, concurrency, file_name, throughput_table, errors_table):
|
||||
fo = open(file_name, "r+")
|
||||
total_throughput = 0
|
||||
for line in fo:
|
||||
line = line.strip()
|
||||
if "throughput is" in line:
|
||||
i_th = float(line.split(" ")[2])
|
||||
total_throughput += i_th
|
||||
global global_total_throughput;
|
||||
global_total_throughput += total_throughput
|
||||
print(file_name, " throughput:", total_throughput)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import json
|
||||
argv = sys.argv[1:]
|
||||
if len(argv) < 1:
|
||||
print("usage ", sys.argv[0], " file containing key word")
|
||||
sys.exit()
|
||||
|
||||
file_name(os.getcwd(), argv[0])
|
||||
|
||||
#for key, value in files_tables.items():
|
||||
# get_values(key, value, miss_deadline_rate, total_latency, running_times, preemption_count, total_miss_deadline_rate)
|
||||
|
@ -0,0 +1,65 @@
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
#get all file names which contain key_str
|
||||
def file_name(file_dir, key_str):
|
||||
throughput_table = defaultdict(list)
|
||||
errors_table = defaultdict(list)
|
||||
for root, dirs, files in os.walk(file_dir):
|
||||
if root != os.getcwd():
|
||||
continue
|
||||
for file_i in files:
|
||||
if file_i.find(key_str) >= 0:
|
||||
segs = file_i.split('-')
|
||||
if len(segs) < 3:
|
||||
continue
|
||||
#print(file_i)
|
||||
cores_num = segs[1]
|
||||
concurrency = segs[3].split(".")[0]
|
||||
print("core:", cores_num, " concurrency:", concurrency)
|
||||
get_values(cores_num, concurrency, file_i, throughput_table, errors_table)
|
||||
#file_table[key].append(file_i)
|
||||
s_result = sorted(throughput_table.items())
|
||||
#for i in range(len(s_result)):
|
||||
# print(s_result[i], "errors request:", errors_table[s_result[i][0]])
|
||||
for i in range(len(s_result)):
|
||||
print(int(float(((s_result[i][1][0])))),end=" ")
|
||||
print();
|
||||
#sys.exit()
|
||||
|
||||
def get_values(core, concurrency, file_name, throughput_table, errors_table):
|
||||
print("parse file:", file_name)
|
||||
fo = open(file_name, "r+")
|
||||
total_throughput = 0
|
||||
|
||||
for line in fo:
|
||||
line = line.strip()
|
||||
if "throughput is" in line:
|
||||
i_th = float(line.split(" ")[2])
|
||||
total_throughput += i_th
|
||||
|
||||
throughput_table[int(core)].append(total_throughput)
|
||||
#cmd2='grep "throughput is" %s | awk \'{print $7}\'' % file_name
|
||||
#rt2=os.popen(cmd2).read().strip()
|
||||
#if len(rt2) != 0:
|
||||
# errors = rt2.splitlines()[0]
|
||||
# errors_table[int(core)].append(int(errors))
|
||||
#else:
|
||||
# errors_table[int(core)].append(0)
|
||||
#print(file_name, rt2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import json
|
||||
argv = sys.argv[1:]
|
||||
if len(argv) < 1:
|
||||
print("usage ", sys.argv[0], " file containing key word")
|
||||
sys.exit()
|
||||
|
||||
file_name(os.getcwd(), argv[0])
|
||||
|
||||
#for key, value in files_tables.items():
|
||||
# get_values(key, value, miss_deadline_rate, total_latency, running_times, preemption_count, total_miss_deadline_rate)
|
||||
|
@ -0,0 +1,55 @@
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
#get all file names which contain key_str
|
||||
def file_name(file_dir, key_str):
|
||||
throughput_table = defaultdict(list)
|
||||
errors_table = defaultdict(list)
|
||||
for root, dirs, files in os.walk(file_dir):
|
||||
if root != os.getcwd():
|
||||
continue
|
||||
for file_i in files:
|
||||
if file_i.find(key_str) >= 0:
|
||||
segs = file_i.split('-')
|
||||
if len(segs) < 3:
|
||||
continue
|
||||
#print(file_i)
|
||||
cores_num = segs[1]
|
||||
concurrency = segs[3].split(".")[0]
|
||||
print("core:", cores_num, " concurrency:", concurrency)
|
||||
get_values(cores_num, concurrency, file_i, throughput_table, errors_table)
|
||||
#file_table[key].append(file_i)
|
||||
s_result = sorted(throughput_table.items())
|
||||
for i in range(len(s_result)):
|
||||
print(s_result[i], "errors request:", errors_table[s_result[i][0]])
|
||||
for i in range(len(s_result)):
|
||||
print(int(float(((s_result[i][1][0])))),end=" ")
|
||||
print();
|
||||
#sys.exit()
|
||||
|
||||
def get_values(core, concurrency, file_name, throughput_table, errors_table):
|
||||
fo = open(file_name, "r+")
|
||||
total_throughput = 0
|
||||
for line in fo:
|
||||
line = line.strip()
|
||||
if "throughput is" in line:
|
||||
i_th = float(line.split(" ")[2])
|
||||
total_throughput += i_th
|
||||
|
||||
print("throughput:", total_throughput)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import json
|
||||
argv = sys.argv[1:]
|
||||
if len(argv) < 1:
|
||||
print("usage ", sys.argv[0], " file containing key word")
|
||||
sys.exit()
|
||||
|
||||
file_name(os.getcwd(), argv[0])
|
||||
|
||||
#for key, value in files_tables.items():
|
||||
# get_values(key, value, miss_deadline_rate, total_latency, running_times, preemption_count, total_miss_deadline_rate)
|
||||
|
@ -0,0 +1 @@
|
||||
sudo cpupower frequency-set -g performance
|
@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 80)
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 77)
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
echo "fib num is $fib_num"
|
||||
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 77)
|
||||
cores=12
|
||||
sledge_num=(1 2 3 4 5 6)
|
||||
#sledge_num=(2)
|
||||
ulimit -n 1000000
|
||||
./kill_sledge.sh
|
||||
for(( i=0;i<${#sledge_num[@]};i++ )) do
|
||||
echo ${sledge_num[i]}
|
||||
for((j=1;j<=${sledge_num[i]};j++));
|
||||
do
|
||||
start_script_name="start"$j".sh"
|
||||
server_log="server-"${sledge_num[i]}"_$cores""-$fib_num-$concurrency"$j".log"
|
||||
./$start_script_name $cores > $server_log 2>&1 &
|
||||
echo $start_script_name
|
||||
echo $server_log
|
||||
|
||||
done
|
||||
|
||||
step=$(( 81 / ${sledge_num[i]} ))
|
||||
for((j=1;j<=${sledge_num[i]};j++));
|
||||
do
|
||||
start_core=$(( 80 + ($j-1) * $step ))
|
||||
end_core=$(( 80 + $j * $step -1 ))
|
||||
echo $start_core $end_core
|
||||
port_sufix=$(( $j - 1 ))
|
||||
taskset --cpu-list $start_core-$end_core hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://127.0.0.1:1003$port_sufix/fib" > /dev/null 2>&1 &
|
||||
done
|
||||
|
||||
sleep 60
|
||||
./kill_sledge.sh
|
||||
folder_name=${sledge_num[i]}"_$fib_num""_c$concurrency"
|
||||
mkdir $folder_name
|
||||
#mv *.log $folder_name
|
||||
done
|
||||
|
@ -0,0 +1,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
#export SLEDGE_SCHEDULER=EDF
|
||||
#export SLEDGE_SANDBOX_PERF_LOG="perf.log"
|
||||
#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/fib.json
|
||||
#LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./sledgert ../tests/empty.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=2
|
||||
#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/fib1.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=14
|
||||
#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/fib2.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=26
|
||||
#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/fib3.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=38
|
||||
#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/fib4.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=50
|
||||
#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/fib5.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=62
|
||||
#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/fib6.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=74
|
||||
#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/fib7.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 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 80)
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 77)
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
echo "fib num is $fib_num"
|
||||
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 77)
|
||||
cores=12
|
||||
#sledge_num=(1 2 3 4 5 6 7)
|
||||
sledge_num=(6)
|
||||
ulimit -n 1000000
|
||||
for(( i=0;i<${#sledge_num[@]};i++ )) do
|
||||
echo ${sledge_num[i]}
|
||||
|
||||
step=$(( 81 / ${sledge_num[i]} ))
|
||||
for((j=1;j<=${sledge_num[i]};j++));
|
||||
do
|
||||
start_core=$(( 80 + ($j-1) * $step ))
|
||||
end_core=$(( 80 + $j * $step -1 ))
|
||||
echo $start_core $end_core
|
||||
port_sufix=$(( $j - 1 ))
|
||||
taskset --cpu-list $start_core-$end_core hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://127.0.0.1:1003$port_sufix/fib" > /dev/null 2>&1 &
|
||||
done
|
||||
|
||||
sleep 60
|
||||
./kill_sledge.sh
|
||||
folder_name=${sledge_num[i]}"_$fib_num""_c$concurrency"
|
||||
mkdir $folder_name
|
||||
mv *.log $folder_name
|
||||
done
|
||||
|
@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 80)
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 77)
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
echo "fib num is $fib_num"
|
||||
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 77)
|
||||
cores=12
|
||||
#sledge_num=(1 2 3 4 5 6 7)
|
||||
sledge_num=(6)
|
||||
ulimit -n 1000000
|
||||
./kill_sledge.sh
|
||||
for(( i=0;i<${#sledge_num[@]};i++ )) do
|
||||
echo ${sledge_num[i]}
|
||||
for((j=1;j<=${sledge_num[i]};j++));
|
||||
do
|
||||
start_script_name="start"$j".sh"
|
||||
server_log="server-"${sledge_num[i]}"_$cores""-$fib_num-$concurrency"$j".log"
|
||||
./$start_script_name $cores > $server_log 2>&1 &
|
||||
echo $start_script_name
|
||||
echo $server_log
|
||||
|
||||
done
|
||||
done
|
||||
|
@ -0,0 +1,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=2
|
||||
#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/fib1.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=11
|
||||
#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/fib10.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=12
|
||||
#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/fib11.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=13
|
||||
#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/fib12.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=3
|
||||
#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/fib2.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=4
|
||||
#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/fib3.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=5
|
||||
#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/fib4.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=6
|
||||
#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/fib5.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=7
|
||||
#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/fib6.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=8
|
||||
#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/fib7.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=9
|
||||
#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/fib8.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,44 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
ulimit -n 655350
|
||||
|
||||
function usage {
|
||||
echo "$0 [cpu cores]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 1 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
core_num=$1
|
||||
|
||||
declare project_path="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
pwd
|
||||
)"
|
||||
echo $project_path
|
||||
path=`pwd`
|
||||
#export SLEDGE_DISABLE_PREEMPTION=true
|
||||
#export SLEDGE_SIGALRM_HANDLER=TRIAGED
|
||||
#export SLEDGE_SPINLOOP_PAUSE_ENABLED=true
|
||||
export SLEDGE_NWORKERS=$core_num
|
||||
export SLEDGE_FIRST_COREID=10
|
||||
#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/fib9.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,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 80)
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 77)
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
echo "fib num is $fib_num"
|
||||
cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 44 48 52 56 60 64 68 72 77)
|
||||
#cores_list=(40)
|
||||
#cores_list=(44 48 52 56 60 64 68 72)
|
||||
ulimit -n 1000000
|
||||
./kill_sledge.sh
|
||||
for(( i=0;i<${#cores_list[@]};i++ )) do
|
||||
hey_log=${cores_list[i]}"-$fib_num-$concurrency.log" #8-38-100
|
||||
server_log="server-"${cores_list[i]}"-$fib_num-$concurrency.log"
|
||||
#./start.sh ${cores_list[i]} >/dev/null 2>&1 &
|
||||
./start.sh ${cores_list[i]} > $server_log 2>&1 &
|
||||
#./start.sh ${cores_list[i]} > $server_log &
|
||||
echo "sledge start with worker core ${cores_list[i]}"
|
||||
taskset --cpu-list 80-159 hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://127.0.0.1:10030/fib" > $hey_log
|
||||
#taskset --cpu-list 80-159 hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" "http://127.0.0.1:10030/fib" > $hey_log
|
||||
./kill_sledge.sh
|
||||
done
|
||||
|
||||
folder_name="$fib_num""_c$concurrency"
|
||||
mkdir $folder_name
|
||||
mv *.log $folder_name
|
@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
function usage {
|
||||
echo "$0 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
|
||||
chmod 400 ./id_rsa
|
||||
#test single c40
|
||||
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 44 48 52 56 60 64 68 70)
|
||||
cores_list=(64 68 70)
|
||||
ulimit -n 655350
|
||||
|
||||
|
||||
path="/my_mount/self_to_local/sledge-serverless-framework/runtime/tests"
|
||||
for(( i=0;i<${#cores_list[@]};i++ )) do
|
||||
hey_log=${cores_list[i]}"-$fib_num-$concurrency.log" #8-38-100
|
||||
server_log="server-"${cores_list[i]}"-$fib_num-$concurrency.log"
|
||||
#./start.sh ${cores_list[i]} >/dev/null 2>&1 &
|
||||
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh ${cores_list[i]} > $server_log 2>&1 &"
|
||||
echo "sledge start with worker core ${cores_list[i]}"
|
||||
hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://10.10.1.1:10030/fib" > $hey_log
|
||||
#taskset --cpu-list 80-159 hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" "http://127.0.0.1:10030/fib" > $hey_log
|
||||
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||
done
|
||||
folder_name="$fib_num""_c$concurrency"
|
||||
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "mkdir $path/$folder_name"
|
||||
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "mv *.log $path/$folder_name"
|
||||
|
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
function usage {
|
||||
echo "$0 [concurrency] [fib number]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 80)
|
||||
#cores_list=(1 2 4 6 8 10 20 30 40 50 60 70 77)
|
||||
concurrency=$1
|
||||
fib_num=$2
|
||||
|
||||
echo "fib num is $fib_num"
|
||||
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 77)
|
||||
cores_list=(12)
|
||||
ulimit -n 1000000
|
||||
./kill_sledge.sh
|
||||
for(( i=0;i<${#cores_list[@]};i++ )) do
|
||||
hey_log1=${cores_list[i]}"-$fib_num-$concurrency""1.log" #8-38-100
|
||||
hey_log2=${cores_list[i]}"-$fib_num-$concurrency""2.log" #8-38-100
|
||||
server_log1="server-"${cores_list[i]}"-$fib_num-$concurrency""1.log"
|
||||
server_log2="server-"${cores_list[i]}"-$fib_num-$concurrency""2.log"
|
||||
#./start.sh ${cores_list[i]} >/dev/null 2>&1 &
|
||||
./start1.sh ${cores_list[i]} > $server_log1 2>&1 &
|
||||
#./start.sh ${cores_list[i]} > $server_log &
|
||||
echo "sledge 1 2 start with worker core ${cores_list[i]}"
|
||||
taskset --cpu-list 80-119 hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://127.0.0.1:10030/fib" > $hey_log1 2>&1 &
|
||||
./start2.sh ${cores_list[i]} > $server_log2 2>&1 &
|
||||
taskset --cpu-list 120-159 hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://127.0.0.1:10031/fib" > $hey_log2
|
||||
|
||||
./kill_sledge.sh
|
||||
done
|
||||
|
||||
folder_name="$fib_num""_c$concurrency"
|
||||
mkdir $folder_name
|
||||
#mv *.log $folder_name
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
concurrency_list=(50 100 200 300 400 1000)
|
||||
#concurrency_list=(200 300 400 1000)
|
||||
#concurrency_list=(100)
|
||||
for(( i=0;i<${#concurrency_list[@]};i++ )) do
|
||||
./test.sh ${concurrency_list[i]} 15
|
||||
done
|
||||
|
Loading…
Reference in new issue