cloudsim笔记

多个VM绑定到一个Host上

查阅官方文档


VmScheduler

VmScheduler is an abstract class that represents the policy used by a VMM to share processing power among VMs running in a host.

VmSchedulerTimeShared

VmSchedulerTimeShared is a VMM allocation policy that allocates one or more Pe to a VM, and allows sharing of PEs by multiple VMs.


所以在创建host的时候,应该这样配置

1
2
3
4
5
6
7
8
9
10
11
hostList.add(
new Host(
hostId,
new RamProvisionerSimple(ram),
new BwProvisionerSimple(bw),
storage,
peList,
// 使用VmSchedulerTimeShared类
new VmSchedulerTimeShared(peList)
)
);

##