seyed8453 / cloudsim

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

Output error when setDisableMigrations is set to true #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

To run fine:
1. Open SingleThreshold.java example.
2. Run.
3. Check the output for each cloudlet.

To run with errors:
1. Open SingleThreshold.java example.
2. Set datacenter.setDisableMigrations() to true 
[datacenter.setDisableMigrations(true)].
3. Run.
4. Check the output for each cloudlet.

In the second case there is no output for cloudlets.

What is the expected output? What do you see instead?

Expected:

Something like:
"
========== OUTPUT ==========
Cloudlet ID     STATUS  Resource ID     VM ID   Time    Start Time      Finish 
Time
        15      SUCCESS         2       15      335     0               335
        3       SUCCESS         2       3       340     0               340
        11      SUCCESS         2       11      350     0               350
        19      SUCCESS         2       19      360     0               360
        7       SUCCESS         2       7       365     0               365
        10      SUCCESS         2       10      465     0               465
        14      SUCCESS         2       14      470     0               470
        18      SUCCESS         2       18      480     0               480
        6       SUCCESS         2       6       485     0               485
        17      SUCCESS         2       17      620     0               620
        1       SUCCESS         2       1       630     0               630
        13      SUCCESS         2       13      645     0               645
        9       SUCCESS         2       9       680     0               680
        0       SUCCESS         2       0       1205    0               1205
        8       SUCCESS         2       8       1280    0               1280
        4       SUCCESS         2       4       1295    0               1295
        12      SUCCESS         2       12      1345    0               1345 

Total simulation time: 1644.60 sec 
"

Saw instead:
"
========== OUTPUT ==========
Cloudlet ID     STATUS  Resource ID     VM ID   Time    Start Time      Finish 
Time

Total simulation time: 1255.00 sec 
"

What version of the product are you using? On what operating system?
CloudSim 2.1.1.

Please provide any additional information below.
Something bad happens when the migrations are disabled (ie: this also occurs at 
DVFS.java example).

Original issue reported on code.google.com by daniella...@gmail.com on 31 Oct 2011 at 4:27

GoogleCodeExporter commented 8 years ago
There is an obvious workaround to get the cloudlets list:

Instead using SimFunctions.printCloudletList(cloudletReturnList) if you use 
SimFunctions.printCloudletList(cloudletsList) you will print all cloudlets, 
including their correct start and finish time, and "SUCCESS" as status, so the 
problem is with the disabled migrations only.

Original comment by daniella...@gmail.com on 10 Nov 2011 at 2:29

GoogleCodeExporter commented 8 years ago
All the power examples have been updated, including the output. Please try the 
new code from the repository.

Original comment by anton.be...@gmail.com on 6 Jan 2012 at 8:14