mahabughosh / cloudsim

Automatically exported from code.google.com/p/cloudsim
0 stars 0 forks source link

How i can use the Workload in CloudSim? #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In "org.cloudbus.cloudsim.util" package there is "WorkloadFileReader 
implements WorkloadModel" that must read the predefine workload file and 
simulate it in the CloudSim, but i am not see any examples show how can i use 
it.
2. And in Addition, can i build dynamic workload and integrate it with 
CloudSim, if possible how?

What is the expected output? What do you see instead?
Example descrip how can i use workload in CloudSim. 

What version of the product are you using? On what operating system?
CloudSim 3.0 in Mac OS under Netbeans IDE.

Please provide any additional information below.
All example is run well, and thank you for your helpful.

Original issue reported on code.google.com by zakarea....@gmail.com on 28 Apr 2012 at 4:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
To use WorkloadFileReader you have to download a workload in the Standard 
Workload Format. You can download these files from 
http://www.cs.huji.ac.il/labs/parallel/workload/.
The CloudSim project contains one such file in src/test/LCG.swf.gz. The 
following code read this file and generates a list of cloudlets:

WorkloadModel r = new WorkloadFileReader("src" + File.separator + "test" + 
File.separator + "LCG.swf.gz", 1);
List<Cloudlet> cloudletlist = r.generateWorkload();

With the list of cloudlets in hand you can submit them to a datacenter like you 
normally do (see other CloudSim examples).

Original comment by williamv...@gmail.com on 9 May 2012 at 12:13

GoogleCodeExporter commented 9 years ago

Original comment by anton.be...@gmail.com on 9 May 2012 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by rodrigo.calheiros on 3 Aug 2012 at 6:29

GoogleCodeExporter commented 9 years ago
Can u help with some sample code to read the workload?

Original comment by deepan...@gmail.com on 20 Aug 2014 at 1:41