我正在研究每个活动主机(SLATAH)违反SLA的时间。我想考虑三个参数CPU,RAM和Bw来计算此指标。现在,为考虑这三个参数,我需要计算totalCurrentRequestedRam。
下面的代码是VM的currentRequestedRam,现在我需要totalCurrentRequestedRam,我应该如何计算?
public int getCurrentRequestedRam() {
if (isBeingInstantiated()) {
return getRam();
}
return (int) (getCloudletScheduler().getCurrentRequestedUtilizationOfRam() * getRam());
}