Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocation of a Host PE to a VM fails when the host uses a VmSchedulerSpaceShared and there are more VMs than PEs. #26

Open
manoelcampos opened this issue Sep 2, 2016 · 0 comments
Labels
bug good-first-issue A good issue to start contributing to the project help wanted VmScheduler

Comments

@manoelcampos
Copy link
Collaborator

manoelcampos commented Sep 2, 2016

ISSUE:

Actual behaviour and expected behavior

Consider a scenario where we have 1 host with 2 PEs and 4 VMs each one requesting these 2 PEs. The paper CloudSim: A Novel Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services states in section 3.2 that when using a VmSchedulerSpaceShared, one VM will execute first and after it finishes, the other one will start executing. However, the DatacenterBroker fails in allocating a host for 2 of these VMs due to lack of available PEs. Since each one of the 2 host PEs has a capacity of 1000 MIPS, even defining that each one of the 4 VMs requires just 500 MIPS, the allocation of 2 VMs fails.

As stated in the paper, the allocation should work in the same way that the CloudletSchedulerSpaceShared does. For the given scenario, If:

  • the MIPS capacity requested by each VM is not higher than the capacity of available Host PEs;
  • no VM is requiring more PEs or MIPS than the total Host capacity;

then, even if there is less PEs than the amount required by all VMs, 2 VMs should be queued to start executing after the first 2 ones finish.

The other scenarios presented in section 3.2 of the mentioned paper have to be tested two, to ensure they are working as expected. Integration tests for these scenarios would be included too.

If it is a more wide problem or you don't know where it happens, provide a minimal simulation example that reproduces the problem

It is a broader problem related to both DatacenterBroker and VmScheduler implementations.
An example showing the problem is available here. You will see in the logs that 2 of the 4 VMs fail and just the other 2 are placed.

Specifications like the version of the project, operating system or workload file used

The problem occurs in the current development version of CloudSim Plus but it comes from prior versions of CloudSim.

@manoelcampos manoelcampos added this to the CloudSim Plus 2.0 milestone Dec 20, 2016
@manoelcampos manoelcampos modified the milestone: CloudSim Plus 1.2.2 Jun 4, 2017
@manoelcampos manoelcampos changed the title Allocation of a Host PE to a VM fails when the host uses a VmSchedulerSpaceShared and there is more VMs than PEs. Allocation of a Host PE to a VM fails when the host uses a VmSchedulerSpaceShared and there are more VMs than PEs. Dec 22, 2017
@manoelcampos manoelcampos added this to the CloudSim Plus 4.0 milestone Jun 28, 2018
@manoelcampos manoelcampos modified the milestone: CloudSim Plus 4.0 Aug 1, 2018
@manoelcampos manoelcampos removed this from the CloudSim Plus 4.0 milestone Aug 29, 2018
@manoelcampos manoelcampos added good-first-issue A good issue to start contributing to the project VmScheduler labels Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good-first-issue A good issue to start contributing to the project help wanted VmScheduler
Projects
None yet
Development

No branches or pull requests

1 participant