The iFogSimToolkit (with its new release iFogSim2) for Modeling and Simulation of Resource Management Techniques in Internet of Things, Edge and Fog Computing Environments. In the new release Mobili Management, Microservice Management, and Dynamic Clustering mechanisms are added as new features.
143
stars
94
forks
source link
how to get the allocated CPU resource for each gateway #16
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);
}```
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.