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

Enable VmAllocationPolicy implementations to power Hosts on and off as required #128

Closed
manoelcampos opened this issue Apr 23, 2018 · 0 comments
Assignees
Labels
enhancement feature power Issues related to the Power Module

Comments

@manoelcampos
Copy link
Collaborator

manoelcampos commented Apr 23, 2018

Host has an active attribute to indicate if it's powered on or off. However, they are not being powered off when they become idle. The active state of the Host is usually verified by checking if its CPU usage is greater than zero.

In real environments, if a Host CPU utilization is zero, it's actually powered off. Even if the Host doesn't have user applications running, it has its own operating system (OS), so its CPU usage will be greater than zero.

But in simulation, it isn't being considered the overhead of the Host's OS. The CPU utilization data is just about running VMs, not the Host's OS. Therefore, when there aren't running VMs, the Host's CPU utilization becomes zero. This way, we are considering the Host is powered off immediately after it is idle. Despite idle and powered off states are different, they are being treated the same.

The VmAllocationPolicy must define an attribute to indicate if idle Hosts should be powered off or not. Furthermore, if a VmAllocationPolicy can't find a suitable Host for a VM between the active Hosts, it should activate a new Host. The activation of a Host has an impact on VM placement due to the boot time which cannot be neglected. If the non-idle Hosts aren't suitable to place a given VM, current implementations just get a Host with zero CPU utilization to immediately place the VM. The delay caused by the Host boot time is not considered. A bootTime attribute could be defined in the Host to enable considering that when activating a Host.

The way original CloudSim checks if a Host is active is if its CPU utilization is zero, which doesn't mean the Host is powered off.

Examples Available

Related Issues

@manoelcampos manoelcampos changed the title Enable VmAllocationPolicy implementations to power on and off Hosts as required Enable VmAllocationPolicy implementations to power Hosts on and off as required Apr 25, 2018
@manoelcampos manoelcampos added this to the CloudSim Plus 4.0 milestone Jun 28, 2018
@manoelcampos manoelcampos removed this from the CloudSim Plus 4.0 milestone Aug 29, 2018
@manoelcampos manoelcampos added the power Issues related to the Power Module label Mar 20, 2019
@manoelcampos manoelcampos self-assigned this Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature power Issues related to the Power Module
Projects
None yet
Development

No branches or pull requests

1 participant