-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Fix Bug: Power of an Idle Host is not 0 #127
Conversation
function getPowerInternal is for active host, the inactive case already in the function getPower where getPowerInternal is used.
I found this when I change the |
Thanks for contributing. We are really needing people to test the released versions. |
About your question, there is an |
@manoelcampos please check the line |
also check Not considering the IDLE state seems a Big problem. |
These issues are all inherited from CloudSim and most of my work with CoudSim Plus is to fix them. About the I've changed the documentation of the I've included the issue #128 to enable actually powering Hosts on and off. I've just realized the Check the new 2.2.0 version. Thanks for contributing. |
Glad to see your quick reply, I made some suggestions based on version 2.10, and not have time to check the newest version yet, I post them here , just for your information. Cause the old cloudsim had not considering the state of host completely, especially for the Here, I list some methods I found were not correct enough and give some advise.
change
to
Excepted:
Actual:
some time will be That's all for so far, maybe you have fixed them in the newest version, just for you information. cause I don't have enough time to do my experiment, and this project changes so fast, I will do my simulation experiment on the old version(2.1.0), After that I will check the newest version. Sorry for my delay, I will check that as soon as possible. Thanks. |
Thanks for your valuable information. HostSimple
Subclasses of PowerSupply like SimpleHostPowerSupply
|
check this:
In Not Spec Power Model:
When a host is idle(still active), its cpu capacity is 0, and its power should be
MAX_POWER * STATIC_POWER_PERCENT
.However, when we use
host.getPowerSupply().getPowerModel().getPower(0)
, the return value is 0, notMAX_POWER * STATIC_POWER_PERCENT
.The if condition in the
#getPowerInternal
seems to check if the host is active, but this check already included in the#getPower
. So whenever the#getPowerInternal
is used, the host is always active.Hope this works!