parent
87672b74c4
commit
8990f5c5ed
@ -1,3 +1,3 @@
|
||||
LD_LIBRARY_PATH=/home/weihao/sledge/sledge_tree/runtime/bin
|
||||
SLEDGE_SCHEDULER=EDF
|
||||
SLEDGE_SANDBOX_PERF_LOG=/home/weihao/sledge/sledge_tree/runtime_sandbox_perf_log.log
|
||||
LD_LIBRARY_PATH=/home/hai/sledge/sledge/runtime/bin
|
||||
SLEDGE_SCHEDULER=MDL
|
||||
SLEDGE_SANDBOX_PERF_LOG=/home/hai/sledge/sledge/runtime/tests/runtime_sandbox_perf_log.log
|
||||
|
@ -0,0 +1,51 @@
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib import font_manager as fm
|
||||
|
||||
def load_data(filename):
|
||||
"""
|
||||
Load data from a file.
|
||||
Assumes that each line in the file is a float value.
|
||||
"""
|
||||
with open(filename, 'r') as file:
|
||||
data = file.read().split()
|
||||
data = [float(i) for i in data]
|
||||
return data
|
||||
|
||||
def main():
|
||||
# 加载数据
|
||||
edf_data = load_data('edf_5k.txt')
|
||||
llf_data = load_data('llf_5k.txt')
|
||||
|
||||
# 设置X轴的数据点
|
||||
x_labels = [50, 60, 70, 80, 90, 100] # 确保数据与这些标签相匹配
|
||||
|
||||
font_properties = fm.FontProperties(family='Times New Roman', size=18)
|
||||
plt.rcParams.update({'font.size': 18, 'font.family': 'Times New Roman'})
|
||||
|
||||
# 创建图形和绘制数据
|
||||
plt.figure(figsize=(10, 6))
|
||||
ax = plt.gca() # 获取当前的Axes对象ax
|
||||
ax.set_facecolor('#f0f0f0') # 设置浅灰色背景
|
||||
plt.plot(x_labels, edf_data, marker='s', linestyle='-', color='#C8503D', markersize=8, label='EDF')
|
||||
plt.plot(x_labels, llf_data, marker='^', linestyle='-', color='#00008B', markersize=8, label='LLF')
|
||||
|
||||
# 添加标题、标签和图例
|
||||
plt.title('5KB-1.2* Deadline', fontsize=20, fontproperties=font_properties)
|
||||
plt.xlabel('Load (% of maximum RPS)', fontproperties=font_properties)
|
||||
plt.ylabel('Deadline Miss Rate (%)', fontproperties=font_properties)
|
||||
plt.legend(prop=font_properties)
|
||||
|
||||
# 设置X轴刻度
|
||||
plt.xticks(range(50, 101, 10))
|
||||
|
||||
# 设置网格
|
||||
plt.grid(True)
|
||||
|
||||
# 移除边框的四边刻度线
|
||||
plt.tick_params(axis='both', which='both', length=0) # 移除刻度线
|
||||
|
||||
# 显示图形
|
||||
plt.show()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
@ -0,0 +1,340 @@
|
||||
{
|
||||
"active": true,
|
||||
"name": "resize1",
|
||||
"path": "resize_wasm.so",
|
||||
"port": 10000,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 0,
|
||||
"next_modules": ["png2bmp1", "lpd_wasm1"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "png2bmp1",
|
||||
"path": "C-Image-Manip_wasm.so",
|
||||
"port": 10001,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["cifar10_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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "lpd_wasm1",
|
||||
"path": "lpd_wasm.so",
|
||||
"port": 10002,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 2,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1"],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/bmp",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 4096000,
|
||||
"http-resp-content-type": "text/plain"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "cifar10_1",
|
||||
"path": "cifar10_wasm.so",
|
||||
"port": 10003,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "work1",
|
||||
"path": "work3_wasm.so",
|
||||
"port": 10004,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 2,
|
||||
"next_modules": [],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "text/plain",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024,
|
||||
"http-resp-content-type": "text/plain"
|
||||
},
|
||||
|
||||
{
|
||||
"active": true,
|
||||
"name": "resize1_2",
|
||||
"path": "resize_wasm.so",
|
||||
"port": 10005,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 0,
|
||||
"next_modules": ["png2bmp1_2", "lpd_wasm1_2"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "png2bmp1_2",
|
||||
"path": "C-Image-Manip_wasm.so",
|
||||
"port": 10006,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["cifar10_2"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "lpd_wasm1_2",
|
||||
"path": "lpd_wasm.so",
|
||||
"port": 10007,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 2,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1_2"],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/bmp",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 4096000,
|
||||
"http-resp-content-type": "text/plain",
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "cifar10_2",
|
||||
"path": "cifar10_wasm.so",
|
||||
"port": 10008,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1_2"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "work1_2",
|
||||
"path": "work3_wasm.so",
|
||||
"port": 10009,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 2,
|
||||
"next_modules": [],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "text/plain",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024,
|
||||
"http-resp-content-type": "text/plain"
|
||||
},{
|
||||
"active": true,
|
||||
"name": "resize1_3",
|
||||
"path": "resize_wasm.so",
|
||||
"port": 10010,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 0,
|
||||
"next_modules": ["png2bmp1_3", "lpd_wasm1_3"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "png2bmp1_3",
|
||||
"path": "C-Image-Manip_wasm.so",
|
||||
"port": 10011,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["cifar10_3"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "lpd_wasm1_3",
|
||||
"path": "lpd_wasm.so",
|
||||
"port": 10012,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 2,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1_3"],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/bmp",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 4096000,
|
||||
"http-resp-content-type": "text/plain",
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "cifar10_3",
|
||||
"path": "cifar10_wasm.so",
|
||||
"port": 10013,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1_3"],
|
||||
"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",
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "work1_3",
|
||||
"path": "work3_wasm.so",
|
||||
"port": 10014,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 2,
|
||||
"next_modules": [],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "text/plain",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024,
|
||||
"http-resp-content-type": "text/plain",
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "resize1_4",
|
||||
"path": "resize_wasm.so",
|
||||
"port": 10015,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 0,
|
||||
"next_modules": ["png2bmp1_4", "lpd_wasm1_4"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "png2bmp1_4",
|
||||
"path": "C-Image-Manip_wasm.so",
|
||||
"port": 10016,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["cifar10_4"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "lpd_wasm1_4",
|
||||
"path": "lpd_wasm.so",
|
||||
"port": 10017,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 2,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1_4"],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "image/bmp",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 4096000,
|
||||
"http-resp-content-type": "text/plain",
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "cifar10_4",
|
||||
"path": "cifar10_wasm.so",
|
||||
"port": 10018,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 1,
|
||||
"next_modules": ["work1_4"],
|
||||
"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",
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"name": "work1_4",
|
||||
"path": "work3_wasm.so",
|
||||
"port": 10019,
|
||||
"relative-deadline-us": 16346,
|
||||
"argsize": 1,
|
||||
"priority": 1,
|
||||
"pre_module_count": 2,
|
||||
"next_modules": [],
|
||||
"http-req-headers": [],
|
||||
"http-req-content-type": "text/plain",
|
||||
"http-req-size": 4096000,
|
||||
"http-resp-headers": [],
|
||||
"http-resp-size": 1024,
|
||||
"http-resp-content-type": "text/plain",
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
Runtime Environment:
|
||||
CPU Speed: 2400 MHz
|
||||
Processor Speed: 2400 MHz
|
||||
RLIMIT_DATA: Infinite
|
||||
RLIMIT_NOFILE: 1048576
|
||||
Core Count: 8
|
||||
Listener core ID: 1
|
||||
First Worker core ID: 2
|
||||
Worker core count: 6
|
||||
Scheduler Policy: MDL
|
||||
Sigalrm Policy: BROADCAST
|
||||
Preemption: Enabled
|
||||
Quantum: 5000 us
|
||||
Sandbox Performance Log: /home/hai/sledge/sledge/runtime/tests/runtime_sandbox_perf_log.log
|
||||
Starting listener thread
|
||||
Listener core thread: 7ffff7a006c0
|
||||
Starting 6 worker thread(s)
|
||||
C: 01, T: 0x7ffff7bfdd80, F: runtime_start_runtime_worker_threads>
|
||||
Sandboxing environment ready!
|
||||
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
||||
C: 01, T: 0x7ffff7bfdd80, F: module_new>
|
||||
Stack Size: 524288
|
Loading…
Reference in new issue