Close #170: Support for delaying cloudlet execution when virtual memory (vem / swap) is used or BW is oversubscribed#312
Merged
manoelcampos merged 7 commits intomasterfrom Jun 15, 2021
Merged
Conversation
Redesign Host storage to use an actual HarddriveStorage instead of just a Storage (which is now called SimpleStorage). This way, we can define disk parameters such as reading speed that is considered when virtual memory is required by Cloudlets running inside a VM on the Host. The FileStorage interface implemented by HarddriveStorage is now simpler, since we don't want to simulate individual file storage for hard drive, only for SanStorage. Adds new Host constructor to accept a HarddriveStorage instead of a long for defining the storage device. Since VM and Host have different storage devices now (SimpleStorage and HarddriveStorage, respectively), the AbstractMachine interface now is generic, to indicate the kind of storage to be used by subclasses. Signed-off-by: Manoel Campos <[email protected]>
- Changes performed after Host storage redesign - Fix test failures Signed-off-by: Manoel Campos <[email protected]>
…wap) delay - Introduces cloudlet processing delay when a cloudlet requires more RAM than there is freely available. - As a simplification, there is no pre-defined swap partition to define the maximum amount of virtual memory to use. The virtual memory required just needs to be smaller than the RAM capacity. - Updates used VM resources for each processed cloudlet, instead of iterating over the cloudlets execution list at the end of the updateProcessing method. This improves simulation performance and accuracy, since for each processed cloudlet, VM resource utilization is updated right-away. - Since using VMem requires some portion of the RAM to be swapped between the disk to open up RAM space, the required RAM cannot be higher then the RAM capacity neither than the available disk space. - Adds important notes about the simplified implementation of Virtual Memory (VMem / memory swapping) Signed-off-by: Manoel Campos <[email protected]>
- When a cloudlet request more BW than there is available, just the available amount is allocated. This way, its processing is delayed too. Signed-off-by: Manoel Campos <[email protected]>
to check the processing delay caused by the use of Virtual Memory. Signed-off-by: Manoel Campos <[email protected]>
Signed-off-by: Manoel Campos <[email protected]>
Signed-off-by: Manoel Campos <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #170