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

VerticalVmScalingSimple is not working for RAM #392

Open
henls opened this issue Jun 2, 2022 · 2 comments
Open

VerticalVmScalingSimple is not working for RAM #392

henls opened this issue Jun 2, 2022 · 2 comments
Assignees

Comments

@henls
Copy link

henls commented Jun 2, 2022

Actual behavior

When running VerticalVmRamScalingExample, the following error is prompted and it does not scale according to ram usage.

INFO 160.22: VerticalVmScalingSimple: 0 Ram deallocated from Vm 0: new capacity is 800. Current resource usage is 100.0%
Time 160.2: Vm 0 Ram Usage: 100.00% ( 800 of 800 MB) | Host Ram Allocation: 84.00% (16800 of 20000 MB). Running Cloudlets: 2
WARN 161.22: CloudletSchedulerTimeShared: Cloudlet 4 requested 1000 Mbps of Bandwidth but no amount is available., which delays Cloudlet processing.
INFO 161.22: VerticalVmScalingSimple: 0 Ram deallocated from Vm 0: new capacity is 800. Current resource usage is 100.0%"

Expected behavior

Normal scaling behavior

@manoelcampos manoelcampos self-assigned this Jun 10, 2022
@manoelcampos manoelcampos transferred this issue from cloudsimplus/cloudsimplus Jun 10, 2022
@manoelcampos
Copy link
Collaborator

manoelcampos commented Jun 10, 2022

Hey @henls
Available examples using UtilizationModelFull for such resources won't make sense if you have more than 1 Cloudlet by VM with a CloudletSchedulerTimeShared (for instance). That was a practice in CloudSim which I just changed in some examples. If two Cloudlets are running in parallel in the same VM, they both cannot use 100% of RAM or BW at the same time. After Virtual Memory and Bandwidth oversubscription were implemented, that will cause issues because just the first Cloudlet to run gets the required resources and the other one gets nothing.

I've changed the example to apply a UtilizationModelDynamic for such resources. Could you please check PR cloudsimplus/cloudsimplus-examples#3?

manoelcampos referenced this issue in cloudsimplus/cloudsimplus-examples Jul 7, 2022
manoelcampos referenced this issue in cloudsimplus/cloudsimplus-examples Jul 7, 2022
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
@manoelcampos manoelcampos reopened this Aug 4, 2022
@manoelcampos manoelcampos transferred this issue from cloudsimplus/cloudsimplus-examples Aug 5, 2022
@manoelcampos manoelcampos changed the title VerticalVmRamScalingExample prompts an error. VerticalVmScalingSimple is not working for RAM Aug 5, 2022
@ulfaric
Copy link

ulfaric commented Aug 18, 2022

Hi,

Is this bug fixed? because when I run the Ram scaling example, the ram size still does not change. There is always a warning that ram resize failed due to unexpected error.

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

3 participants