You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using iFogsim2 for a simulation of computational offloading. I want to know how to use iFogsim2 to get the CPU usage of each gateway over time?
I refer to your paper, which mentions that the executeTuple() function can monitor resources.
Then I find updateEnergyConsumption() function in Class FogDevice mentioned totalMipsAllocated.But when I debugged it,the Mips add twice with the MIPS of the mobile.Why is that happen?I mean the totalMipsAllocated looks like how many APPModules allocated CPU,but it seems not to be.Please tell me how to get the allocated CPU mips if anyone could.
Best Weshes.
for (final Vm vm : getHost().getVmList()) {
AppModule operator = (AppModule) vm;
operator.updateVmProcessing(CloudSim.clock(), getVmAllocationPolicy().getHost(operator).getVmScheduler()
.getAllocatedMipsForVm(operator));
totalMipsAllocated += getHost().getTotalAllocatedMipsForVm(vm);
}```
The text was updated successfully, but these errors were encountered:
I'm using iFogsim2 for a simulation of computational offloading. I want to know how to use iFogsim2 to get the CPU usage of each gateway over time?
I refer to your paper, which mentions that the executeTuple() function can monitor resources.
Then I find updateEnergyConsumption() function in Class FogDevice mentioned totalMipsAllocated.But when I debugged it,the Mips add twice with the MIPS of the mobile.Why is that happen?I mean the totalMipsAllocated looks like how many APPModules allocated CPU,but it seems not to be.Please tell me how to get the allocated CPU mips if anyone could.
Best Weshes.
The text was updated successfully, but these errors were encountered: