step07120712 / cloudsim

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

maybe it's a problem #3

Closed GoogleCodeExporter closed 9 years ago

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

Through reading the source code of CloudSim,an issue confused me for a long 
time,in the VmAllocationPolicySimple class,it stored information about the vm's 
allocation by the key->value which key=vm.getuid(),it makes me so confused 
because a broker may need several VM on the same Datacencer,it goes wrong and 
make the simulation result unprediction.

best regards.

Original issue reported on code.google.com by hushui88...@gmail.com on 11 Jul 2011 at 4:02

GoogleCodeExporter commented 9 years ago
the same problem also appears in PeProvisionerSimple,RamProvisionerSimple etc.
hoping your reply.
thx

Original comment by hushui88...@gmail.com on 11 Jul 2011 at 4:13

GoogleCodeExporter commented 9 years ago
The getUid() method returns a unique ID for a given VM. Therefore, even if a 
broker creates several VMs in a data center, their IDs will be different.

Original comment by anton.be...@gmail.com on 11 Jul 2011 at 11:06

GoogleCodeExporter commented 9 years ago
thank u so much,i made a confusion about the getUid and getUserId method.
best regard.

Original comment by hushui88...@gmail.com on 12 Jul 2011 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by anton.be...@gmail.com on 12 Jul 2011 at 12:21