Skip to content

ginger0106/a2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

158 Commits
 
 
 
 
 
 
 
 

Repository files navigation

a2

包括了三个部分:分别为测带宽的服务器和客户端与控制器

requirements:

  • python3.7
  • gurobi
  • iperf3
  • tf
  • aiohttp
  • gurobipy
  • pillow
  • tcconfig

gurobi 下载地址

https://packages.gurobi.com/8.1/gurobi8.1.1_linux64.tar.gz

本地运行需要注意地方:


运行带宽测量模块: 

bw_server: 中需要改动cpu_server.txt 和gpu_server.txt 这部分的ip bw_client: 中需要改动cpu_server.txt 和gpu_server.txt 这部分的ip

bw_server启动指令: cpu:

  • python a2/bw_server/server_bw.py -p a2/bw_server/cpu_server.txt

gpu:

  • python a2/bw_server/server_bw.py -p a2/bw_server/gpu_server.txt

bw_client启动指令: cpu:

  • python a2/bw_client/iperf_clinet.py -p a2/bw_client/cpu_server.txt -i 10 -t 1200 gpu:
  • python a2/bw_client/iperf_clinet.py -p a2/bw_client/gpu_server.txt -i 10 -t 1200 i 是指间隔几秒钟 测量一次 t 是指持续多久 单位 s

需要注意:

  • 测量的带宽会写入到a2/bw_client/bw.txt 中
  • 每个client的 machine 都应该测量一个启动 bw_client 和 bw_server, 但是如果本地模拟的话,可以先尝试直接写好 bw.txt,由 client.py 直接读取就好

运行控制器

  • python controller_main.py -a 0.0.0.0 -d cpu -t 60 -x a2 -debug aws -n 18 -n 18 是开了 3 个 client process 在每个 client machine -debug 是指在 aws 上运行 需要注意: 这里调用了 gurobi,需要在controller machine上 安装配置好

所有结果保存在 controller 节点: /home/ubuntu/a2/controller/controller_dir_new/results/ 命名方式如下:(会被覆盖) results_methodname_device_time_1.pickle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages