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

Wait time is negative when a finished VM is re-submitted to the broker #351

Open
manoelcampos opened this issue Sep 24, 2021 · 0 comments
Open

Comments

@manoelcampos
Copy link
Collaborator

manoelcampos commented Sep 24, 2021

When a finished VM is re-submitted to start executing again, its arrival time is updated by the broker to the current simulation time, but the creation time is not. It remains the value from the previous submission.
This way, the creation time is smaller than the arrived time for VM resubmissions, causing a negative wait time.

If we just reset creation time to -1, we lose the information about the previous creation time.
The wait time should represent the total time the VM has waited during all the times it was re-submitted to the broker.
Before resetting the creation time, we have to add up the previous wait time to a new totalWaitTime attribute, then reset the creation time. The creationTime and previous waitTime attributes will represent the last time VM was created and last wait time, respectively.

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant