i create one simple program in cloudsim which having a number of hosts , vms and cloudlets now i want to find out cpu utilization of hosts the how to use getutilizationofcpu method for host in cloudsim .. and i used this method get utilization of cpu but it only return 0 ..
vm utilization count same as host utilization in cloudsim.. is correct?
any help appreciate...plz help me
this is my code
public double getTotalUtilizationOfCpu(double time) {
double util = 0;
for (int i = 0; i <vmsNumber; i++)
{
Vm vm;
vm=vmList.get(i);
// vm.updateVmProcessing(CloudSim.clock(), null);
//double k = vm.getRam();
Log.printLine(" VM id is :"+ vm.getId()+ "its ram is "+vm.getRam() +"its MIPS:" +vm.getMips() +"its BW is:"+vm.getBw());
//double a=vm.getTotalUtilizationOfCpuMips(time);
//Log.printLine(" mips utilization is :"+ " "+a);
util= vm.getTotalUtilizationOfCpu(CloudSim.clock());
Log.printLine(" VMid is :"+ vm.getId() +" utilization is : "+util);
}
return util;
}
Manoel Campos da Silva Filho Developer and Systems Analyst
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
--
---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "cloudsim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cloudsim/MVVXolbAgVc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cloudsim+u...@googlegroups.com.
Manoel Campos da Silva Filho Developer and Systems Analyst
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
Manoel Campos da Silva Filho Developer and Systems Analyst
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)at csim1.csim1.main(csim1.java:98)
Manoel Campos da Silva Filho Developer and Systems Analyst
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
--
i am getting error at
Manoel Campos da Silva Filho Developer and Systems Analyst
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
--
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
i used that latest version still i have the same error ..
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
--
--
---
You received this message because you are subscribed to a topic in the Google Groups "cloudsim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cloudsim/MVVXolbAgVc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cloudsim+u...@googlegroups.com.
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal
Manoel Campos da Silva Filho Professor and Software Engineer
manoel...@gmail.com | www.manoelcampos.com
Professor at Federal Institute of Education, Science and Technology of Tocantins - Brazil
Computer Science and Engineering PhD Student at University of Beira Interior - Portugal