Cloudsim-如何计算VM的totalCurrentRequestedRam?

时间:2020-05-18 13:39:21

标签: cloudsim

我正在研究每个活动主机(SLATAH)违反SLA的时间。我想考虑三个参数CPU,RAM和Bw来计算此指标。现在,为考虑这三个参数,我需要计算totalCurrentRequestedRam。

下面的代码是VM的currentRequestedRam,现在我需要totalCurrentRequestedRam,我应该如何计算?

public int getCurrentRequestedRam() {
    if (isBeingInstantiated()) {
        return getRam();
    }
    return (int) (getCloudletScheduler().getCurrentRequestedUtilizationOfRam() * getRam());
}

0 个答案:

没有答案