Skip to content

Running Experiments: Simulation Environment

Shreshth Tuli edited this page Nov 17, 2020 · 5 revisions

Prerequisite: Follow the instructions on the Installation and Environment Setup Page.

Running Experiments

  1. Prepare main.py by modifying the global simulation parameters (line 59), as shown in the figure:

  1. Select the scheduling algorithm to run (line 96). For example, to run random scheduler use RandomScheduler(). To run GOBI scheduler use GOBIScheduler(‘energy_latency’+str(HOSTS))

  1. Set datacenter (line 85). Currently the simulator supports SimpleFog, BitbrainFog and AzureFog datacenter characteristics.

  1. Set workload generator (line 92). Currently supports a simple workload generator (SWSD) and BitBrain workload traces (BWGD).

  1. Run main.py (Same command in Linux/Windows)
python main.py 

All results would be stored in logs/ folder. The .pk file in logs/*/ directory is the same as all_datasets/simulator/$ALGO/*.pk where $ALGO is the algorithm.

Clone this wiki locally