Cloudslab / cloudsim

CloudSim: A Framework For Modeling And Simulation Of Cloud Computing Infrastructures And Services
http://www.cloudbus.org/cloudsim/
807 stars 488 forks source link

Potential error about getCompletedVms() function in the HostDynamicWorkload class #159

Open amrous opened 1 year ago

amrous commented 1 year ago

Hello, I discovered this error in cloudSim The Liste of VMs is decreasing in simulation. This is a consequence of getCompletedVms() function, witch detect, every scheduling interval, the number of VMs to remove from getVMsList(). The problem is that a vm must be finished if its cloudLet is finished. But cloudSim will delet a Vm if its cloudLet has two consicutives zero, in cpu charge. I find this not logic, and i hope that someone has notice this. Is it an error, or i am not understanding the logic of cloudsim? Thanks in advance