1

I am working on CloudSim. I am misunderstanding resource provisioning (e.g.: VMs) and task scheduling in cloud. Below are scenarios to explain my questions.

If we have 3 different types of VMs (different mips 250,500,750), and we need to schedule 3 tasks:

Case 1:

We have limited resources (5 VMs) so how each vm map to the type?

vm1     type 1, type 2 , type 3 
vm2     type 1, type 2 , type 3 
vm3     type 1, type 2 , type 3 
vm4     type 1, type 2 , type 3 
vm5     type 1, type 2 , type 3 

After mapping (vm - type), we will have for example:

vm1     type 2 500
vm2     type 1 250
vm3     type 3 750
vm4     type 2 500
vm5     type 1 250

We need to schedule these tasks to minimise the makespan:

T1 length 1000 
T2 length 2000 
T3 length 3000

After scheduling based on minimising makespan will have:

T1 length 1000 to vm3
T2 length 2000 to vm3
T3 length 3000 to vm3

What is the maximum capacity of vm to run the task? In other words, when we can use another VM?

Case 2:

We have unlimited no. of VMs, how we map the VMs with its type? how we can create VMs on demand or dynamically?

I appreciate any help, thank you!

4

1 回答 1

1

哪个虚拟机具有哪种类型完全取决于mips您在创建虚拟机期间传递给它的内容。

例如:

mips=250
pesNumber=1
vm = new Vm(1, userId, mips, pesNumber, ram, bw, size, vmm, new CloudletSchedulerTimeShared());

该 VM 将具有 type1 并且它一次最多可以处理 2.5 亿条任务指令,因为它有 1 个 PE。

如果pesNumber=2它可以处理一个任务的总共 500 (mips*pesNumber) 百万条指令。

对于案例 2,您可以参考官方示例编号: Cloudsim 的 7,其中在运行时创建 VM。

希望它会帮助你。

于 2017-06-19T10:33:03.427 回答