├── .gitattributes ├── README.md ├── cloudsim-3.0.3 ├── docs │ ├── resources │ │ ├── tab.gif │ │ ├── background.gif │ │ ├── titlebar.gif │ │ └── titlebar_end.gif │ ├── package-list │ ├── org │ │ └── cloudbus │ │ │ └── cloudsim │ │ │ ├── power │ │ │ └── lists │ │ │ │ └── package-frame.html │ │ │ ├── lists │ │ │ └── package-frame.html │ │ │ ├── util │ │ │ └── package-frame.html │ │ │ ├── provisioners │ │ │ └── package-frame.html │ │ │ ├── core │ │ │ ├── package-frame.html │ │ │ └── predicates │ │ │ │ └── package-frame.html │ │ │ ├── network │ │ │ └── package-frame.html │ │ │ └── distributions │ │ │ └── package-frame.html │ └── index.html ├── sources │ └── org │ │ └── cloudbus │ │ └── cloudsim │ │ ├── Consts.java │ │ ├── distributions │ │ ├── ContinuousDistribution.java │ │ ├── ExponentialDistr.java │ │ ├── LomaxDistribution.java │ │ ├── WeibullDistr.java │ │ ├── ParetoDistr.java │ │ ├── GammaDistr.java │ │ └── LognormalDistr.java │ │ ├── UtilizationModel.java │ │ ├── UtilizationModelNull.java │ │ ├── UtilizationModelFull.java │ │ ├── network │ │ ├── GraphReaderIF.java │ │ ├── datacenter │ │ │ ├── HostPacket.java │ │ │ ├── NetworkPacket.java │ │ │ ├── TaskStage.java │ │ │ ├── NetworkConstants.java │ │ │ └── NetworkVm.java │ │ └── TopologicalLink.java │ │ ├── util │ │ ├── WorkloadModel.java │ │ └── ExecutionTimeMeasurer.java │ │ ├── core │ │ └── predicates │ │ │ ├── PredicateAny.java │ │ │ ├── PredicateNone.java │ │ │ ├── Predicate.java │ │ │ ├── PredicateType.java │ │ │ ├── PredicateNotType.java │ │ │ ├── PredicateNotFrom.java │ │ │ └── PredicateFrom.java │ │ ├── power │ │ ├── models │ │ │ ├── PowerModel.java │ │ │ ├── PowerModelSpecPowerIbmX3550XeonX5670.java │ │ │ ├── PowerModelSpecPowerIbmX3550XeonX5675.java │ │ │ ├── PowerModelSpecPowerIbmX3250XeonX3470.java │ │ │ ├── PowerModelSpecPowerIbmX3250XeonX3480.java │ │ │ ├── PowerModelSpecPowerHpProLiantMl110G4Xeon3040.java │ │ │ ├── PowerModelSpecPowerHpProLiantMl110G5Xeon3075.java │ │ │ ├── PowerModelSpecPowerHpProLiantMl110G3PentiumD930.java │ │ │ └── PowerModelSpecPower.java │ │ ├── PowerVmSelectionPolicyRandomSelection.java │ │ ├── PowerVmSelectionPolicy.java │ │ ├── PowerVmAllocationPolicySimple.java │ │ ├── lists │ │ │ └── PowerVmList.java │ │ ├── PowerVmSelectionPolicyMinimumMigrationTime.java │ │ ├── PowerVmSelectionPolicyMinimumUtilization.java │ │ └── PowerDatacenterBroker.java │ │ ├── lists │ │ └── VmList.java │ │ └── ParameterException.java ├── .project ├── .classpath ├── bin │ ├── org │ │ └── cloudbus │ │ │ └── cloudsim │ │ │ └── examples │ │ │ └── network │ │ │ └── topology.brite │ └── workload │ │ └── planetlab │ │ ├── 20110303 │ │ ├── pl4_unm_edu_nyu_d │ │ └── pl4_unm_edu_uw_trs2 │ │ ├── 20110306 │ │ ├── pl4_unm_edu_nyu_d │ │ └── pl4_unm_edu_uw_trs2 │ │ ├── 20110309 │ │ ├── pl4_unm_edu_nyu_d │ │ └── pl4_unm_edu_uw_trs2 │ │ ├── 20110322 │ │ └── pl4_unm_edu_nyu_d │ │ ├── 20110325 │ │ └── pl4_unm_edu_nyu_d │ │ ├── 20110403 │ │ ├── pl4_unm_edu_nyu_d │ │ └── pl4_unm_edu_root │ │ ├── 20110411 │ │ ├── pl4_unm_edu_nyu_d │ │ └── pl4_unm_edu_uw_trs2 │ │ └── 20110412 │ │ ├── pl4_unm_edu_nyu_d │ │ └── pl4_unm_edu_uw_trs2 └── examples │ └── org │ └── cloudbus │ └── cloudsim │ └── examples │ ├── network │ └── topology.brite │ ├── vm3.java │ ├── cloudlet3.java │ └── power │ ├── planetlab │ ├── PlanetLabConstants.java │ ├── PlanetLabRunnerConsole.java │ ├── Dvfs.java │ ├── LrRs.java │ ├── LrMc.java │ ├── LrMu.java │ ├── ThrRs.java │ ├── IqrRs.java │ ├── LrMmt.java │ ├── ThrMc.java │ ├── ThrMu.java │ ├── IqrMc.java │ ├── IqrMu.java │ ├── LrrRs.java │ ├── LrrMc.java │ ├── LrrMu.java │ ├── MadRs.java │ ├── ThrMmt.java │ ├── IqrMmt.java │ ├── MadMc.java │ ├── MadMu.java │ ├── LrrMmt.java │ └── MadMmt.java │ └── random │ ├── RandomConstants.java │ ├── Dvfs.java │ ├── LrRs.java │ ├── ThrRs.java │ ├── LrMc.java │ ├── LrMu.java │ ├── ThrMc.java │ ├── ThrMu.java │ ├── IqrRs.java │ ├── LrMmt.java │ ├── ThrMmt.java │ ├── IqrMc.java │ ├── IqrMu.java │ ├── LrrRs.java │ ├── LrrMc.java │ ├── LrrMu.java │ ├── MadRs.java │ ├── IqrMmt.java │ ├── MadMc.java │ ├── MadMu.java │ ├── LrrMmt.java │ └── MadMmt.java ├── .gitignore └── LICENSE /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Workflow Scheduling Using Hybrid GA-PSO Algorithm in Cloud Computing 2 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/resources/tab.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manish9937/Workflow-Scheduling-Using-Hybrid-GA-PSO-Algorithm-in-Cloud-Computing/HEAD/cloudsim-3.0.3/docs/resources/tab.gif -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/resources/background.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manish9937/Workflow-Scheduling-Using-Hybrid-GA-PSO-Algorithm-in-Cloud-Computing/HEAD/cloudsim-3.0.3/docs/resources/background.gif -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/resources/titlebar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manish9937/Workflow-Scheduling-Using-Hybrid-GA-PSO-Algorithm-in-Cloud-Computing/HEAD/cloudsim-3.0.3/docs/resources/titlebar.gif -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/resources/titlebar_end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manish9937/Workflow-Scheduling-Using-Hybrid-GA-PSO-Algorithm-in-Cloud-Computing/HEAD/cloudsim-3.0.3/docs/resources/titlebar_end.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/Consts.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim; 2 | 3 | /** 4 | * 5 | * Defines common constants, used throughout cloudsim. 6 | * 7 | * @author nikolay.grozev 8 | * 9 | */ 10 | public final class Consts { 11 | 12 | /** 13 | * Suppreses intantiation. 14 | */ 15 | private Consts(){} 16 | 17 | public static int MILLION = 1000000; 18 | } 19 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | cloudsimm 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/package-list: -------------------------------------------------------------------------------- 1 | org.cloudbus.cloudsim 2 | org.cloudbus.cloudsim.core 3 | org.cloudbus.cloudsim.core.predicates 4 | org.cloudbus.cloudsim.distributions 5 | org.cloudbus.cloudsim.lists 6 | org.cloudbus.cloudsim.network 7 | org.cloudbus.cloudsim.network.datacenter 8 | org.cloudbus.cloudsim.power 9 | org.cloudbus.cloudsim.power.lists 10 | org.cloudbus.cloudsim.power.models 11 | org.cloudbus.cloudsim.provisioners 12 | org.cloudbus.cloudsim.util 13 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/org/cloudbus/cloudsim/examples/network/topology.brite: -------------------------------------------------------------------------------- 1 | Topology: ( 5 Nodes, 8 Edges ) 2 | Model (1 - RTWaxman): 5 5 5 1 2 0.15000000596046448 0.20000000298023224 1 1 10.0 1024.0 3 | 4 | Nodes: ( 5 ) 5 | 0 1 3 3 3 -1 RT_NODE 6 | 1 0 3 3 3 -1 RT_NODE 7 | 2 4 3 3 3 -1 RT_NODE 8 | 3 3 1 3 3 -1 RT_NODE 9 | 4 3 3 4 4 -1 RT_NODE 10 | 11 | 12 | Edges: ( 8 ) 13 | 0 2 0 3.0 1.1 10.0 -1 -1 E_RT U 14 | 1 2 1 4.0 2.1 10.0 -1 -1 E_RT U 15 | 2 3 0 2.8284271247461903 3.9 10.0 -1 -1 E_RT U 16 | 3 3 1 3.605551275463989 4.1 10.0 -1 -1 E_RT U 17 | 4 4 3 2.0 5.0 10.0 -1 -1 E_RT U 18 | 5 4 2 1.0 4.0 10.0 -1 -1 E_RT U 19 | 6 0 4 2.0 3.0 10.0 -1 -1 E_RT U 20 | 7 1 4 3.0 4.1 10.0 -1 -1 E_RT U 21 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/network/topology.brite: -------------------------------------------------------------------------------- 1 | Topology: ( 5 Nodes, 8 Edges ) 2 | Model (1 - RTWaxman): 5 5 5 1 2 0.15000000596046448 0.20000000298023224 1 1 10.0 1024.0 3 | 4 | Nodes: ( 5 ) 5 | 0 1 3 3 3 -1 RT_NODE 6 | 1 0 3 3 3 -1 RT_NODE 7 | 2 4 3 3 3 -1 RT_NODE 8 | 3 3 1 3 3 -1 RT_NODE 9 | 4 3 3 4 4 -1 RT_NODE 10 | 11 | 12 | Edges: ( 8 ) 13 | 0 2 0 3.0 1.1 10.0 -1 -1 E_RT U 14 | 1 2 1 4.0 2.1 10.0 -1 -1 E_RT U 15 | 2 3 0 2.8284271247461903 3.9 10.0 -1 -1 E_RT U 16 | 3 3 1 3.605551275463989 4.1 10.0 -1 -1 E_RT U 17 | 4 4 3 2.0 5.0 10.0 -1 -1 E_RT U 18 | 5 4 2 1.0 4.0 10.0 -1 -1 E_RT U 19 | 6 0 4 2.0 3.0 10.0 -1 -1 E_RT U 20 | 7 1 4 3.0 4.1 10.0 -1 -1 E_RT U 21 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/vm3.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples; 2 | 3 | import org.cloudbus.cloudsim.CloudletScheduler; 4 | import org.cloudbus.cloudsim.Vm; 5 | 6 | public class vm3 extends Vm { 7 | double[] executioncost=new double[3]; 8 | int[] datasize=new int[3]; 9 | 10 | public vm3(int id, int userId, double mips, int numberOfPes, int ram, long bw, long size, String vmm, 11 | CloudletScheduler cloudletScheduler, double[] executioncost,int[] datasize) { 12 | super(id, userId, mips, numberOfPes, ram, bw, size, vmm, cloudletScheduler); 13 | this.executioncost = executioncost; 14 | this.datasize=datasize; 15 | // TODO Auto-generated constructor stub 16 | } 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/ContinuousDistribution.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.distributions; 10 | 11 | /** 12 | * Interface to be implemented by a random number generator. 13 | * 14 | * @author Marcos Dias de Assuncao 15 | * @since CloudSim Toolkit 1.0 16 | */ 17 | public interface ContinuousDistribution { 18 | 19 | /** 20 | * Sample the random number generator. 21 | * 22 | * @return The sample 23 | */ 24 | double sample(); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/cloudlet3.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples; 2 | import org.cloudbus.cloudsim.Cloudlet; 3 | import org.cloudbus.cloudsim.UtilizationModel; 4 | 5 | public class cloudlet3 extends Cloudlet { 6 | 7 | double[] comcost=new double[3]; 8 | 9 | public cloudlet3(int cloudletId, long cloudletLength, int pesNumber, long cloudletFileSize, long cloudletOutputSize, 10 | UtilizationModel utilizationModelCpu, UtilizationModel utilizationModelRam, 11 | UtilizationModel utilizationModelBw,double[] comcost) { 12 | super(cloudletId, cloudletLength, pesNumber, cloudletFileSize, cloudletOutputSize, utilizationModelCpu, 13 | utilizationModelRam, utilizationModelBw); 14 | 15 | this.comcost=comcost; 16 | // TODO Auto-generated constructor stub 17 | } 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/PlanetLabConstants.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | /** 4 | * If you are using any algorithms, policies or workload included in the power package please cite 5 | * the following paper: 6 | * 7 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 8 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 9 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 10 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 11 | * 12 | * @author Anton Beloglazov 13 | * @since Jan 5, 2012 14 | */ 15 | public class PlanetLabConstants { 16 | 17 | public final static int NUMBER_OF_HOSTS = 800; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/UtilizationModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim; 10 | 11 | /** 12 | * The UtilizationModel interface needs to be implemented in order to provide a fine-grained control 13 | * over resource usage by a Cloudlet. 14 | * 15 | * @author Anton Beloglazov 16 | * @since CloudSim Toolkit 2.0 17 | */ 18 | public interface UtilizationModel { 19 | 20 | /** 21 | * Returns utilization in percents according to the time. 22 | * 23 | * @param time the time 24 | * @return utilization percentage 25 | */ 26 | double getUtilization(double time); 27 | 28 | } -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/UtilizationModelNull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim; 10 | 11 | /** 12 | * The UtilizationModelNull class is a simple model, according to which a Cloudlet always require 13 | * zero capacity. 14 | * 15 | * @author Anton Beloglazov 16 | * @since CloudSim Toolkit 2.0 17 | */ 18 | public class UtilizationModelNull implements UtilizationModel { 19 | 20 | /* 21 | * (non-Javadoc) 22 | * @see cloudsim.power.UtilizationModel#getUtilization(double) 23 | */ 24 | @Override 25 | public double getUtilization(double time) { 26 | return 0; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/UtilizationModelFull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim; 10 | 11 | /** 12 | * The UtilizationModelFull class is a simple model, according to which a Cloudlet always utilize 13 | * all the available CPU capacity. 14 | * 15 | * @author Anton Beloglazov 16 | * @since CloudSim Toolkit 2.0 17 | */ 18 | public class UtilizationModelFull implements UtilizationModel { 19 | 20 | /* 21 | * (non-Javadoc) 22 | * @see cloudsim.power.UtilizationModel#getUtilization(double) 23 | */ 24 | @Override 25 | public double getUtilization(double time) { 26 | return 1; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/RandomConstants.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | /** 4 | * If you are using any algorithms, policies or workload included in the power package please cite 5 | * the following paper: 6 | * 7 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 8 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 9 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 10 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 11 | * 12 | * @author Anton Beloglazov 13 | * @since Jan 5, 2012 14 | */ 15 | public class RandomConstants { 16 | 17 | public final static int NUMBER_OF_VMS = 50; 18 | 19 | public final static int NUMBER_OF_HOSTS = 50; 20 | 21 | public final static long CLOUDLET_UTILIZATION_SEED = 1; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/GraphReaderIF.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network; 10 | 11 | import java.io.IOException; 12 | 13 | /** 14 | * This interface abstracts an reader for different graph-file-formats 15 | * 16 | * @author Thomas Hohnstein 17 | * @since CloudSim Toolkit 1.0 18 | */ 19 | public interface GraphReaderIF { 20 | 21 | /** 22 | * this method just reads the file and creates an TopologicalGraph object 23 | * 24 | * @param filename name of the file to read 25 | * @return created TopologicalGraph 26 | * @throws IOException 27 | */ 28 | TopologicalGraph readGraphFile(String filename) throws IOException; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/power/lists/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.power.lists (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.power.lists

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/util/WorkloadModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.util; 10 | 11 | import java.util.List; 12 | 13 | import org.cloudbus.cloudsim.Cloudlet; 14 | 15 | /** 16 | * This interface defines what a workload model should provide. A workload model generates a list of 17 | * jobs that can be dispatched to a resource by {@link Workload}. 18 | * 19 | * @author Marcos Dias de Assuncao 20 | * @since 5.0 21 | * 22 | * @see Workload 23 | * @see WorkloadFileReader 24 | */ 25 | public interface WorkloadModel { 26 | 27 | /** 28 | * Returns a list with the jobs generated by the workload. 29 | * 30 | * @return a list with the jobs generated by the workload. 31 | */ 32 | List generateWorkload(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 manish9937 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/PredicateAny.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * A predicate which will match any event on the deferred event queue. There is a publicly 15 | * accessible instance of this predicate in Simulation, called 16 | * Simulation.SIM_ANY, so no new instances need to be created.
17 | * The idea of simulation predicates was copied from SimJava 2. 18 | * 19 | * @author Marcos Dias de Assuncao 20 | * @since CloudSim Toolkit 1.0 21 | * @see Predicate 22 | * @see Simulation 23 | */ 24 | public class PredicateAny extends Predicate { 25 | 26 | /** 27 | * The match function called by Simulation, not used directly by the user. 28 | * 29 | * @param ev the ev 30 | * @return true, if match 31 | */ 32 | @Override 33 | public boolean match(SimEvent ev) { 34 | return true; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/PredicateNone.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * A predicate which will not match any event on the deferred event queue. There is a 15 | * publicly accessible instance of this predicate in the {@link Simulation} class, called 16 | * {@link Simulation#SIM_NONE}, so the user does not need to create any new instances. The idea of 17 | * simulation predicates was copied from SimJava 2. 18 | * 19 | * @author Marcos Dias de Assuncao 20 | * @since CloudSim Toolkit 1.0 21 | * @see Predicate 22 | * @see Simulation 23 | */ 24 | public class PredicateNone extends Predicate { 25 | 26 | /** 27 | * The match function called by {@link Simulation}, not used directly by the user. 28 | * 29 | * @param ev the event to check 30 | * @return true if the event matches the predicate, false otherwise 31 | */ 32 | @Override 33 | public boolean match(SimEvent ev) { 34 | return false; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/lists/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.lists (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.lists

13 |
14 |

Classes

15 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/util/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.util (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.util

13 |
14 |

Interfaces

15 | 18 |

Classes

19 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/util/ExecutionTimeMeasurer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.util; 10 | 11 | import java.util.HashMap; 12 | import java.util.Map; 13 | 14 | /** 15 | * The class for measuring the execution time. 16 | * 17 | * @author Anton Beloglazov 18 | * @since CloudSim Toolkit 3.0 19 | */ 20 | public class ExecutionTimeMeasurer { 21 | 22 | /** The execution times. */ 23 | private final static Map executionTimes = new HashMap(); 24 | 25 | /** 26 | * Start. 27 | * 28 | * @param name the name 29 | */ 30 | public static void start(String name) { 31 | getExecutionTimes().put(name, System.currentTimeMillis()); 32 | } 33 | 34 | /** 35 | * End. 36 | * 37 | * @param name the name 38 | * @return the double 39 | */ 40 | public static double end(String name) { 41 | double time = (System.currentTimeMillis() - getExecutionTimes().get(name)) / 1000.0; 42 | getExecutionTimes().remove(name); 43 | return time; 44 | } 45 | 46 | /** 47 | * Gets the execution times. 48 | * 49 | * @return the execution times 50 | */ 51 | public static Map getExecutionTimes() { 52 | return executionTimes; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/Predicate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * Predicates are used to select events from the deferred queue. This class is abstract and must be 15 | * extended when writing a new predicate. Some standard predicates are provided.
16 | * The idea of simulation predicates was copied from SimJava 2. 17 | * 18 | * @author Marcos Dias de Assuncao 19 | * @since CloudSim Toolkit 1.0 20 | * @see PredicateType 21 | * @see PredicateFrom 22 | * @see PredicateAny 23 | * @see PredicateNone 24 | * @see Simulation 25 | */ 26 | public abstract class Predicate { 27 | 28 | /** 29 | * The match function which must be overridden when writing a new predicate. The function is 30 | * called with each event in the deferred queue as its parameter when a 31 | * Simulation.select() call is made by the user. 32 | * 33 | * @param event The event to test for a match. 34 | * @return The function should return true if the event matches and should be 35 | * selected, or false if it does not match the predicate. 36 | */ 37 | public abstract boolean match(SimEvent event); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The PowerModel interface needs to be implemented in order to provide a model of power consumption 13 | * depending on utilization for system components. 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * 25 | * @author Anton Beloglazov 26 | * @since CloudSim Toolkit 2.0 27 | */ 28 | public interface PowerModel { 29 | 30 | /** 31 | * Get power consumption by the utilization percentage according to the power model. 32 | * 33 | * @param utilization the utilization 34 | * @return power consumption 35 | * @throws IllegalArgumentException the illegal argument exception 36 | */ 37 | double getPower(double utilization) throws IllegalArgumentException; 38 | 39 | } 40 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/lists/VmList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.lists; 10 | 11 | import java.util.List; 12 | 13 | import org.cloudbus.cloudsim.Vm; 14 | 15 | /** 16 | * VmList is a collection of operations on lists of VMs. 17 | * 18 | * @author Anton Beloglazov 19 | * @since CloudSim Toolkit 2.0 20 | */ 21 | public class VmList { 22 | 23 | /** 24 | * Return a reference to a Vm object from its ID. 25 | * 26 | * @param id ID of required VM 27 | * @param vmList the vm list 28 | * @return Vm with the given ID, $null if not found 29 | * @pre $none 30 | * @post $none 31 | */ 32 | public static T getById(List vmList, int id) { 33 | for (T vm : vmList) { 34 | if (vm.getId() == id) { 35 | return vm; 36 | } 37 | } 38 | return null; 39 | } 40 | 41 | /** 42 | * Return a reference to a Vm object from its ID and user ID. 43 | * 44 | * @param id ID of required VM 45 | * @param userId the user ID 46 | * @param vmList the vm list 47 | * @return Vm with the given ID, $null if not found 48 | * @pre $none 49 | * @post $none 50 | */ 51 | public static T getByIdAndUserId(List vmList, int id, int userId) { 52 | for (T vm : vmList) { 53 | if (vm.getId() == id && vm.getUserId() == userId) { 54 | return vm; 55 | } 56 | } 57 | return null; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/PredicateType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * A predicate to select events with specific tags. 15 | * 16 | * @author Marcos Dias de Assuncao 17 | * @since CloudSim Toolkit 1.0 18 | * @see PredicateNotType 19 | * @see Predicate 20 | */ 21 | public class PredicateType extends Predicate { 22 | 23 | /** The tags. */ 24 | private final int[] tags; 25 | 26 | /** 27 | * Constructor used to select events with the tag value t1. 28 | * 29 | * @param t1 an event tag value 30 | */ 31 | public PredicateType(int t1) { 32 | tags = new int[] { t1 }; 33 | } 34 | 35 | /** 36 | * Constructor used to select events with a tag value equal to any of the specified tags. 37 | * 38 | * @param tags the list of tags 39 | */ 40 | public PredicateType(int[] tags) { 41 | this.tags = tags.clone(); 42 | } 43 | 44 | /** 45 | * The match function called by Sim_system, not used directly by the user. 46 | * 47 | * @param ev the ev 48 | * @return true, if match 49 | */ 50 | @Override 51 | public boolean match(SimEvent ev) { 52 | int tag = ev.getTag(); 53 | for (int tag2 : tags) { 54 | if (tag == tag2) { 55 | return true; 56 | } 57 | } 58 | return false; 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerIbmX3550XeonX5670.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an IBM server x3550 (2 x [Xeon X5670 2933 MHz, 6 cores], 12GB). 13 | * http://www.spec.org/power_ssj2008/results/res2010q2/power_ssj2008-20100315-00239.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerIbmX3550XeonX5670 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 66, 107, 120, 131, 143, 156, 173, 191, 211, 229, 247 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerIbmX3550XeonX5675.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an IBM server x3550 (2 x [Xeon X5675 3067 MHz, 6 cores], 16GB). 13 | * http://www.spec.org/power_ssj2008/results/res2011q2/power_ssj2008-20110406-00368.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerIbmX3550XeonX5675 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 58.4, 98, 109, 118, 128, 140, 153, 170, 189, 205, 222 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/PredicateNotType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * A predicate to select events that don't match specific tags. 15 | * 16 | * @author Marcos Dias de Assuncao 17 | * @since CloudSim Toolkit 1.0 18 | * @see PredicateType 19 | * @see Predicate 20 | */ 21 | public class PredicateNotType extends Predicate { 22 | 23 | /** The tags. */ 24 | private final int[] tags; 25 | 26 | /** 27 | * Constructor used to select events whose tags do not match a given tag. 28 | * 29 | * @param tag An event tag value 30 | */ 31 | public PredicateNotType(int tag) { 32 | tags = new int[] { tag }; 33 | } 34 | 35 | /** 36 | * Constructor used to select events whose tag values do not match any of the given tags. 37 | * 38 | * @param tags the list of tags 39 | */ 40 | public PredicateNotType(int[] tags) { 41 | this.tags = tags.clone(); 42 | } 43 | 44 | /** 45 | * The match function called by {@link Simulation}, not used directly by the user. 46 | * 47 | * @param ev the ev 48 | * @return true, if match 49 | */ 50 | @Override 51 | public boolean match(SimEvent ev) { 52 | int tag = ev.getTag(); 53 | for (int tag2 : tags) { 54 | if (tag == tag2) { 55 | return false; 56 | } 57 | } 58 | return true; 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerIbmX3250XeonX3470.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an IBM server x3250 (1 x [Xeon X3470 2933 MHz, 4 cores], 8GB). 13 | * http://www.spec.org/power_ssj2008/results/res2009q4/power_ssj2008-20091104-00213.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerIbmX3250XeonX3470 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 41.6, 46.7, 52.3, 57.9, 65.4, 73, 80.7, 89.5, 99.6, 105, 113 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerIbmX3250XeonX3480.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an IBM server x3250 (1 x [Xeon X3480 3067 MHz, 4 cores], 8GB). 13 | * http://www.spec.org/power_ssj2008/results/res2010q4/power_ssj2008-20101001-00297.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerIbmX3250XeonX3480 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 42.3, 46.7, 49.7, 55.4, 61.8, 69.3, 76.1, 87, 96.1, 106, 113 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/datacenter/HostPacket.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network.datacenter; 10 | 11 | /** 12 | * HostPacket represents the packet that travels through the virtual network with a Host. It 13 | * contains information about cloudlets which are communicating 14 | * 15 | * Please refer to following publication for more details: 16 | * 17 | * Saurabh Kumar Garg and Rajkumar Buyya, NetworkCloudSim: Modelling Parallel Applications in Cloud 18 | * Simulations, Proceedings of the 4th IEEE/ACM International Conference on Utility and Cloud 19 | * Computing (UCC 2011, IEEE CS Press, USA), Melbourne, Australia, December 5-7, 2011. 20 | * 21 | * @author Saurabh Kumar Garg 22 | * @since CloudSim Toolkit 1.0 23 | */ 24 | public class HostPacket { 25 | 26 | public HostPacket( 27 | int sender, 28 | int reciever, 29 | double data, 30 | double sendtime, 31 | double recievetime, 32 | int vsnd, 33 | int vrvd) { 34 | super(); 35 | this.sender = sender; 36 | this.reciever = reciever; 37 | this.data = data; 38 | this.sendtime = sendtime; 39 | this.recievetime = recievetime; 40 | virtualrecvid = vrvd; 41 | virtualsendid = vsnd; 42 | } 43 | 44 | int sender; 45 | 46 | int virtualrecvid; 47 | 48 | int virtualsendid; 49 | 50 | int reciever; 51 | 52 | double data; 53 | 54 | double sendtime; 55 | 56 | double recievetime; 57 | } 58 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerHpProLiantMl110G4Xeon3040.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an HP ProLiant ML110 G4 (1 x [Xeon 3040 1860 MHz, 2 cores], 4GB). 13 | * http://www.spec.org/power_ssj2008/results/res2011q1/power_ssj2008-20110127-00342.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerHpProLiantMl110G4Xeon3040 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 86, 89.4, 92.6, 96, 99.5, 102, 106, 108, 112, 114, 117 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerHpProLiantMl110G5Xeon3075.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an HP ProLiant ML110 G5 (1 x [Xeon 3075 2660 MHz, 2 cores], 4GB). 13 | * http://www.spec.org/power_ssj2008/results/res2011q1/power_ssj2008-20110124-00339.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerHpProLiantMl110G5Xeon3075 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 93.7, 97, 101, 105, 110, 116, 121, 125, 129, 133, 135 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | cloudsim 3.0.3 API 8 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | <noscript> 28 | <div>JavaScript is disabled on your browser.</div> 29 | </noscript> 30 | <h2>Frame Alert</h2> 31 | <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/datacenter/NetworkPacket.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network.datacenter; 10 | 11 | /** 12 | * NewtorkPacket represents the packet which travel from one server to another. Each packet contains 13 | * ids of the sender VM and receiver VM, time at which it is send and received, type and virtual ids 14 | * of tasks, which are communicating. 15 | * 16 | * Please refer to following publication for more details: 17 | * 18 | * Saurabh Kumar Garg and Rajkumar Buyya, NetworkCloudSim: Modelling Parallel Applications in Cloud 19 | * Simulations, Proceedings of the 4th IEEE/ACM International Conference on Utility and Cloud 20 | * Computing (UCC 2011, IEEE CS Press, USA), Melbourne, Australia, December 5-7, 2011. 21 | * 22 | * @author Saurabh Kumar Garg 23 | * @since CloudSim Toolkit 1.0 24 | */ 25 | public class NetworkPacket { 26 | 27 | public NetworkPacket(int id, HostPacket pkt2, int vmid, int cloudletid) { 28 | pkt = pkt2; 29 | sendervmid = vmid; 30 | this.cloudletid = cloudletid; 31 | senderhostid = id; 32 | stime = pkt.sendtime; 33 | recievervmid = pkt2.reciever; 34 | 35 | } 36 | 37 | HostPacket pkt; 38 | 39 | int senderhostid; 40 | 41 | int recieverhostid; 42 | 43 | int sendervmid; 44 | 45 | int recievervmid; 46 | 47 | int cloudletid; 48 | 49 | double stime;// time when sent 50 | 51 | double rtime;// time when received 52 | } 53 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPowerHpProLiantMl110G3PentiumD930.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The power model of an HP ProLiant ML110 G3 (1 x [Pentium D930 3000 MHz, 2 cores], 4GB). 13 | * http://www.spec.org/power_ssj2008/results/res2011q1/power_ssj2008-20110127-00342.html 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public class PowerModelSpecPowerHpProLiantMl110G3PentiumD930 extends PowerModelSpecPower { 27 | 28 | /** The power. */ 29 | private final double[] power = { 105, 112, 118, 125, 131, 137, 147, 153, 157, 164, 169 }; 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int) 34 | */ 35 | @Override 36 | protected double getPowerData(int index) { 37 | return power[index]; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/provisioners/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.provisioners (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.provisioners

13 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/datacenter/TaskStage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network.datacenter; 10 | 11 | /** 12 | * Taskstage represents various stages a networkCloudlet can have during execution. Four stage types 13 | * which are possible-> EXECUTION=0; WAIT_SEND=1; WAIT_RECV=2; FINISH=-2; Check NeworkConstants.java 14 | * file for that. 15 | * 16 | * Please refer to following publication for more details: 17 | * 18 | * Saurabh Kumar Garg and Rajkumar Buyya, NetworkCloudSim: Modelling Parallel Applications in Cloud 19 | * Simulations, Proceedings of the 4th IEEE/ACM International Conference on Utility and Cloud 20 | * Computing (UCC 2011, IEEE CS Press, USA), Melbourne, Australia, December 5-7, 2011. 21 | * 22 | * @author Saurabh Kumar Garg 23 | * @since CloudSim Toolkit 1.0 24 | */ 25 | public class TaskStage { 26 | 27 | public TaskStage(int type, double data, double time, double stageid, long memory, int peer, int vpeer) { 28 | super(); 29 | this.type = type; 30 | this.data = data; 31 | this.time = time; 32 | this.stageid = stageid; 33 | this.memory = memory; 34 | this.peer = peer; 35 | this.vpeer = vpeer; 36 | } 37 | 38 | int vpeer; 39 | 40 | int type;// execution, recv, send, 41 | 42 | double data;// data generated or send or recv 43 | 44 | double time;// execution time for this stage 45 | 46 | double stageid; 47 | 48 | long memory; 49 | 50 | int peer;// from whom data needed to be recieved or send 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/PowerVmSelectionPolicyRandomSelection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power; 10 | 11 | import java.util.List; 12 | import java.util.Random; 13 | 14 | import org.cloudbus.cloudsim.Vm; 15 | 16 | /** 17 | * The Random Selection (RS) VM selection policy. 18 | * 19 | * If you are using any algorithms, policies or workload included in the power package, please cite 20 | * the following paper: 21 | * 22 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 23 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 24 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 25 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 26 | * 27 | * @author Anton Beloglazov 28 | * @since CloudSim Toolkit 3.0 29 | */ 30 | public class PowerVmSelectionPolicyRandomSelection extends PowerVmSelectionPolicy { 31 | 32 | /* 33 | * (non-Javadoc) 34 | * @see 35 | * org.cloudbus.cloudsim.experiments.power.PowerVmSelectionPolicy#getVmsToMigrate(org.cloudbus 36 | * .cloudsim.power.PowerHost) 37 | */ 38 | @Override 39 | public Vm getVmToMigrate(PowerHost host) { 40 | List migratableVms = getMigratableVms(host); 41 | if (migratableVms.isEmpty()) { 42 | return null; 43 | } 44 | int index = (new Random()).nextInt(migratableVms.size()); 45 | return migratableVms.get(index); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/ExponentialDistr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.distributions; 10 | 11 | import java.util.Random; 12 | 13 | /** 14 | * An exponential number generator. 15 | * 16 | * @author Marcos Dias de Assuncao 17 | * @since CloudSim Toolkit 1.0 18 | */ 19 | public class ExponentialDistr implements ContinuousDistribution { 20 | 21 | /** The num gen. */ 22 | private final Random numGen; 23 | 24 | /** The mean. */ 25 | private final double mean; 26 | 27 | /** 28 | * Creates a new exponential number generator. 29 | * 30 | * @param seed the seed to be used. 31 | * @param mean the mean for the distribution. 32 | */ 33 | public ExponentialDistr(long seed, double mean) { 34 | if (mean <= 0.0) { 35 | throw new IllegalArgumentException("Mean must be greater than 0.0"); 36 | } 37 | numGen = new Random(seed); 38 | this.mean = mean; 39 | } 40 | 41 | /** 42 | * Creates a new exponential number generator. 43 | * 44 | * @param mean the mean for the distribution. 45 | */ 46 | public ExponentialDistr(double mean) { 47 | if (mean <= 0.0) { 48 | throw new IllegalArgumentException("Mean must be greated than 0.0"); 49 | } 50 | numGen = new Random(System.currentTimeMillis()); 51 | this.mean = mean; 52 | } 53 | 54 | /** 55 | * Generate a new random number. 56 | * 57 | * @return the next random number in the sequence 58 | */ 59 | @Override 60 | public double sample() { 61 | return -mean * Math.log(numGen.nextDouble()); 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/core/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.core (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.core

13 |
14 |

Classes

15 | 25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/PredicateNotFrom.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * A predicate which selects events that have not been sent by specific entities. 15 | * 16 | * @author Marcos Dias de Assuncao 17 | * @since CloudSim Toolkit 1.0 18 | * @see PredicateFrom 19 | * @see Predicate 20 | */ 21 | public class PredicateNotFrom extends Predicate { 22 | 23 | /** The ids. */ 24 | private final int[] ids; 25 | 26 | /** 27 | * Constructor used to select events that were not sent by a specific entity. 28 | * 29 | * @param sourceId the id number of the source entity 30 | */ 31 | public PredicateNotFrom(int sourceId) { 32 | ids = new int[] { sourceId }; 33 | } 34 | 35 | /** 36 | * Constructor used to select events that were not sent by any entity from a given set. 37 | * 38 | * @param sourceIds the set of id numbers of the source entities 39 | */ 40 | public PredicateNotFrom(int[] sourceIds) { 41 | ids = sourceIds.clone(); 42 | } 43 | 44 | /** 45 | * The match function called by {@link Simulation}, not used directly by the user. 46 | * 47 | * @param ev the event to check 48 | * @return true if the event matches the predicate, false otherwise 49 | */ 50 | @Override 51 | public boolean match(SimEvent ev) { 52 | int src = ev.getSource(); 53 | for (int id : ids) { 54 | if (src == id) { 55 | return false; 56 | } 57 | } 58 | return true; 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/ParameterException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * ** Network and Service Differentiation Extensions to CloudSim 3.0 ** 3 | * 4 | * Gokul Poduval & Chen-Khong Tham 5 | * Computer Communication Networks (CCN) Lab 6 | * Dept of Electrical & Computer Engineering 7 | * National University of Singapore 8 | * October 2004 9 | * 10 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 11 | * Copyright (c) 2004, The University of Melbourne, Australia and 12 | * National University of Singapore 13 | * ParameterException.java - Thrown for illegal parameters 14 | * 15 | */ 16 | 17 | package org.cloudbus.cloudsim; 18 | 19 | /** 20 | * This exception is to report bad or invalid parameters given during constructor. 21 | * 22 | * @author Gokul Poduval 23 | * @author Chen-Khong Tham, National University of Singapore 24 | * @since CloudSim Toolkit 1.0 25 | */ 26 | public class ParameterException extends Exception { 27 | 28 | /** The Constant serialVersionUID. */ 29 | private static final long serialVersionUID = 1L; 30 | 31 | /** The message. */ 32 | private final String message; 33 | 34 | /** 35 | * Constructs a new exception with null as its detail message. 36 | * 37 | * @pre $none 38 | * @post $none 39 | */ 40 | public ParameterException() { 41 | super(); 42 | message = null; 43 | } 44 | 45 | /** 46 | * Creates a new ParameterException object. 47 | * 48 | * @param message an error message 49 | * @pre $none 50 | * @post $none 51 | */ 52 | public ParameterException(String message) { 53 | super(); 54 | this.message = message; 55 | } 56 | 57 | /** 58 | * Returns an error message of this object. 59 | * 60 | * @return an error message 61 | * @pre $none 62 | * @post $none 63 | */ 64 | @Override 65 | public String toString() { 66 | return message; 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/core/predicates/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.core.predicates (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.core.predicates

13 |
14 |

Classes

15 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/PowerVmSelectionPolicy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power; 10 | 11 | import java.util.ArrayList; 12 | import java.util.List; 13 | 14 | import org.cloudbus.cloudsim.Vm; 15 | 16 | /** 17 | * The class of an abstract VM selection policy. 18 | * 19 | * If you are using any algorithms, policies or workload included in the power package, please cite 20 | * the following paper: 21 | * 22 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 23 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 24 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 25 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 26 | * 27 | * @author Anton Beloglazov 28 | * @since CloudSim Toolkit 3.0 29 | */ 30 | public abstract class PowerVmSelectionPolicy { 31 | 32 | /** 33 | * Gets the vms to migrate. 34 | * 35 | * @param host the host 36 | * @return the vms to migrate 37 | */ 38 | public abstract Vm getVmToMigrate(PowerHost host); 39 | 40 | /** 41 | * Gets the migratable vms. 42 | * 43 | * @param host the host 44 | * @return the migratable vms 45 | */ 46 | protected List getMigratableVms(PowerHost host) { 47 | List migratableVms = new ArrayList(); 48 | for (PowerVm vm : host. getVmList()) { 49 | if (!vm.isInMigration()) { 50 | migratableVms.add(vm); 51 | } 52 | } 53 | return migratableVms; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/core/predicates/PredicateFrom.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.core.predicates; 10 | 11 | import org.cloudbus.cloudsim.core.SimEvent; 12 | 13 | /** 14 | * A predicate which selects events from specific entities.
15 | * The idea of simulation predicates was copied from SimJava 2. 16 | * 17 | * @author Marcos Dias de Assuncao 18 | * @since CloudSim Toolkit 1.0 19 | * @see PredicateNotFrom 20 | * @see Predicate 21 | */ 22 | public class PredicateFrom extends Predicate { 23 | 24 | /** The ids. */ 25 | private final int[] ids; 26 | 27 | /** 28 | * Constructor used to select events that were sent by a specific entity. 29 | * 30 | * @param sourceId the id number of the source entity 31 | */ 32 | public PredicateFrom(int sourceId) { 33 | ids = new int[] { sourceId }; 34 | } 35 | 36 | /** 37 | * Constructor used to select events that were sent by any entity from a given set. 38 | * 39 | * @param sourceIds the set of id numbers of the source entities 40 | */ 41 | public PredicateFrom(int[] sourceIds) { 42 | ids = sourceIds.clone(); 43 | } 44 | 45 | /** 46 | * The match function called by Simulation, not used directly by the user. 47 | * 48 | * @param ev the event to check 49 | * @return true if the event matches the predicate, false otherwise 50 | */ 51 | @Override 52 | public boolean match(SimEvent ev) { 53 | int src = ev.getSource(); 54 | for (int id : ids) { 55 | if (src == id) { 56 | return true; 57 | } 58 | } 59 | return false; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/network/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.network (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.network

13 |
14 |

Interfaces

15 | 18 |

Classes

19 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/LomaxDistribution.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.distributions; 10 | 11 | import java.util.Random; 12 | 13 | /** 14 | * The Class LomaxDistribution. 15 | * 16 | * @author Marcos Dias de Assuncao 17 | * @since CloudSim Toolkit 1.0 18 | */ 19 | public class LomaxDistribution extends ParetoDistr implements ContinuousDistribution { 20 | 21 | /** The shift. */ 22 | private final double shift; 23 | 24 | /** 25 | * Instantiates a new lomax distribution. 26 | * 27 | * @param shape the shape 28 | * @param location the location 29 | * @param shift the shift 30 | */ 31 | public LomaxDistribution(double shape, double location, double shift) { 32 | super(shape, location); 33 | 34 | if (shift > location) { 35 | throw new IllegalArgumentException("Shift must be smaller or equal than location"); 36 | } 37 | 38 | this.shift = shift; 39 | } 40 | 41 | /** 42 | * Instantiates a new lomax distribution. 43 | * 44 | * @param seed the seed 45 | * @param shape the shape 46 | * @param location the location 47 | * @param shift the shift 48 | */ 49 | public LomaxDistribution(Random seed, double shape, double location, double shift) { 50 | super(seed, shape, location); 51 | 52 | if (shift > location) { 53 | throw new IllegalArgumentException("Shift must be smaller or equal than location"); 54 | } 55 | 56 | this.shift = shift; 57 | } 58 | 59 | /* 60 | * (non-Javadoc) 61 | * @see cloudsim.distributions.ParetoDistr#sample() 62 | */ 63 | @Override 64 | public double sample() { 65 | return super.sample() - shift; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/TopologicalLink.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network; 10 | 11 | /** 12 | * This class represents an link (edge) from an graph 13 | * 14 | * @author Thomas Hohnstein 15 | * @since CloudSim Toolkit 1.0 16 | */ 17 | public class TopologicalLink { 18 | 19 | /** 20 | * id of the link src node-id 21 | */ 22 | private int srcNodeID = 0; 23 | 24 | /** 25 | * id of the link dest node-id 26 | */ 27 | private int destNodeID = 0; 28 | 29 | /** 30 | * representing the link-delay of the connection 31 | */ 32 | private float linkDelay = 0; 33 | 34 | private float linkBw = 0; 35 | 36 | /** 37 | * creates an new link-object 38 | */ 39 | public TopologicalLink(int srcNode, int destNode, float delay, float bw) { 40 | // lets initialize all internal attributes 41 | linkDelay = delay; 42 | srcNodeID = srcNode; 43 | destNodeID = destNode; 44 | linkBw = bw; 45 | } 46 | 47 | /** 48 | * returns the node-ID from the SrcNode 49 | * 50 | * @return nodeID 51 | */ 52 | public int getSrcNodeID() { 53 | return srcNodeID; 54 | } 55 | 56 | /** 57 | * return the node-ID from the DestNode 58 | * 59 | * @return nodeID 60 | */ 61 | public int getDestNodeID() { 62 | return destNodeID; 63 | } 64 | 65 | /** 66 | * return the link-delay of the defined linke 67 | * 68 | * @return the delay-amount 69 | */ 70 | public float getLinkDelay() { 71 | return linkDelay; 72 | } 73 | 74 | /** 75 | * return the link-bw of the defined linke 76 | * 77 | * @return the bw 78 | */ 79 | public float getLinkBw() { 80 | return linkBw; 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/PowerVmAllocationPolicySimple.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power; 10 | 11 | import java.util.List; 12 | import java.util.Map; 13 | 14 | import org.cloudbus.cloudsim.Host; 15 | import org.cloudbus.cloudsim.Vm; 16 | 17 | /** 18 | * This a simple class representing a simple VM allocation policy that does not perform any 19 | * optimization of the VM allocation. 20 | * 21 | * If you are using any algorithms, policies or workload included in the power package, please cite 22 | * the following paper: 23 | * 24 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 25 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 26 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 27 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 28 | * 29 | * @author Anton Beloglazov 30 | * @since CloudSim Toolkit 3.0 31 | */ 32 | public class PowerVmAllocationPolicySimple extends PowerVmAllocationPolicyAbstract { 33 | 34 | /** 35 | * Instantiates a new power vm allocation policy simple. 36 | * 37 | * @param list the list 38 | */ 39 | public PowerVmAllocationPolicySimple(List list) { 40 | super(list); 41 | } 42 | 43 | /* 44 | * (non-Javadoc) 45 | * @see org.cloudbus.cloudsim.VmAllocationPolicy#optimizeAllocation(java.util.List) 46 | */ 47 | @Override 48 | public List> optimizeAllocation(List vmList) { 49 | // This policy does not optimize the VM allocation 50 | return null; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/Dvfs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that only applied DVFS, but no dynamic 7 | * optimization of the VM allocation. The adjustment of the hosts' power consumption according to 8 | * their CPU utilization is happening in the PowerDatacenter class. 9 | * 10 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 11 | * 12 | * If you are using any algorithms, policies or workload included in the power package please cite 13 | * the following paper: 14 | * 15 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 16 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 17 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 18 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 19 | * 20 | * @author Anton Beloglazov 21 | * @since Jan 5, 2012 22 | */ 23 | public class Dvfs { 24 | 25 | /** 26 | * The main method. 27 | * 28 | * @param args the arguments 29 | * @throws IOException Signals that an I/O exception has occurred. 30 | */ 31 | public static void main(String[] args) throws IOException { 32 | boolean enableOutput = true; 33 | boolean outputToFile = false; 34 | String inputFolder = ""; 35 | String outputFolder = ""; 36 | String workload = "random"; // Random workload 37 | String vmAllocationPolicy = "dvfs"; // DVFS policy without VM migrations 38 | String vmSelectionPolicy = ""; 39 | String parameter = ""; 40 | 41 | new RandomRunner( 42 | enableOutput, 43 | outputToFile, 44 | inputFolder, 45 | outputFolder, 46 | workload, 47 | vmAllocationPolicy, 48 | vmSelectionPolicy, 49 | parameter); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrRs { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 37 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/ThrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class ThrRs { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 37 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 38 | String parameter = "0.8"; // the static utilization threshold 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrMc { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 37 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrMu { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 37 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/ThrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class ThrMc { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 37 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 38 | String parameter = "0.8"; // the static utilization threshold 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/ThrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class ThrMu { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 37 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 38 | String parameter = "0.8"; // the static utilization threshold 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/IqrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class IqrRs { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 37 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 38 | String parameter = "1.5"; // the safety parameter of the IQR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrMmt { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 37 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/ThrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class ThrMmt { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 37 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 38 | String parameter = "0.8"; // the static utilization threshold 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/IqrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class IqrMc { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 37 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 38 | String parameter = "1.5"; // the safety parameter of the IQR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/IqrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class IqrMu { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 37 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 38 | String parameter = "1.5"; // the safety parameter of the IQR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrrRs { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 37 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LRR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrrMc { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 37 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LRR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrrMu { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 37 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LRR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/MadRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class MadRs { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 37 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 38 | String parameter = "2.5"; // the safety parameter of the MAD policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/WeibullDistr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Descripimport java.util.Random; 4 | mulation) Toolkit for Modeling and Simulation of Clouds 5 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 6 | * 7 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 8 | */ 9 | 10 | package org.cloudbus.cloudsim.distributions; 11 | 12 | import java.util.Random; 13 | 14 | /** 15 | * The Class WeibullDistr. 16 | * 17 | * @author Marcos Dias de Assuncao 18 | * @since CloudSim Toolkit 1.0 19 | */ 20 | public class WeibullDistr implements ContinuousDistribution { 21 | 22 | /** The num gen. */ 23 | private final Random numGen; 24 | 25 | /** The alpha. */ 26 | private final double alpha; 27 | 28 | /** The beta. */ 29 | private final double beta; 30 | 31 | /** 32 | * Instantiates a new weibull distr. 33 | * 34 | * @param seed the seed 35 | * @param alpha the alpha 36 | * @param beta the beta 37 | */ 38 | public WeibullDistr(Random seed, double alpha, double beta) { 39 | if (alpha <= 0.0 || beta <= 0.0) { 40 | throw new IllegalArgumentException("Alpha and beta must be greater than 0.0"); 41 | } 42 | 43 | numGen = seed; 44 | this.alpha = alpha; 45 | this.beta = beta; 46 | } 47 | 48 | /** 49 | * Instantiates a new weibull distr. 50 | * 51 | * @param alpha the alpha 52 | * @param beta the beta 53 | */ 54 | public WeibullDistr(double alpha, double beta) { 55 | if (alpha <= 0.0 || beta <= 0.0) { 56 | throw new IllegalArgumentException("Alpha and beta must be greater than 0.0"); 57 | } 58 | 59 | numGen = new Random(System.currentTimeMillis()); 60 | this.alpha = alpha; 61 | this.beta = beta; 62 | } 63 | 64 | /* 65 | * (non-Javadoc) 66 | * @see cloudsim.distributions.ContinuousDistribution#sample() 67 | */ 68 | @Override 69 | public double sample() { 70 | return beta * Math.pow(-Math.log(numGen.nextDouble()), 1 / alpha); 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/IqrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class IqrMmt { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 37 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 38 | String parameter = "1.5"; // the safety parameter of the IQR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/MadMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class MadMc { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 37 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 38 | String parameter = "2.5"; // the safety parameter of the MAD policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/MadMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class MadMu { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 37 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 38 | String parameter = "2.5"; // the safety parameter of the MAD policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/LrrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class LrrMmt { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 37 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 38 | String parameter = "1.2"; // the safety parameter of the LRR policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/lists/PowerVmList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.lists; 10 | 11 | import java.util.Collections; 12 | import java.util.Comparator; 13 | import java.util.List; 14 | 15 | import org.cloudbus.cloudsim.Vm; 16 | import org.cloudbus.cloudsim.core.CloudSim; 17 | import org.cloudbus.cloudsim.lists.VmList; 18 | 19 | /** 20 | * PowerVmList is a collection of operations on lists of power-enabled VMs. 21 | * 22 | * If you are using any algorithms, policies or workload included in the power package, please cite 23 | * the following paper: 24 | * 25 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 26 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 27 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 28 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 29 | * 30 | * @author Anton Beloglazov 31 | * 32 | * @author Anton Beloglazov 33 | * @since CloudSim Toolkit 2.0 34 | */ 35 | public class PowerVmList extends VmList { 36 | 37 | /** 38 | * Sort by cpu utilization. 39 | * 40 | * @param vmList the vm list 41 | */ 42 | public static void sortByCpuUtilization(List vmList) { 43 | Collections.sort(vmList, new Comparator() { 44 | 45 | @Override 46 | public int compare(T a, T b) throws ClassCastException { 47 | Double aUtilization = a.getTotalUtilizationOfCpuMips(CloudSim.clock()); 48 | Double bUtilization = b.getTotalUtilizationOfCpuMips(CloudSim.clock()); 49 | return bUtilization.compareTo(aUtilization); 50 | } 51 | }); 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/random/MadMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.random; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * The remaining configuration parameters are in the Constants and RandomConstants classes. 10 | * 11 | * If you are using any algorithms, policies or workload included in the power package please cite 12 | * the following paper: 13 | * 14 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 15 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 16 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 17 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 18 | * 19 | * @author Anton Beloglazov 20 | * @since Jan 5, 2012 21 | */ 22 | public class MadMmt { 23 | 24 | /** 25 | * The main method. 26 | * 27 | * @param args the arguments 28 | * @throws IOException Signals that an I/O exception has occurred. 29 | */ 30 | public static void main(String[] args) throws IOException { 31 | boolean enableOutput = true; 32 | boolean outputToFile = false; 33 | String inputFolder = ""; 34 | String outputFolder = ""; 35 | String workload = "random"; // Random workload 36 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 37 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 38 | String parameter = "2.5"; // the safety parameter of the MAD policy 39 | 40 | new RandomRunner( 41 | enableOutput, 42 | outputToFile, 43 | inputFolder, 44 | outputFolder, 45 | workload, 46 | vmAllocationPolicy, 47 | vmSelectionPolicy, 48 | parameter); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/PowerVmSelectionPolicyMinimumMigrationTime.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power; 10 | 11 | import java.util.List; 12 | 13 | import org.cloudbus.cloudsim.Vm; 14 | 15 | /** 16 | * The Minimum Migration Time (MMT) VM selection policy. 17 | * 18 | * If you are using any algorithms, policies or workload included in the power package, please cite 19 | * the following paper: 20 | * 21 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 22 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 23 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 24 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 25 | * 26 | * @author Anton Beloglazov 27 | * @since CloudSim Toolkit 3.0 28 | */ 29 | public class PowerVmSelectionPolicyMinimumMigrationTime extends PowerVmSelectionPolicy { 30 | 31 | /* 32 | * (non-Javadoc) 33 | * @see 34 | * org.cloudbus.cloudsim.experiments.power.PowerVmSelectionPolicy#getVmsToMigrate(org.cloudbus 35 | * .cloudsim.power.PowerHost) 36 | */ 37 | @Override 38 | public Vm getVmToMigrate(PowerHost host) { 39 | List migratableVms = getMigratableVms(host); 40 | if (migratableVms.isEmpty()) { 41 | return null; 42 | } 43 | Vm vmToMigrate = null; 44 | double minMetric = Double.MAX_VALUE; 45 | for (Vm vm : migratableVms) { 46 | if (vm.isInMigration()) { 47 | continue; 48 | } 49 | double metric = vm.getRam(); 50 | if (metric < minMetric) { 51 | minMetric = metric; 52 | vmToMigrate = vm; 53 | } 54 | } 55 | return vmToMigrate; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/ParetoDistr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Descripimport java.util.Random; 4 | mulation) Toolkit for Modeling and Simulation of Clouds 5 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 6 | * 7 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 8 | */ 9 | 10 | package org.cloudbus.cloudsim.distributions; 11 | 12 | import java.util.Random; 13 | 14 | /** 15 | * The Class ParetoDistr. 16 | * 17 | * @author Marcos Dias de Assuncao 18 | * @since CloudSim Toolkit 1.0 19 | */ 20 | public class ParetoDistr implements ContinuousDistribution { 21 | 22 | /** The num gen. */ 23 | private final Random numGen; 24 | 25 | /** The shape. */ 26 | private final double shape; 27 | 28 | /** The location. */ 29 | private final double location; 30 | 31 | /** 32 | * Instantiates a new pareto distr. 33 | * 34 | * @param seed the seed 35 | * @param shape the shape 36 | * @param location the location 37 | */ 38 | public ParetoDistr(Random seed, double shape, double location) { 39 | if (shape <= 0.0 || location <= 0.0) { 40 | throw new IllegalArgumentException("Mean and deviation must be greater than 0.0"); 41 | } 42 | 43 | numGen = seed; 44 | this.shape = shape; 45 | this.location = location; 46 | } 47 | 48 | /** 49 | * Instantiates a new pareto distr. 50 | * 51 | * @param shape the shape 52 | * @param location the location 53 | */ 54 | public ParetoDistr(double shape, double location) { 55 | if (shape <= 0.0 || location <= 0.0) { 56 | throw new IllegalArgumentException("Mean and deviation must be greater than 0.0"); 57 | } 58 | 59 | numGen = new Random(System.currentTimeMillis()); 60 | this.shape = shape; 61 | this.location = location; 62 | } 63 | 64 | /* 65 | * (non-Javadoc) 66 | * @see cloudsim.distributions.ContinuousDistribution#sample() 67 | */ 68 | @Override 69 | public double sample() { 70 | return location / Math.pow(numGen.nextDouble(), 1 / shape); 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/PlanetLabRunnerConsole.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * This is a universal example runner that can be used for running examples from console. All the 7 | * parameters are specified as command line parameters. 8 | * 9 | * If you are using any algorithms, policies or workload included in the power package please cite 10 | * the following paper: 11 | * 12 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 13 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 14 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 15 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 16 | * 17 | * @author Anton Beloglazov 18 | * @since Jan 5, 2012 19 | */ 20 | public class PlanetLabRunnerConsole { 21 | 22 | /** 23 | * The main method. 24 | * 25 | * @param args the arguments 26 | * @throws IOException Signals that an I/O exception has occurred. 27 | */ 28 | public static void main(String[] args) throws IOException { 29 | boolean enableOutput = false; 30 | boolean outputToFile = true; 31 | if (args[0].equals("1")) { 32 | enableOutput = true; 33 | } 34 | String inputFolder = args[1]; 35 | String outputFolder = args[2]; 36 | String workload = args[3]; 37 | String vmAllocationPolicy = args[4]; 38 | String vmSelectionPolicy = ""; 39 | if (args.length >= 6 && args[5] != null && !args[5].isEmpty()) { 40 | vmSelectionPolicy = args[5]; 41 | } 42 | String parameter = ""; 43 | if (args.length >= 7 && args[6] != null && !args[6].isEmpty()) { 44 | parameter = args[6]; 45 | } 46 | 47 | new PlanetLabRunner( 48 | enableOutput, 49 | outputToFile, 50 | inputFolder, 51 | outputFolder, 52 | workload, 53 | vmAllocationPolicy, 54 | vmSelectionPolicy, 55 | parameter); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/GammaDistr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Descripimport java.util.Random; 4 | mulation) Toolkit for Modeling and Simulation of Clouds 5 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 6 | * 7 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 8 | */ 9 | 10 | package org.cloudbus.cloudsim.distributions; 11 | 12 | import java.util.Random; 13 | 14 | /** 15 | * The Class GammaDistr. 16 | * 17 | * @author Marcos Dias de Assuncao 18 | * @since CloudSim Toolkit 1.0 19 | */ 20 | public class GammaDistr implements ContinuousDistribution { 21 | 22 | /** The num gen. */ 23 | private final Random numGen; 24 | 25 | /** The alpha. */ 26 | private final int alpha; 27 | 28 | /** The beta. */ 29 | private final double beta; 30 | 31 | /** 32 | * Instantiates a new gamma distr. 33 | * 34 | * @param seed the seed 35 | * @param alpha the alpha 36 | * @param beta the beta 37 | */ 38 | public GammaDistr(Random seed, int alpha, double beta) { 39 | if (alpha <= 0 || beta <= 0.0) { 40 | throw new IllegalArgumentException("Alpha and beta must be greater than 0.0"); 41 | } 42 | 43 | numGen = seed; 44 | this.alpha = alpha; 45 | this.beta = beta; 46 | } 47 | 48 | /** 49 | * Instantiates a new gamma distr. 50 | * 51 | * @param alpha the alpha 52 | * @param beta the beta 53 | */ 54 | public GammaDistr(int alpha, double beta) { 55 | if (alpha <= 0 || beta <= 0.0) { 56 | throw new IllegalArgumentException("Alpha and beta must be greater than 0.0"); 57 | } 58 | 59 | numGen = new Random(System.currentTimeMillis()); 60 | this.alpha = alpha; 61 | this.beta = beta; 62 | } 63 | 64 | /* 65 | * (non-Javadoc) 66 | * @see cloudsim.distributions.ContinuousDistribution#sample() 67 | */ 68 | @Override 69 | public double sample() { 70 | double sum = 0.0; 71 | for (int i = 0; i < alpha; i++) { 72 | sum += Math.log(numGen.nextDouble()); 73 | } 74 | 75 | return -beta * sum; 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/PowerVmSelectionPolicyMinimumUtilization.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power; 10 | 11 | import java.util.List; 12 | 13 | import org.cloudbus.cloudsim.Vm; 14 | import org.cloudbus.cloudsim.core.CloudSim; 15 | 16 | /** 17 | * The Minimum Utilization (MU) VM selection policy. 18 | * 19 | * If you are using any algorithms, policies or workload included in the power package, please cite 20 | * the following paper: 21 | * 22 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 23 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 24 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 25 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 26 | * 27 | * @author Anton Beloglazov 28 | * @since CloudSim Toolkit 3.0 29 | */ 30 | public class PowerVmSelectionPolicyMinimumUtilization extends PowerVmSelectionPolicy { 31 | 32 | /* 33 | * (non-Javadoc) 34 | * @see 35 | * org.cloudbus.cloudsim.experiments.power.PowerVmSelectionPolicy#getVmsToMigrate(org.cloudbus 36 | * .cloudsim.power.PowerHost) 37 | */ 38 | @Override 39 | public Vm getVmToMigrate(PowerHost host) { 40 | List migratableVms = getMigratableVms(host); 41 | if (migratableVms.isEmpty()) { 42 | return null; 43 | } 44 | Vm vmToMigrate = null; 45 | double minMetric = Double.MAX_VALUE; 46 | for (Vm vm : migratableVms) { 47 | if (vm.isInMigration()) { 48 | continue; 49 | } 50 | double metric = vm.getTotalUtilizationOfCpuMips(CloudSim.clock()) / vm.getMips(); 51 | if (metric < minMetric) { 52 | minMetric = metric; 53 | vmToMigrate = vm; 54 | } 55 | } 56 | return vmToMigrate; 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/Dvfs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that only applied DVFS, but no dynamic 7 | * optimization of the VM allocation. The adjustment of the hosts' power consumption according to 8 | * their CPU utilization is happening in the PowerDatacenter class. 9 | * 10 | * This example uses a real PlanetLab workload: 20110303. 11 | * 12 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 13 | * 14 | * If you are using any algorithms, policies or workload included in the power package please cite 15 | * the following paper: 16 | * 17 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 18 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 19 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 20 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 21 | * 22 | * @author Anton Beloglazov 23 | * @since Jan 5, 2012 24 | */ 25 | public class Dvfs { 26 | 27 | /** 28 | * The main method. 29 | * 30 | * @param args the arguments 31 | * @throws IOException Signals that an I/O exception has occurred. 32 | */ 33 | public static void main(String[] args) throws IOException { 34 | boolean enableOutput = true; 35 | boolean outputToFile = false; 36 | String inputFolder = Dvfs.class.getClassLoader().getResource("workload/planetlab").getPath(); 37 | String outputFolder = "output"; 38 | String workload = "20110303"; // PlanetLab workload 39 | String vmAllocationPolicy = "dvfs"; // DVFS policy without VM migrations 40 | String vmSelectionPolicy = ""; 41 | String parameter = ""; 42 | 43 | new PlanetLabRunner( 44 | enableOutput, 45 | outputToFile, 46 | inputFolder, 47 | outputFolder, 48 | workload, 49 | vmAllocationPolicy, 50 | vmSelectionPolicy, 51 | parameter); 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrRs { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrRs.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 39 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrMc { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrMc.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 39 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrMu { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrMu.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 39 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/ThrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class ThrRs { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = NonPowerAware.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 39 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 40 | String parameter = "0.8"; // the static utilization threshold 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/IqrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class IqrRs { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = IqrRs.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 39 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 40 | String parameter = "1.5"; // the safety parameter of the IQR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression (LR) VM 7 | * allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrMmt { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrMmt.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lr"; // Local Regression (LR) VM allocation policy 39 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/ThrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class ThrMc { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = NonPowerAware.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 39 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 40 | String parameter = "0.8"; // the static utilization threshold 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/ThrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class ThrMu { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = NonPowerAware.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 39 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 40 | String parameter = "0.8"; // the static utilization threshold 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/IqrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class IqrMc { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = IqrMc.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 39 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 40 | String parameter = "1.5"; // the safety parameter of the IQR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/IqrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class IqrMu { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = IqrMu.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 39 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 40 | String parameter = "1.5"; // the safety parameter of the IQR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrrRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrrRs { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrrRs.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 39 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LRR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrrMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrrMc { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrrMc.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 39 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LRR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrrMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrrMu { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrrMu.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 39 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LRR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/MadRs.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Random Selection (RS) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class MadRs { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = MadRs.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 39 | String vmSelectionPolicy = "rs"; // Random Selection (RS) VM selection policy 40 | String parameter = "2.5"; // the safety parameter of the MAD policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/ThrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Static Threshold (THR) 7 | * VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class ThrMmt { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = NonPowerAware.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy 39 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 40 | String parameter = "0.8"; // the static utilization threshold 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/IqrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Inter Quartile Range 7 | * (IQR) VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class IqrMmt { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = IqrMmt.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "iqr"; // Inter Quartile Range (IQR) VM allocation policy 39 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 40 | String parameter = "1.5"; // the safety parameter of the IQR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/MadMc.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Maximum Correlation (MC) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class MadMc { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = MadMc.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 39 | String vmSelectionPolicy = "mc"; // Maximum Correlation (MC) VM selection policy 40 | String parameter = "2.5"; // the safety parameter of the MAD policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/MadMu.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Minimum Utilization (MU) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class MadMu { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = MadMu.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 39 | String vmSelectionPolicy = "mu"; // Minimum Utilization (MU) VM selection policy 40 | String parameter = "2.5"; // the safety parameter of the MAD policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/LrrMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Local Regression Robust 7 | * (LRR) VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class LrrMmt { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = LrrMmt.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "lrr"; // Local Regression Robust (LRR) VM allocation policy 39 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 40 | String parameter = "1.2"; // the safety parameter of the LRR policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/examples/org/cloudbus/cloudsim/examples/power/planetlab/MadMmt.java: -------------------------------------------------------------------------------- 1 | package org.cloudbus.cloudsim.examples.power.planetlab; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A simulation of a heterogeneous power aware data center that applies the Median Absolute 7 | * Deviation (MAD) VM allocation policy and Minimum Migration Time (MMT) VM selection policy. 8 | * 9 | * This example uses a real PlanetLab workload: 20110303. 10 | * 11 | * The remaining configuration parameters are in the Constants and PlanetLabConstants classes. 12 | * 13 | * If you are using any algorithms, policies or workload included in the power package please cite 14 | * the following paper: 15 | * 16 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 17 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 18 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 19 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 20 | * 21 | * @author Anton Beloglazov 22 | * @since Jan 5, 2012 23 | */ 24 | public class MadMmt { 25 | 26 | /** 27 | * The main method. 28 | * 29 | * @param args the arguments 30 | * @throws IOException Signals that an I/O exception has occurred. 31 | */ 32 | public static void main(String[] args) throws IOException { 33 | boolean enableOutput = true; 34 | boolean outputToFile = false; 35 | String inputFolder = MadMmt.class.getClassLoader().getResource("workload/planetlab").getPath(); 36 | String outputFolder = "output"; 37 | String workload = "20110303"; // PlanetLab workload 38 | String vmAllocationPolicy = "mad"; // Median Absolute Deviation (MAD) VM allocation policy 39 | String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM selection policy 40 | String parameter = "2.5"; // the safety parameter of the MAD policy 41 | 42 | new PlanetLabRunner( 43 | enableOutput, 44 | outputToFile, 45 | inputFolder, 46 | outputFolder, 47 | workload, 48 | vmAllocationPolicy, 49 | vmSelectionPolicy, 50 | parameter); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/datacenter/NetworkConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network.datacenter; 10 | 11 | public class NetworkConstants { 12 | 13 | public static int maxhostVM = 2; 14 | public static int HOST_PEs = 8; 15 | 16 | public static double maxMemperVM = 1024 * 1024;// kb 17 | 18 | public static int currentCloudletId = 0; 19 | public static int currentAppId = 0; 20 | 21 | // stage type 22 | public static final int EXECUTION = 0; 23 | public static final int WAIT_SEND = 1; 24 | public static final int WAIT_RECV = 2; 25 | public static final int FINISH = -2; 26 | 27 | // number of switches at each level 28 | public static final int ROOT_LEVEL = 0; 29 | public static final int Agg_LEVEL = 1; 30 | public static final int EDGE_LEVEL = 2; 31 | 32 | public static final int PES_NUMBER = 4; 33 | public static final int FILE_SIZE = 300; 34 | public static final int OUTPUT_SIZE = 300; 35 | 36 | public static final int COMMUNICATION_LENGTH = 1; 37 | 38 | public static boolean BASE = true; 39 | 40 | public static long BandWidthEdgeAgg = 100 * 1024 * 1024;// 100 Megabits 41 | public static long BandWidthEdgeHost = 100 * 1024 * 1024;// 42 | public static long BandWidthAggRoot = 20 * 1024 * 1024 * 2;// 40gb 43 | 44 | public static double SwitchingDelayRoot = .00285; 45 | public static double SwitchingDelayAgg = .00245;// .00245 46 | public static double SwitchingDelayEdge = .00157;// ms 47 | 48 | public static double EdgeSwitchPort = 4;// number of host 49 | 50 | public static double AggSwitchPort = 1;// number of Edge 51 | 52 | public static double RootSwitchPort = 1;// number of Agg 53 | 54 | public static double seed = 199; 55 | 56 | public static boolean logflag = false; 57 | 58 | public static int iteration = 10; 59 | public static int nexttime = 1000; 60 | 61 | public static int totaldatatransfer = 0; 62 | } 63 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/distributions/LognormalDistr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.distributions; 10 | 11 | import java.util.Random; 12 | 13 | /** 14 | * The Class LognormalDistr. 15 | * 16 | * @author Marcos Dias de Assuncao 17 | * @since CloudSim Toolkit 1.0 18 | */ 19 | public class LognormalDistr implements ContinuousDistribution { 20 | 21 | /** The num gen. */ 22 | private final Random numGen; 23 | 24 | /** The mean. */ 25 | private final double mean; 26 | 27 | /** The dev. */ 28 | private final double dev; 29 | 30 | /** 31 | * Instantiates a new lognormal distr. 32 | * 33 | * @param seed the seed 34 | * @param mean the mean 35 | * @param dev the dev 36 | */ 37 | public LognormalDistr(Random seed, double mean, double dev) { 38 | if (mean <= 0.0 || dev <= 0.0) { 39 | throw new IllegalArgumentException("Mean and deviation must be greater than 0.0"); 40 | } 41 | 42 | numGen = seed; 43 | this.mean = mean; 44 | this.dev = dev; 45 | } 46 | 47 | /** 48 | * Instantiates a new lognormal distr. 49 | * 50 | * @param mean the mean 51 | * @param dev the dev 52 | */ 53 | public LognormalDistr(double mean, double dev) { 54 | if (mean <= 0.0 || dev <= 0.0) { 55 | throw new IllegalArgumentException("Mean and deviation must be greater than 0.0"); 56 | } 57 | 58 | numGen = new Random(System.currentTimeMillis()); 59 | this.mean = mean; 60 | this.dev = dev; 61 | } 62 | 63 | /* 64 | * (non-Javadoc) 65 | * @see cloudsim.distributions.ContinuousDistribution#sample() 66 | */ 67 | @Override 68 | public double sample() { 69 | // generate a normal variate from a uniform variate 70 | double n = Math.sqrt(-2 * Math.log(numGen.nextDouble())) 71 | * Math.sin(2 * Math.PI * numGen.nextDouble()); 72 | 73 | // use it to generate the lognormal variate 74 | return Math.pow(Math.E, mean + dev * n); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/docs/org/cloudbus/cloudsim/distributions/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.cloudbus.cloudsim.distributions (cloudsim 3.0.3 API) 8 | 9 | 10 | 11 | 12 |

org.cloudbus.cloudsim.distributions

13 |
14 |

Interfaces

15 | 18 |

Classes

19 | 29 |
30 | 31 | 32 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/network/datacenter/NetworkVm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.network.datacenter; 10 | 11 | import java.util.ArrayList; 12 | 13 | import org.cloudbus.cloudsim.CloudletScheduler; 14 | import org.cloudbus.cloudsim.Vm; 15 | 16 | /** 17 | * NetworkVm class extends Vm to support simulation of networked datacenters. It executes actions 18 | * related to management of packets (send and receive). 19 | * 20 | * Please refer to following publication for more details: 21 | * 22 | * Saurabh Kumar Garg and Rajkumar Buyya, NetworkCloudSim: Modelling Parallel Applications in Cloud 23 | * Simulations, Proceedings of the 4th IEEE/ACM International Conference on Utility and Cloud 24 | * Computing (UCC 2011, IEEE CS Press, USA), Melbourne, Australia, December 5-7, 2011. 25 | * 26 | * @author Saurabh Kumar Garg 27 | * @since CloudSim Toolkit 3.0 28 | */ 29 | public class NetworkVm extends Vm implements Comparable { 30 | 31 | public NetworkVm( 32 | int id, 33 | int userId, 34 | double mips, 35 | int pesNumber, 36 | int ram, 37 | long bw, 38 | long size, 39 | String vmm, 40 | CloudletScheduler cloudletScheduler) { 41 | super(id, userId, mips, pesNumber, ram, bw, size, vmm, cloudletScheduler); 42 | 43 | cloudletlist = new ArrayList(); 44 | } 45 | 46 | public ArrayList cloudletlist; 47 | 48 | int type; 49 | 50 | public ArrayList recvPktlist; 51 | 52 | public double memory; 53 | 54 | public boolean flagfree;// if true it is free 55 | 56 | public double finishtime; 57 | 58 | public boolean isFree() { 59 | return flagfree; 60 | } 61 | 62 | @Override 63 | public int compareTo(Object arg0) { 64 | NetworkVm hs = (NetworkVm) arg0; 65 | if (hs.finishtime > finishtime) { 66 | return -1; 67 | } 68 | if (hs.finishtime < finishtime) { 69 | return 1; 70 | } 71 | return 0; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/PowerDatacenterBroker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power; 10 | 11 | import org.cloudbus.cloudsim.DatacenterBroker; 12 | import org.cloudbus.cloudsim.core.CloudSim; 13 | import org.cloudbus.cloudsim.core.CloudSimTags; 14 | import org.cloudbus.cloudsim.core.SimEvent; 15 | 16 | /** 17 | * A broker for the power package. 18 | * 19 | * If you are using any algorithms, policies or workload included in the power package please cite 20 | * the following paper: 21 | * 22 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 23 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 24 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 25 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 26 | * 27 | * @author Anton Beloglazov 28 | * @since CloudSim Toolkit 2.0 29 | */ 30 | public class PowerDatacenterBroker extends DatacenterBroker { 31 | 32 | /** 33 | * Instantiates a new power datacenter broker. 34 | * 35 | * @param name the name 36 | * @throws Exception the exception 37 | */ 38 | public PowerDatacenterBroker(String name) throws Exception { 39 | super(name); 40 | } 41 | 42 | /* 43 | * (non-Javadoc) 44 | * @see 45 | * org.cloudbus.cloudsim.DatacenterBroker#processVmCreate(org.cloudbus.cloudsim.core.SimEvent) 46 | */ 47 | @Override 48 | protected void processVmCreate(SimEvent ev) { 49 | int[] data = (int[]) ev.getData(); 50 | int result = data[2]; 51 | 52 | if (result != CloudSimTags.TRUE) { 53 | int datacenterId = data[0]; 54 | int vmId = data[1]; 55 | System.out.println(CloudSim.clock() + ": " + getName() + ": Creation of VM #" + vmId 56 | + " failed in Datacenter #" + datacenterId); 57 | System.exit(0); 58 | } 59 | super.processVmCreate(ev); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/sources/org/cloudbus/cloudsim/power/models/PowerModelSpecPower.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: CloudSim Toolkit 3 | * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds 4 | * Licence: GPL - http://www.gnu.org/copyleft/gpl.html 5 | * 6 | * Copyright (c) 2009-2012, The University of Melbourne, Australia 7 | */ 8 | 9 | package org.cloudbus.cloudsim.power.models; 10 | 11 | /** 12 | * The abstract class of power models created based on data from SPECpower benchmark: 13 | * http://www.spec.org/power_ssj2008/ 14 | * 15 | * If you are using any algorithms, policies or workload included in the power package, please cite 16 | * the following paper: 17 | * 18 | * Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive 19 | * Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in 20 | * Cloud Data Centers", Concurrency and Computation: Practice and Experience (CCPE), Volume 24, 21 | * Issue 13, Pages: 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012 22 | * 23 | * @author Anton Beloglazov 24 | * @since CloudSim Toolkit 3.0 25 | */ 26 | public abstract class PowerModelSpecPower implements PowerModel { 27 | 28 | /* 29 | * (non-Javadoc) 30 | * @see org.cloudbus.cloudsim.power.models.PowerModel#getPower(double) 31 | */ 32 | @Override 33 | public double getPower(double utilization) throws IllegalArgumentException { 34 | if (utilization < 0 || utilization > 1) { 35 | throw new IllegalArgumentException("Utilization value must be between 0 and 1"); 36 | } 37 | if (utilization % 0.1 == 0) { 38 | return getPowerData((int) (utilization * 10)); 39 | } 40 | int utilization1 = (int) Math.floor(utilization * 10); 41 | int utilization2 = (int) Math.ceil(utilization * 10); 42 | double power1 = getPowerData(utilization1); 43 | double power2 = getPowerData(utilization2); 44 | double delta = (power2 - power1) / 10; 45 | double power = power1 + delta * (utilization - (double) utilization1 / 10) * 100; 46 | return power; 47 | } 48 | 49 | /** 50 | * Gets the power data. 51 | * 52 | * @param index the index 53 | * @return the power data 54 | */ 55 | protected abstract double getPowerData(int index); 56 | 57 | } 58 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110303/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 0 4 | 2 5 | 2 6 | 1 7 | 6 8 | 3 9 | 3 10 | 2 11 | 2 12 | 3 13 | 0 14 | 3 15 | 1 16 | 2 17 | 1 18 | 1 19 | 0 20 | 0 21 | 0 22 | 2 23 | 4 24 | 1 25 | 2 26 | 4 27 | 1 28 | 3 29 | 1 30 | 2 31 | 1 32 | 3 33 | 10 34 | 3 35 | 0 36 | 1 37 | 2 38 | 2 39 | 1 40 | 3 41 | 0 42 | 1 43 | 0 44 | 1 45 | 3 46 | 1 47 | 0 48 | 0 49 | 0 50 | 0 51 | 1 52 | 1 53 | 0 54 | 2 55 | 2 56 | 1 57 | 0 58 | 2 59 | 1 60 | 1 61 | 2 62 | 2 63 | 1 64 | 1 65 | 5 66 | 0 67 | 1 68 | 1 69 | 1 70 | 0 71 | 1 72 | 3 73 | 1 74 | 1 75 | 2 76 | 1 77 | 1 78 | 0 79 | 1 80 | 2 81 | 0 82 | 0 83 | 2 84 | 1 85 | 0 86 | 1 87 | 1 88 | 0 89 | 0 90 | 0 91 | 0 92 | 4 93 | 3 94 | 1 95 | 0 96 | 8 97 | 2 98 | 1 99 | 0 100 | 0 101 | 1 102 | 3 103 | 1 104 | 1 105 | 0 106 | 1 107 | 0 108 | 1 109 | 2 110 | 1 111 | 1 112 | 1 113 | 0 114 | 0 115 | 3 116 | 1 117 | 1 118 | 2 119 | 0 120 | 1 121 | 2 122 | 0 123 | 1 124 | 1 125 | 6 126 | 1 127 | 1 128 | 1 129 | 1 130 | 0 131 | 0 132 | 0 133 | 1 134 | 3 135 | 0 136 | 1 137 | 1 138 | 2 139 | 1 140 | 2 141 | 0 142 | 0 143 | 0 144 | 1 145 | 0 146 | 0 147 | 3 148 | 2 149 | 0 150 | 0 151 | 1 152 | 1 153 | 2 154 | 0 155 | 1 156 | 2 157 | 2 158 | 1 159 | 5 160 | 1 161 | 0 162 | 0 163 | 2 164 | 2 165 | 0 166 | 1 167 | 0 168 | 1 169 | 0 170 | 0 171 | 2 172 | 3 173 | 2 174 | 1 175 | 1 176 | 2 177 | 0 178 | 0 179 | 0 180 | 1 181 | 1 182 | 0 183 | 0 184 | 1 185 | 1 186 | 0 187 | 0 188 | 2 189 | 1 190 | 0 191 | 1 192 | 0 193 | 2 194 | 1 195 | 0 196 | 1 197 | 5 198 | 0 199 | 1 200 | 3 201 | 1 202 | 1 203 | 0 204 | 0 205 | 0 206 | 4 207 | 1 208 | 2 209 | 2 210 | 1 211 | 0 212 | 0 213 | 1 214 | 1 215 | 1 216 | 1 217 | 1 218 | 1 219 | 1 220 | 1 221 | 1 222 | 0 223 | 0 224 | 1 225 | 1 226 | 2 227 | 1 228 | 1 229 | 1 230 | 0 231 | 1 232 | 0 233 | 1 234 | 4 235 | 1 236 | 0 237 | 1 238 | 2 239 | 1 240 | 1 241 | 0 242 | 2 243 | 0 244 | 2 245 | 1 246 | 0 247 | 3 248 | 0 249 | 1 250 | 0 251 | 1 252 | 0 253 | 1 254 | 1 255 | 1 256 | 0 257 | 0 258 | 1 259 | 0 260 | 0 261 | 0 262 | 2 263 | 0 264 | 1 265 | 0 266 | 0 267 | 0 268 | 2 269 | 0 270 | 3 271 | 0 272 | 1 273 | 1 274 | 0 275 | 0 276 | 1 277 | 0 278 | 0 279 | 2 280 | 1 281 | 1 282 | 1 283 | 3 284 | 1 285 | 0 286 | 1 287 | 1 288 | 1 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110303/pl4_unm_edu_uw_trs2: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 1 5 | 1 6 | 0 7 | 2 8 | 1 9 | 2 10 | 0 11 | 1 12 | 2 13 | 1 14 | 1 15 | 1 16 | 1 17 | 3 18 | 2 19 | 1 20 | 4 21 | 4 22 | 1 23 | 0 24 | 2 25 | 1 26 | 0 27 | 0 28 | 2 29 | 1 30 | 1 31 | 0 32 | 1 33 | 1 34 | 1 35 | 2 36 | 1 37 | 1 38 | 1 39 | 1 40 | 1 41 | 0 42 | 1 43 | 1 44 | 1 45 | 1 46 | 0 47 | 1 48 | 1 49 | 1 50 | 1 51 | 1 52 | 1 53 | 2 54 | 1 55 | 1 56 | 2 57 | 1 58 | 0 59 | 0 60 | 1 61 | 0 62 | 1 63 | 1 64 | 1 65 | 2 66 | 0 67 | 0 68 | 3 69 | 0 70 | 0 71 | 2 72 | 2 73 | 1 74 | 1 75 | 0 76 | 0 77 | 1 78 | 2 79 | 3 80 | 0 81 | 0 82 | 0 83 | 0 84 | 2 85 | 1 86 | 2 87 | 2 88 | 0 89 | 0 90 | 0 91 | 0 92 | 1 93 | 1 94 | 1 95 | 0 96 | 0 97 | 0 98 | 1 99 | 0 100 | 0 101 | 1 102 | 1 103 | 1 104 | 2 105 | 2 106 | 1 107 | 2 108 | 1 109 | 1 110 | 0 111 | 0 112 | 4 113 | 2 114 | 1 115 | 1 116 | 1 117 | 0 118 | 0 119 | 1 120 | 1 121 | 0 122 | 1 123 | 5 124 | 2 125 | 2 126 | 0 127 | 1 128 | 2 129 | 2 130 | 1 131 | 0 132 | 1 133 | 7 134 | 2 135 | 2 136 | 0 137 | 1 138 | 3 139 | 2 140 | 1 141 | 2 142 | 1 143 | 1 144 | 1 145 | 0 146 | 0 147 | 1 148 | 1 149 | 0 150 | 2 151 | 1 152 | 1 153 | 3 154 | 0 155 | 1 156 | 3 157 | 1 158 | 2 159 | 0 160 | 1 161 | 0 162 | 1 163 | 1 164 | 0 165 | 1 166 | 1 167 | 2 168 | 2 169 | 0 170 | 1 171 | 1 172 | 0 173 | 1 174 | 1 175 | 0 176 | 1 177 | 0 178 | 5 179 | 5 180 | 9 181 | 8 182 | 4 183 | 1 184 | 4 185 | 9 186 | 9 187 | 10 188 | 2 189 | 0 190 | 1 191 | 1 192 | 0 193 | 2 194 | 1 195 | 1 196 | 3 197 | 0 198 | 4 199 | 1 200 | 1 201 | 3 202 | 1 203 | 0 204 | 2 205 | 2 206 | 1 207 | 1 208 | 2 209 | 0 210 | 2 211 | 0 212 | 0 213 | 1 214 | 0 215 | 1 216 | 0 217 | 0 218 | 0 219 | 0 220 | 1 221 | 0 222 | 1 223 | 0 224 | 1 225 | 2 226 | 0 227 | 0 228 | 0 229 | 1 230 | 0 231 | 2 232 | 1 233 | 1 234 | 0 235 | 0 236 | 2 237 | 0 238 | 1 239 | 1 240 | 0 241 | 0 242 | 1 243 | 2 244 | 0 245 | 1 246 | 0 247 | 1 248 | 0 249 | 2 250 | 0 251 | 0 252 | 0 253 | 0 254 | 1 255 | 0 256 | 1 257 | 2 258 | 0 259 | 1 260 | 0 261 | 0 262 | 0 263 | 0 264 | 2 265 | 1 266 | 1 267 | 2 268 | 0 269 | 0 270 | 0 271 | 1 272 | 1 273 | 0 274 | 1 275 | 0 276 | 1 277 | 0 278 | 3 279 | 2 280 | 0 281 | 0 282 | 0 283 | 0 284 | 1 285 | 1 286 | 1 287 | 1 288 | 1 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110306/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 0 3 | 1 4 | 0 5 | 1 6 | 1 7 | 0 8 | 3 9 | 0 10 | 0 11 | 0 12 | 1 13 | 0 14 | 1 15 | 0 16 | 3 17 | 0 18 | 0 19 | 1 20 | 1 21 | 1 22 | 1 23 | 0 24 | 0 25 | 4 26 | 2 27 | 1 28 | 0 29 | 0 30 | 2 31 | 2 32 | 0 33 | 0 34 | 0 35 | 2 36 | 1 37 | 3 38 | 1 39 | 1 40 | 1 41 | 1 42 | 0 43 | 0 44 | 1 45 | 0 46 | 2 47 | 0 48 | 1 49 | 1 50 | 1 51 | 1 52 | 3 53 | 1 54 | 0 55 | 2 56 | 1 57 | 0 58 | 2 59 | 0 60 | 1 61 | 0 62 | 0 63 | 1 64 | 0 65 | 1 66 | 0 67 | 0 68 | 0 69 | 1 70 | 0 71 | 1 72 | 0 73 | 1 74 | 0 75 | 0 76 | 2 77 | 1 78 | 0 79 | 0 80 | 0 81 | 0 82 | 1 83 | 0 84 | 1 85 | 2 86 | 1 87 | 0 88 | 3 89 | 1 90 | 0 91 | 2 92 | 2 93 | 0 94 | 1 95 | 0 96 | 0 97 | 0 98 | 0 99 | 3 100 | 1 101 | 1 102 | 1 103 | 0 104 | 2 105 | 1 106 | 0 107 | 0 108 | 0 109 | 1 110 | 3 111 | 0 112 | 1 113 | 2 114 | 1 115 | 1 116 | 1 117 | 2 118 | 1 119 | 0 120 | 0 121 | 1 122 | 0 123 | 3 124 | 3 125 | 0 126 | 0 127 | 0 128 | 1 129 | 1 130 | 1 131 | 0 132 | 0 133 | 1 134 | 0 135 | 0 136 | 0 137 | 1 138 | 0 139 | 1 140 | 5 141 | 2 142 | 0 143 | 1 144 | 1 145 | 1 146 | 2 147 | 1 148 | 5 149 | 4 150 | 5 151 | 1 152 | 0 153 | 0 154 | 6 155 | 4 156 | 0 157 | 1 158 | 5 159 | 1 160 | 1 161 | 5 162 | 3 163 | 2 164 | 5 165 | 2 166 | 5 167 | 2 168 | 1 169 | 1 170 | 6 171 | 2 172 | 5 173 | 5 174 | 1 175 | 0 176 | 1 177 | 2 178 | 0 179 | 1 180 | 3 181 | 3 182 | 0 183 | 1 184 | 1 185 | 3 186 | 1 187 | 0 188 | 3 189 | 2 190 | 3 191 | 1 192 | 3 193 | 4 194 | 0 195 | 0 196 | 4 197 | 4 198 | 1 199 | 1 200 | 1 201 | 1 202 | 0 203 | 1 204 | 1 205 | 0 206 | 2 207 | 2 208 | 1 209 | 1 210 | 1 211 | 0 212 | 0 213 | 1 214 | 2 215 | 0 216 | 1 217 | 1 218 | 0 219 | 0 220 | 1 221 | 1 222 | 1 223 | 1 224 | 1 225 | 0 226 | 2 227 | 0 228 | 1 229 | 0 230 | 0 231 | 0 232 | 0 233 | 1 234 | 0 235 | 1 236 | 0 237 | 0 238 | 1 239 | 0 240 | 1 241 | 1 242 | 0 243 | 0 244 | 0 245 | 0 246 | 2 247 | 0 248 | 0 249 | 2 250 | 0 251 | 0 252 | 0 253 | 0 254 | 3 255 | 0 256 | 1 257 | 0 258 | 0 259 | 0 260 | 0 261 | 0 262 | 1 263 | 1 264 | 5 265 | 0 266 | 1 267 | 0 268 | 1 269 | 3 270 | 3 271 | 1 272 | 0 273 | 0 274 | 1 275 | 3 276 | 1 277 | 1 278 | 7 279 | 0 280 | 0 281 | 1 282 | 0 283 | 0 284 | 2 285 | 0 286 | 0 287 | 0 288 | 0 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110306/pl4_unm_edu_uw_trs2: -------------------------------------------------------------------------------- 1 | 1 2 | 4 3 | 0 4 | 0 5 | 1 6 | 0 7 | 1 8 | 1 9 | 0 10 | 0 11 | 0 12 | 1 13 | 0 14 | 1 15 | 1 16 | 3 17 | 1 18 | 0 19 | 3 20 | 0 21 | 1 22 | 1 23 | 1 24 | 0 25 | 4 26 | 1 27 | 0 28 | 1 29 | 1 30 | 1 31 | 2 32 | 0 33 | 1 34 | 1 35 | 1 36 | 1 37 | 1 38 | 1 39 | 0 40 | 0 41 | 0 42 | 0 43 | 3 44 | 1 45 | 0 46 | 1 47 | 1 48 | 1 49 | 3 50 | 0 51 | 0 52 | 1 53 | 3 54 | 0 55 | 4 56 | 2 57 | 3 58 | 0 59 | 0 60 | 0 61 | 5 62 | 1 63 | 3 64 | 0 65 | 1 66 | 0 67 | 0 68 | 0 69 | 2 70 | 0 71 | 0 72 | 0 73 | 1 74 | 1 75 | 0 76 | 1 77 | 2 78 | 1 79 | 3 80 | 0 81 | 0 82 | 5 83 | 1 84 | 3 85 | 2 86 | 1 87 | 1 88 | 1 89 | 0 90 | 1 91 | 2 92 | 1 93 | 1 94 | 1 95 | 3 96 | 4 97 | 5 98 | 0 99 | 1 100 | 0 101 | 3 102 | 1 103 | 1 104 | 1 105 | 4 106 | 1 107 | 1 108 | 1 109 | 0 110 | 0 111 | 0 112 | 4 113 | 1 114 | 1 115 | 1 116 | 3 117 | 2 118 | 3 119 | 3 120 | 1 121 | 1 122 | 1 123 | 3 124 | 1 125 | 1 126 | 5 127 | 4 128 | 3 129 | 5 130 | 1 131 | 1 132 | 0 133 | 2 134 | 1 135 | 1 136 | 0 137 | 1 138 | 2 139 | 1 140 | 1 141 | 1 142 | 4 143 | 1 144 | 1 145 | 1 146 | 1 147 | 3 148 | 0 149 | 2 150 | 2 151 | 1 152 | 1 153 | 1 154 | 1 155 | 3 156 | 1 157 | 1 158 | 1 159 | 1 160 | 1 161 | 1 162 | 0 163 | 2 164 | 3 165 | 2 166 | 5 167 | 4 168 | 0 169 | 1 170 | 0 171 | 3 172 | 1 173 | 2 174 | 1 175 | 0 176 | 3 177 | 1 178 | 0 179 | 0 180 | 1 181 | 1 182 | 0 183 | 6 184 | 1 185 | 3 186 | 0 187 | 1 188 | 1 189 | 2 190 | 2 191 | 1 192 | 1 193 | 2 194 | 1 195 | 0 196 | 4 197 | 1 198 | 1 199 | 0 200 | 0 201 | 2 202 | 4 203 | 2 204 | 2 205 | 0 206 | 4 207 | 1 208 | 2 209 | 1 210 | 0 211 | 1 212 | 0 213 | 1 214 | 1 215 | 1 216 | 2 217 | 0 218 | 5 219 | 3 220 | 1 221 | 1 222 | 2 223 | 2 224 | 1 225 | 1 226 | 2 227 | 1 228 | 1 229 | 2 230 | 1 231 | 1 232 | 0 233 | 1 234 | 1 235 | 2 236 | 1 237 | 2 238 | 1 239 | 4 240 | 1 241 | 0 242 | 4 243 | 1 244 | 1 245 | 1 246 | 0 247 | 2 248 | 3 249 | 1 250 | 1 251 | 2 252 | 9 253 | 1 254 | 1 255 | 1 256 | 4 257 | 3 258 | 1 259 | 1 260 | 3 261 | 2 262 | 1 263 | 4 264 | 4 265 | 1 266 | 0 267 | 6 268 | 2 269 | 0 270 | 1 271 | 1 272 | 0 273 | 1 274 | 1 275 | 0 276 | 1 277 | 1 278 | 3 279 | 4 280 | 2 281 | 2 282 | 4 283 | 1 284 | 5 285 | 3 286 | 2 287 | 2 288 | 4 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110309/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 0 3 | 3 4 | 2 5 | 2 6 | 1 7 | 1 8 | 0 9 | 2 10 | 1 11 | 0 12 | 0 13 | 1 14 | 0 15 | 1 16 | 1 17 | 3 18 | 0 19 | 1 20 | 1 21 | 0 22 | 1 23 | 0 24 | 1 25 | 1 26 | 0 27 | 0 28 | 2 29 | 0 30 | 1 31 | 0 32 | 0 33 | 1 34 | 0 35 | 0 36 | 1 37 | 0 38 | 0 39 | 0 40 | 3 41 | 1 42 | 2 43 | 1 44 | 0 45 | 1 46 | 1 47 | 1 48 | 1 49 | 2 50 | 2 51 | 1 52 | 3 53 | 0 54 | 2 55 | 0 56 | 2 57 | 1 58 | 1 59 | 1 60 | 1 61 | 0 62 | 0 63 | 0 64 | 0 65 | 0 66 | 1 67 | 0 68 | 1 69 | 1 70 | 0 71 | 0 72 | 0 73 | 4 74 | 2 75 | 1 76 | 1 77 | 1 78 | 1 79 | 0 80 | 0 81 | 1 82 | 0 83 | 0 84 | 0 85 | 1 86 | 0 87 | 0 88 | 3 89 | 0 90 | 1 91 | 1 92 | 1 93 | 1 94 | 0 95 | 0 96 | 1 97 | 1 98 | 1 99 | 0 100 | 1 101 | 1 102 | 0 103 | 2 104 | 0 105 | 2 106 | 4 107 | 1 108 | 0 109 | 1 110 | 2 111 | 3 112 | 1 113 | 0 114 | 2 115 | 8 116 | 2 117 | 0 118 | 3 119 | 2 120 | 1 121 | 1 122 | 3 123 | 3 124 | 2 125 | 0 126 | 1 127 | 2 128 | 1 129 | 1 130 | 1 131 | 2 132 | 1 133 | 1 134 | 0 135 | 2 136 | 1 137 | 0 138 | 0 139 | 2 140 | 1 141 | 2 142 | 0 143 | 3 144 | 1 145 | 0 146 | 0 147 | 1 148 | 0 149 | 3 150 | 0 151 | 0 152 | 1 153 | 2 154 | 0 155 | 1 156 | 4 157 | 3 158 | 1 159 | 0 160 | 0 161 | 0 162 | 0 163 | 1 164 | 0 165 | 0 166 | 1 167 | 0 168 | 1 169 | 1 170 | 1 171 | 0 172 | 0 173 | 2 174 | 1 175 | 1 176 | 0 177 | 1 178 | 1 179 | 4 180 | 0 181 | 1 182 | 0 183 | 1 184 | 1 185 | 0 186 | 3 187 | 1 188 | 3 189 | 1 190 | 0 191 | 4 192 | 0 193 | 0 194 | 1 195 | 6 196 | 1 197 | 1 198 | 2 199 | 2 200 | 1 201 | 1 202 | 1 203 | 2 204 | 1 205 | 2 206 | 0 207 | 1 208 | 1 209 | 1 210 | 0 211 | 1 212 | 3 213 | 0 214 | 1 215 | 2 216 | 1 217 | 1 218 | 1 219 | 1 220 | 0 221 | 0 222 | 0 223 | 0 224 | 1 225 | 1 226 | 0 227 | 1 228 | 1 229 | 1 230 | 0 231 | 1 232 | 0 233 | 1 234 | 0 235 | 0 236 | 0 237 | 0 238 | 1 239 | 1 240 | 0 241 | 0 242 | 0 243 | 3 244 | 0 245 | 0 246 | 1 247 | 0 248 | 1 249 | 1 250 | 0 251 | 0 252 | 1 253 | 2 254 | 1 255 | 0 256 | 0 257 | 1 258 | 0 259 | 0 260 | 1 261 | 0 262 | 0 263 | 0 264 | 1 265 | 0 266 | 0 267 | 1 268 | 1 269 | 1 270 | 1 271 | 1 272 | 2 273 | 0 274 | 1 275 | 0 276 | 0 277 | 0 278 | 0 279 | 1 280 | 0 281 | 0 282 | 0 283 | 0 284 | 1 285 | 1 286 | 0 287 | 1 288 | 1 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110309/pl4_unm_edu_uw_trs2: -------------------------------------------------------------------------------- 1 | 2 2 | 2 3 | 3 4 | 2 5 | 0 6 | 1 7 | 2 8 | 1 9 | 1 10 | 1 11 | 2 12 | 3 13 | 1 14 | 1 15 | 0 16 | 1 17 | 1 18 | 1 19 | 1 20 | 2 21 | 0 22 | 1 23 | 2 24 | 1 25 | 2 26 | 6 27 | 1 28 | 4 29 | 2 30 | 0 31 | 0 32 | 1 33 | 2 34 | 3 35 | 3 36 | 1 37 | 1 38 | 1 39 | 3 40 | 0 41 | 0 42 | 1 43 | 0 44 | 6 45 | 1 46 | 1 47 | 2 48 | 2 49 | 2 50 | 1 51 | 6 52 | 2 53 | 2 54 | 4 55 | 1 56 | 1 57 | 0 58 | 6 59 | 2 60 | 0 61 | 3 62 | 1 63 | 2 64 | 2 65 | 1 66 | 2 67 | 1 68 | 2 69 | 1 70 | 4 71 | 5 72 | 2 73 | 2 74 | 3 75 | 0 76 | 1 77 | 1 78 | 1 79 | 1 80 | 2 81 | 1 82 | 4 83 | 1 84 | 2 85 | 0 86 | 1 87 | 6 88 | 1 89 | 3 90 | 1 91 | 7 92 | 2 93 | 1 94 | 1 95 | 2 96 | 1 97 | 1 98 | 1 99 | 0 100 | 2 101 | 1 102 | 0 103 | 0 104 | 1 105 | 2 106 | 1 107 | 3 108 | 2 109 | 1 110 | 1 111 | 3 112 | 1 113 | 2 114 | 2 115 | 3 116 | 0 117 | 1 118 | 4 119 | 1 120 | 2 121 | 1 122 | 3 123 | 1 124 | 1 125 | 3 126 | 1 127 | 3 128 | 3 129 | 1 130 | 2 131 | 2 132 | 3 133 | 1 134 | 1 135 | 2 136 | 2 137 | 2 138 | 2 139 | 1 140 | 1 141 | 1 142 | 0 143 | 1 144 | 1 145 | 1 146 | 1 147 | 2 148 | 1 149 | 2 150 | 1 151 | 1 152 | 1 153 | 0 154 | 1 155 | 1 156 | 1 157 | 0 158 | 0 159 | 0 160 | 2 161 | 2 162 | 0 163 | 0 164 | 0 165 | 1 166 | 2 167 | 1 168 | 3 169 | 5 170 | 1 171 | 1 172 | 1 173 | 1 174 | 1 175 | 1 176 | 1 177 | 1 178 | 2 179 | 1 180 | 1 181 | 1 182 | 1 183 | 2 184 | 2 185 | 0 186 | 3 187 | 3 188 | 1 189 | 0 190 | 0 191 | 0 192 | 0 193 | 3 194 | 1 195 | 2 196 | 2 197 | 1 198 | 1 199 | 0 200 | 2 201 | 3 202 | 1 203 | 2 204 | 2 205 | 1 206 | 1 207 | 2 208 | 4 209 | 1 210 | 3 211 | 1 212 | 5 213 | 0 214 | 0 215 | 1 216 | 2 217 | 5 218 | 1 219 | 2 220 | 2 221 | 0 222 | 1 223 | 2 224 | 0 225 | 0 226 | 0 227 | 3 228 | 1 229 | 2 230 | 1 231 | 4 232 | 4 233 | 2 234 | 0 235 | 3 236 | 1 237 | 2 238 | 0 239 | 1 240 | 1 241 | 3 242 | 2 243 | 2 244 | 2 245 | 6 246 | 1 247 | 1 248 | 2 249 | 0 250 | 3 251 | 1 252 | 2 253 | 2 254 | 1 255 | 1 256 | 0 257 | 3 258 | 1 259 | 0 260 | 0 261 | 5 262 | 0 263 | 3 264 | 1 265 | 2 266 | 1 267 | 1 268 | 1 269 | 1 270 | 1 271 | 1 272 | 1 273 | 5 274 | 2 275 | 1 276 | 1 277 | 1 278 | 0 279 | 2 280 | 1 281 | 1 282 | 0 283 | 0 284 | 0 285 | 0 286 | 0 287 | 2 288 | 0 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110322/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 3 3 | 1 4 | 1 5 | 1 6 | 2 7 | 1 8 | 3 9 | 1 10 | 1 11 | 0 12 | 2 13 | 0 14 | 4 15 | 1 16 | 2 17 | 3 18 | 1 19 | 3 20 | 0 21 | 1 22 | 1 23 | 0 24 | 0 25 | 3 26 | 3 27 | 1 28 | 0 29 | 0 30 | 1 31 | 0 32 | 0 33 | 0 34 | 1 35 | 0 36 | 1 37 | 1 38 | 3 39 | 3 40 | 1 41 | 4 42 | 1 43 | 4 44 | 1 45 | 1 46 | 1 47 | 4 48 | 3 49 | 1 50 | 1 51 | 5 52 | 1 53 | 0 54 | 0 55 | 0 56 | 0 57 | 1 58 | 1 59 | 1 60 | 1 61 | 0 62 | 1 63 | 1 64 | 1 65 | 1 66 | 4 67 | 1 68 | 1 69 | 4 70 | 1 71 | 0 72 | 1 73 | 0 74 | 3 75 | 1 76 | 0 77 | 2 78 | 0 79 | 1 80 | 10 81 | 1 82 | 1 83 | 1 84 | 1 85 | 3 86 | 2 87 | 3 88 | 3 89 | 6 90 | 3 91 | 1 92 | 3 93 | 3 94 | 0 95 | 1 96 | 2 97 | 3 98 | 7 99 | 2 100 | 1 101 | 1 102 | 1 103 | 1 104 | 0 105 | 0 106 | 1 107 | 1 108 | 1 109 | 1 110 | 0 111 | 0 112 | 1 113 | 6 114 | 4 115 | 3 116 | 4 117 | 0 118 | 2 119 | 1 120 | 0 121 | 1 122 | 3 123 | 0 124 | 1 125 | 4 126 | 3 127 | 1 128 | 1 129 | 1 130 | 1 131 | 3 132 | 0 133 | 0 134 | 4 135 | 3 136 | 0 137 | 0 138 | 1 139 | 3 140 | 1 141 | 0 142 | 1 143 | 4 144 | 0 145 | 4 146 | 1 147 | 1 148 | 3 149 | 3 150 | 0 151 | 0 152 | 2 153 | 3 154 | 1 155 | 2 156 | 1 157 | 1 158 | 1 159 | 1 160 | 1 161 | 1 162 | 1 163 | 0 164 | 3 165 | 1 166 | 4 167 | 4 168 | 0 169 | 0 170 | 0 171 | 1 172 | 2 173 | 1 174 | 1 175 | 1 176 | 0 177 | 1 178 | 2 179 | 2 180 | 3 181 | 2 182 | 1 183 | 1 184 | 2 185 | 0 186 | 3 187 | 1 188 | 1 189 | 1 190 | 2 191 | 1 192 | 2 193 | 4 194 | 1 195 | 1 196 | 2 197 | 2 198 | 3 199 | 1 200 | 1 201 | 1 202 | 1 203 | 2 204 | 0 205 | 0 206 | 1 207 | 1 208 | 3 209 | 1 210 | 1 211 | 0 212 | 0 213 | 1 214 | 2 215 | 0 216 | 1 217 | 0 218 | 0 219 | 0 220 | 4 221 | 0 222 | 1 223 | 1 224 | 2 225 | 3 226 | 0 227 | 2 228 | 0 229 | 1 230 | 3 231 | 0 232 | 1 233 | 1 234 | 3 235 | 1 236 | 1 237 | 0 238 | 1 239 | 0 240 | 0 241 | 0 242 | 1 243 | 1 244 | 0 245 | 0 246 | 1 247 | 0 248 | 1 249 | 1 250 | 1 251 | 0 252 | 0 253 | 4 254 | 1 255 | 3 256 | 1 257 | 1 258 | 1 259 | 0 260 | 3 261 | 0 262 | 0 263 | 0 264 | 1 265 | 1 266 | 0 267 | 0 268 | 1 269 | 0 270 | 1 271 | 1 272 | 3 273 | 3 274 | 0 275 | 4 276 | 0 277 | 1 278 | 8 279 | 1 280 | 1 281 | 3 282 | 1 283 | 3 284 | 1 285 | 0 286 | 1 287 | 1 288 | 0 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110325/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 1 5 | 1 6 | 2 7 | 1 8 | 0 9 | 2 10 | 0 11 | 1 12 | 1 13 | 0 14 | 0 15 | 0 16 | 1 17 | 1 18 | 3 19 | 1 20 | 1 21 | 1 22 | 1 23 | 4 24 | 1 25 | 2 26 | 2 27 | 3 28 | 2 29 | 4 30 | 1 31 | 1 32 | 2 33 | 1 34 | 3 35 | 1 36 | 1 37 | 1 38 | 1 39 | 2 40 | 3 41 | 1 42 | 3 43 | 1 44 | 1 45 | 1 46 | 4 47 | 1 48 | 1 49 | 2 50 | 2 51 | 1 52 | 1 53 | 0 54 | 2 55 | 1 56 | 1 57 | 2 58 | 0 59 | 5 60 | 3 61 | 1 62 | 0 63 | 0 64 | 0 65 | 1 66 | 0 67 | 1 68 | 8 69 | 0 70 | 1 71 | 0 72 | 0 73 | 1 74 | 1 75 | 3 76 | 0 77 | 7 78 | 0 79 | 3 80 | 0 81 | 0 82 | 1 83 | 0 84 | 0 85 | 1 86 | 0 87 | 1 88 | 1 89 | 6 90 | 1 91 | 1 92 | 0 93 | 0 94 | 1 95 | 1 96 | 4 97 | 2 98 | 2 99 | 0 100 | 4 101 | 4 102 | 3 103 | 2 104 | 3 105 | 0 106 | 3 107 | 2 108 | 1 109 | 1 110 | 7 111 | 2 112 | 0 113 | 1 114 | 1 115 | 1 116 | 1 117 | 1 118 | 2 119 | 0 120 | 4 121 | 1 122 | 4 123 | 1 124 | 1 125 | 6 126 | 1 127 | 0 128 | 4 129 | 4 130 | 0 131 | 2 132 | 1 133 | 3 134 | 0 135 | 1 136 | 5 137 | 1 138 | 4 139 | 2 140 | 2 141 | 1 142 | 0 143 | 3 144 | 2 145 | 1 146 | 1 147 | 2 148 | 0 149 | 1 150 | 1 151 | 1 152 | 0 153 | 1 154 | 1 155 | 3 156 | 0 157 | 0 158 | 1 159 | 3 160 | 1 161 | 0 162 | 0 163 | 4 164 | 0 165 | 0 166 | 1 167 | 1 168 | 0 169 | 1 170 | 1 171 | 0 172 | 1 173 | 1 174 | 1 175 | 2 176 | 1 177 | 0 178 | 1 179 | 4 180 | 0 181 | 1 182 | 0 183 | 2 184 | 1 185 | 0 186 | 1 187 | 0 188 | 1 189 | 0 190 | 0 191 | 1 192 | 1 193 | 1 194 | 3 195 | 1 196 | 0 197 | 0 198 | 0 199 | 0 200 | 1 201 | 0 202 | 1 203 | 1 204 | 1 205 | 0 206 | 2 207 | 0 208 | 0 209 | 1 210 | 1 211 | 1 212 | 1 213 | 2 214 | 3 215 | 1 216 | 1 217 | 0 218 | 1 219 | 0 220 | 3 221 | 3 222 | 0 223 | 2 224 | 4 225 | 1 226 | 1 227 | 0 228 | 1 229 | 1 230 | 5 231 | 0 232 | 0 233 | 1 234 | 1 235 | 0 236 | 0 237 | 1 238 | 1 239 | 1 240 | 5 241 | 0 242 | 0 243 | 3 244 | 3 245 | 4 246 | 1 247 | 0 248 | 1 249 | 1 250 | 2 251 | 0 252 | 0 253 | 1 254 | 1 255 | 3 256 | 5 257 | 8 258 | 1 259 | 1 260 | 3 261 | 1 262 | 1 263 | 1 264 | 3 265 | 2 266 | 0 267 | 0 268 | 1 269 | 0 270 | 7 271 | 1 272 | 2 273 | 0 274 | 0 275 | 9 276 | 4 277 | 0 278 | 1 279 | 0 280 | 0 281 | 1 282 | 1 283 | 1 284 | 0 285 | 2 286 | 0 287 | 0 288 | 0 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110403/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 1 5 | 1 6 | 6 7 | 2 8 | 1 9 | 1 10 | 2 11 | 7 12 | 1 13 | 2 14 | 0 15 | 2 16 | 1 17 | 0 18 | 1 19 | 2 20 | 3 21 | 1 22 | 1 23 | 0 24 | 1 25 | 1 26 | 4 27 | 2 28 | 2 29 | 3 30 | 1 31 | 1 32 | 1 33 | 1 34 | 1 35 | 1 36 | 1 37 | 3 38 | 3 39 | 3 40 | 0 41 | 0 42 | 2 43 | 5 44 | 1 45 | 3 46 | 1 47 | 2 48 | 0 49 | 2 50 | 3 51 | 2 52 | 1 53 | 1 54 | 6 55 | 2 56 | 0 57 | 0 58 | 2 59 | 1 60 | 1 61 | 1 62 | 1 63 | 3 64 | 0 65 | 0 66 | 1 67 | 0 68 | 4 69 | 1 70 | 0 71 | 2 72 | 1 73 | 0 74 | 0 75 | 1 76 | 1 77 | 5 78 | 1 79 | 1 80 | 0 81 | 0 82 | 0 83 | 3 84 | 0 85 | 1 86 | 0 87 | 2 88 | 0 89 | 1 90 | 0 91 | 0 92 | 1 93 | 0 94 | 0 95 | 2 96 | 1 97 | 1 98 | 1 99 | 1 100 | 4 101 | 1 102 | 3 103 | 0 104 | 1 105 | 1 106 | 1 107 | 0 108 | 3 109 | 1 110 | 2 111 | 1 112 | 4 113 | 1 114 | 4 115 | 1 116 | 1 117 | 0 118 | 4 119 | 4 120 | 4 121 | 0 122 | 4 123 | 7 124 | 1 125 | 4 126 | 5 127 | 2 128 | 2 129 | 11 130 | 0 131 | 1 132 | 0 133 | 4 134 | 0 135 | 4 136 | 1 137 | 1 138 | 2 139 | 2 140 | 0 141 | 4 142 | 1 143 | 3 144 | 1 145 | 4 146 | 0 147 | 1 148 | 4 149 | 1 150 | 2 151 | 1 152 | 5 153 | 1 154 | 1 155 | 1 156 | 1 157 | 1 158 | 1 159 | 2 160 | 1 161 | 3 162 | 0 163 | 1 164 | 0 165 | 1 166 | 1 167 | 0 168 | 4 169 | 0 170 | 4 171 | 1 172 | 2 173 | 0 174 | 4 175 | 1 176 | 2 177 | 1 178 | 4 179 | 1 180 | 1 181 | 1 182 | 4 183 | 1 184 | 0 185 | 2 186 | 1 187 | 2 188 | 0 189 | 2 190 | 1 191 | 1 192 | 1 193 | 0 194 | 8 195 | 0 196 | 2 197 | 1 198 | 1 199 | 1 200 | 2 201 | 4 202 | 4 203 | 1 204 | 0 205 | 0 206 | 1 207 | 1 208 | 0 209 | 1 210 | 4 211 | 2 212 | 0 213 | 0 214 | 2 215 | 4 216 | 1 217 | 1 218 | 0 219 | 1 220 | 1 221 | 1 222 | 2 223 | 3 224 | 0 225 | 1 226 | 1 227 | 1 228 | 1 229 | 0 230 | 0 231 | 0 232 | 1 233 | 3 234 | 0 235 | 1 236 | 2 237 | 1 238 | 0 239 | 2 240 | 2 241 | 1 242 | 3 243 | 5 244 | 2 245 | 0 246 | 1 247 | 1 248 | 1 249 | 1 250 | 1 251 | 1 252 | 2 253 | 1 254 | 0 255 | 0 256 | 1 257 | 2 258 | 0 259 | 1 260 | 3 261 | 1 262 | 1 263 | 2 264 | 4 265 | 2 266 | 1 267 | 2 268 | 3 269 | 3 270 | 5 271 | 2 272 | 4 273 | 1 274 | 3 275 | 0 276 | 2 277 | 4 278 | 1 279 | 1 280 | 1 281 | 3 282 | 1 283 | 1 284 | 1 285 | 2 286 | 1 287 | 2 288 | 4 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110403/pl4_unm_edu_root: -------------------------------------------------------------------------------- 1 | 1 2 | 0 3 | 0 4 | 2 5 | 1 6 | 3 7 | 1 8 | 1 9 | 3 10 | 0 11 | 3 12 | 3 13 | 2 14 | 1 15 | 1 16 | 1 17 | 0 18 | 1 19 | 0 20 | 5 21 | 2 22 | 1 23 | 1 24 | 6 25 | 1 26 | 0 27 | 3 28 | 1 29 | 3 30 | 0 31 | 1 32 | 1 33 | 6 34 | 4 35 | 3 36 | 2 37 | 3 38 | 1 39 | 6 40 | 1 41 | 1 42 | 1 43 | 5 44 | 2 45 | 1 46 | 1 47 | 1 48 | 8 49 | 2 50 | 2 51 | 1 52 | 2 53 | 2 54 | 3 55 | 1 56 | 1 57 | 2 58 | 3 59 | 5 60 | 10 61 | 0 62 | 0 63 | 1 64 | 2 65 | 1 66 | 1 67 | 1 68 | 2 69 | 2 70 | 0 71 | 1 72 | 1 73 | 0 74 | 1 75 | 15 76 | 1 77 | 2 78 | 1 79 | 1 80 | 2 81 | 1 82 | 1 83 | 9 84 | 1 85 | 1 86 | 2 87 | 3 88 | 0 89 | 4 90 | 3 91 | 1 92 | 1 93 | 0 94 | 2 95 | 2 96 | 4 97 | 9 98 | 1 99 | 1 100 | 2 101 | 3 102 | 1 103 | 0 104 | 1 105 | 1 106 | 0 107 | 1 108 | 1 109 | 2 110 | 0 111 | 1 112 | 4 113 | 0 114 | 4 115 | 2 116 | 0 117 | 0 118 | 0 119 | 1 120 | 2 121 | 1 122 | 0 123 | 3 124 | 1 125 | 2 126 | 2 127 | 1 128 | 5 129 | 1 130 | 1 131 | 1 132 | 1 133 | 2 134 | 1 135 | 6 136 | 3 137 | 0 138 | 4 139 | 1 140 | 0 141 | 1 142 | 1 143 | 3 144 | 2 145 | 4 146 | 0 147 | 3 148 | 1 149 | 0 150 | 2 151 | 1 152 | 1 153 | 8 154 | 1 155 | 1 156 | 0 157 | 1 158 | 7 159 | 1 160 | 1 161 | 1 162 | 2 163 | 1 164 | 2 165 | 0 166 | 3 167 | 1 168 | 2 169 | 2 170 | 0 171 | 3 172 | 2 173 | 2 174 | 1 175 | 1 176 | 1 177 | 1 178 | 2 179 | 0 180 | 1 181 | 0 182 | 4 183 | 1 184 | 2 185 | 2 186 | 4 187 | 1 188 | 0 189 | 4 190 | 0 191 | 3 192 | 0 193 | 2 194 | 2 195 | 2 196 | 0 197 | 2 198 | 1 199 | 2 200 | 1 201 | 0 202 | 1 203 | 1 204 | 9 205 | 1 206 | 2 207 | 0 208 | 0 209 | 1 210 | 0 211 | 0 212 | 3 213 | 1 214 | 0 215 | 2 216 | 1 217 | 2 218 | 1 219 | 0 220 | 2 221 | 3 222 | 0 223 | 0 224 | 3 225 | 0 226 | 0 227 | 0 228 | 1 229 | 5 230 | 0 231 | 7 232 | 1 233 | 0 234 | 2 235 | 1 236 | 2 237 | 1 238 | 1 239 | 1 240 | 0 241 | 1 242 | 0 243 | 5 244 | 1 245 | 9 246 | 1 247 | 1 248 | 1 249 | 1 250 | 1 251 | 1 252 | 2 253 | 1 254 | 1 255 | 2 256 | 1 257 | 0 258 | 1 259 | 0 260 | 0 261 | 1 262 | 3 263 | 0 264 | 1 265 | 0 266 | 1 267 | 14 268 | 3 269 | 1 270 | 3 271 | 5 272 | 1 273 | 0 274 | 3 275 | 7 276 | 1 277 | 0 278 | 0 279 | 0 280 | 0 281 | 1 282 | 1 283 | 0 284 | 5 285 | 1 286 | 1 287 | 2 288 | 1 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110411/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 0 5 | 4 6 | 5 7 | 1 8 | 3 9 | 0 10 | 0 11 | 1 12 | 1 13 | 2 14 | 2 15 | 3 16 | 0 17 | 4 18 | 4 19 | 1 20 | 2 21 | 1 22 | 2 23 | 3 24 | 2 25 | 1 26 | 3 27 | 4 28 | 3 29 | 1 30 | 2 31 | 2 32 | 3 33 | 2 34 | 1 35 | 4 36 | 1 37 | 3 38 | 4 39 | 5 40 | 1 41 | 2 42 | 0 43 | 0 44 | 1 45 | 3 46 | 1 47 | 1 48 | 3 49 | 6 50 | 1 51 | 1 52 | 1 53 | 2 54 | 1 55 | 2 56 | 2 57 | 1 58 | 2 59 | 1 60 | 0 61 | 1 62 | 0 63 | 2 64 | 3 65 | 0 66 | 0 67 | 1 68 | 1 69 | 3 70 | 1 71 | 1 72 | 2 73 | 2 74 | 6 75 | 3 76 | 3 77 | 3 78 | 0 79 | 1 80 | 1 81 | 1 82 | 0 83 | 3 84 | 2 85 | 2 86 | 1 87 | 1 88 | 4 89 | 1 90 | 1 91 | 3 92 | 2 93 | 1 94 | 1 95 | 0 96 | 6 97 | 0 98 | 1 99 | 1 100 | 2 101 | 1 102 | 1 103 | 1 104 | 1 105 | 4 106 | 1 107 | 2 108 | 2 109 | 5 110 | 1 111 | 5 112 | 1 113 | 6 114 | 4 115 | 1 116 | 3 117 | 1 118 | 2 119 | 2 120 | 6 121 | 3 122 | 2 123 | 6 124 | 1 125 | 1 126 | 1 127 | 0 128 | 4 129 | 3 130 | 4 131 | 3 132 | 2 133 | 2 134 | 1 135 | 2 136 | 1 137 | 4 138 | 1 139 | 3 140 | 3 141 | 5 142 | 3 143 | 0 144 | 1 145 | 7 146 | 1 147 | 3 148 | 3 149 | 1 150 | 3 151 | 1 152 | 3 153 | 3 154 | 4 155 | 0 156 | 1 157 | 2 158 | 7 159 | 3 160 | 4 161 | 0 162 | 1 163 | 2 164 | 4 165 | 5 166 | 0 167 | 5 168 | 3 169 | 1 170 | 2 171 | 3 172 | 2 173 | 4 174 | 1 175 | 4 176 | 3 177 | 1 178 | 4 179 | 6 180 | 2 181 | 3 182 | 1 183 | 1 184 | 2 185 | 1 186 | 4 187 | 1 188 | 2 189 | 0 190 | 3 191 | 1 192 | 1 193 | 0 194 | 3 195 | 0 196 | 4 197 | 0 198 | 4 199 | 0 200 | 1 201 | 1 202 | 2 203 | 1 204 | 1 205 | 0 206 | 1 207 | 0 208 | 3 209 | 1 210 | 1 211 | 1 212 | 2 213 | 1 214 | 1 215 | 4 216 | 0 217 | 1 218 | 5 219 | 1 220 | 1 221 | 1 222 | 0 223 | 1 224 | 1 225 | 1 226 | 1 227 | 1 228 | 0 229 | 5 230 | 2 231 | 1 232 | 1 233 | 1 234 | 0 235 | 1 236 | 10 237 | 0 238 | 1 239 | 1 240 | 1 241 | 1 242 | 1 243 | 3 244 | 0 245 | 1 246 | 1 247 | 1 248 | 3 249 | 1 250 | 1 251 | 0 252 | 1 253 | 1 254 | 3 255 | 1 256 | 0 257 | 1 258 | 3 259 | 0 260 | 1 261 | 1 262 | 1 263 | 0 264 | 3 265 | 1 266 | 4 267 | 0 268 | 1 269 | 1 270 | 1 271 | 1 272 | 1 273 | 0 274 | 1 275 | 0 276 | 1 277 | 0 278 | 7 279 | 0 280 | 1 281 | 1 282 | 3 283 | 3 284 | 14 285 | 1 286 | 2 287 | 1 288 | 3 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110411/pl4_unm_edu_uw_trs2: -------------------------------------------------------------------------------- 1 | 2 2 | 1 3 | 2 4 | 0 5 | 2 6 | 0 7 | 1 8 | 0 9 | 1 10 | 0 11 | 0 12 | 0 13 | 0 14 | 0 15 | 1 16 | 1 17 | 0 18 | 1 19 | 1 20 | 1 21 | 0 22 | 1 23 | 3 24 | 3 25 | 1 26 | 2 27 | 1 28 | 1 29 | 0 30 | 0 31 | 2 32 | 1 33 | 3 34 | 1 35 | 2 36 | 1 37 | 0 38 | 0 39 | 0 40 | 0 41 | 0 42 | 0 43 | 1 44 | 1 45 | 0 46 | 0 47 | 0 48 | 1 49 | 3 50 | 1 51 | 1 52 | 2 53 | 2 54 | 0 55 | 1 56 | 0 57 | 1 58 | 1 59 | 1 60 | 0 61 | 1 62 | 1 63 | 2 64 | 1 65 | 1 66 | 0 67 | 1 68 | 4 69 | 1 70 | 5 71 | 1 72 | 3 73 | 0 74 | 0 75 | 1 76 | 0 77 | 1 78 | 0 79 | 1 80 | 1 81 | 0 82 | 0 83 | 1 84 | 0 85 | 1 86 | 2 87 | 0 88 | 1 89 | 0 90 | 1 91 | 1 92 | 1 93 | 1 94 | 1 95 | 1 96 | 0 97 | 2 98 | 0 99 | 1 100 | 0 101 | 2 102 | 0 103 | 1 104 | 1 105 | 3 106 | 3 107 | 0 108 | 3 109 | 1 110 | 3 111 | 1 112 | 0 113 | 1 114 | 0 115 | 0 116 | 3 117 | 0 118 | 1 119 | 0 120 | 1 121 | 1 122 | 2 123 | 0 124 | 1 125 | 1 126 | 1 127 | 1 128 | 0 129 | 0 130 | 0 131 | 0 132 | 0 133 | 0 134 | 1 135 | 0 136 | 1 137 | 0 138 | 1 139 | 1 140 | 0 141 | 2 142 | 5 143 | 0 144 | 1 145 | 2 146 | 0 147 | 3 148 | 1 149 | 0 150 | 0 151 | 0 152 | 3 153 | 1 154 | 0 155 | 0 156 | 1 157 | 1 158 | 2 159 | 1 160 | 1 161 | 1 162 | 0 163 | 2 164 | 2 165 | 2 166 | 1 167 | 1 168 | 2 169 | 0 170 | 0 171 | 1 172 | 1 173 | 0 174 | 0 175 | 0 176 | 3 177 | 0 178 | 0 179 | 0 180 | 2 181 | 1 182 | 1 183 | 1 184 | 2 185 | 0 186 | 2 187 | 1 188 | 0 189 | 0 190 | 1 191 | 3 192 | 1 193 | 2 194 | 1 195 | 2 196 | 1 197 | 1 198 | 1 199 | 0 200 | 1 201 | 0 202 | 0 203 | 1 204 | 1 205 | 1 206 | 0 207 | 1 208 | 1 209 | 1 210 | 0 211 | 1 212 | 1 213 | 1 214 | 1 215 | 1 216 | 1 217 | 0 218 | 2 219 | 1 220 | 3 221 | 1 222 | 1 223 | 1 224 | 1 225 | 1 226 | 1 227 | 0 228 | 1 229 | 2 230 | 1 231 | 1 232 | 1 233 | 4 234 | 0 235 | 1 236 | 2 237 | 0 238 | 0 239 | 1 240 | 0 241 | 0 242 | 1 243 | 1 244 | 1 245 | 1 246 | 0 247 | 0 248 | 1 249 | 0 250 | 4 251 | 1 252 | 1 253 | 5 254 | 0 255 | 0 256 | 0 257 | 1 258 | 1 259 | 1 260 | 1 261 | 0 262 | 0 263 | 1 264 | 2 265 | 1 266 | 0 267 | 1 268 | 0 269 | 3 270 | 0 271 | 1 272 | 1 273 | 3 274 | 1 275 | 0 276 | 1 277 | 1 278 | 0 279 | 1 280 | 1 281 | 0 282 | 0 283 | 0 284 | 0 285 | 1 286 | 4 287 | 3 288 | 2 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110412/pl4_unm_edu_nyu_d: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 1 5 | 0 6 | 1 7 | 1 8 | 4 9 | 0 10 | 0 11 | 1 12 | 0 13 | 1 14 | 2 15 | 3 16 | 1 17 | 1 18 | 3 19 | 1 20 | 1 21 | 1 22 | 1 23 | 1 24 | 2 25 | 0 26 | 3 27 | 1 28 | 3 29 | 3 30 | 0 31 | 1 32 | 3 33 | 3 34 | 1 35 | 3 36 | 4 37 | 1 38 | 1 39 | 3 40 | 4 41 | 0 42 | 1 43 | 1 44 | 1 45 | 0 46 | 1 47 | 3 48 | 1 49 | 0 50 | 1 51 | 3 52 | 1 53 | 0 54 | 1 55 | 1 56 | 2 57 | 1 58 | 0 59 | 2 60 | 1 61 | 3 62 | 0 63 | 1 64 | 0 65 | 1 66 | 1 67 | 1 68 | 1 69 | 3 70 | 1 71 | 2 72 | 0 73 | 2 74 | 3 75 | 2 76 | 4 77 | 4 78 | 1 79 | 0 80 | 1 81 | 1 82 | 2 83 | 0 84 | 3 85 | 0 86 | 1 87 | 1 88 | 1 89 | 1 90 | 1 91 | 4 92 | 1 93 | 3 94 | 0 95 | 3 96 | 6 97 | 0 98 | 1 99 | 4 100 | 1 101 | 1 102 | 1 103 | 1 104 | 3 105 | 1 106 | 2 107 | 3 108 | 0 109 | 1 110 | 4 111 | 1 112 | 1 113 | 1 114 | 2 115 | 1 116 | 2 117 | 1 118 | 5 119 | 2 120 | 6 121 | 1 122 | 2 123 | 3 124 | 1 125 | 0 126 | 4 127 | 1 128 | 2 129 | 1 130 | 1 131 | 3 132 | 0 133 | 1 134 | 3 135 | 0 136 | 2 137 | 1 138 | 1 139 | 2 140 | 0 141 | 1 142 | 2 143 | 3 144 | 1 145 | 1 146 | 3 147 | 1 148 | 3 149 | 4 150 | 1 151 | 6 152 | 2 153 | 0 154 | 5 155 | 2 156 | 2 157 | 4 158 | 1 159 | 1 160 | 0 161 | 2 162 | 3 163 | 1 164 | 2 165 | 1 166 | 5 167 | 1 168 | 2 169 | 0 170 | 1 171 | 1 172 | 2 173 | 1 174 | 2 175 | 1 176 | 4 177 | 0 178 | 1 179 | 0 180 | 1 181 | 0 182 | 1 183 | 6 184 | 0 185 | 0 186 | 4 187 | 5 188 | 4 189 | 0 190 | 2 191 | 3 192 | 2 193 | 3 194 | 1 195 | 6 196 | 1 197 | 2 198 | 0 199 | 0 200 | 1 201 | 1 202 | 1 203 | 0 204 | 4 205 | 0 206 | 1 207 | 3 208 | 1 209 | 0 210 | 0 211 | 2 212 | 1 213 | 1 214 | 1 215 | 0 216 | 0 217 | 1 218 | 2 219 | 3 220 | 1 221 | 1 222 | 1 223 | 3 224 | 0 225 | 1 226 | 1 227 | 2 228 | 1 229 | 0 230 | 4 231 | 1 232 | 6 233 | 1 234 | 5 235 | 1 236 | 0 237 | 1 238 | 1 239 | 1 240 | 0 241 | 1 242 | 0 243 | 1 244 | 3 245 | 1 246 | 3 247 | 2 248 | 3 249 | 1 250 | 3 251 | 0 252 | 0 253 | 2 254 | 2 255 | 0 256 | 1 257 | 1 258 | 1 259 | 1 260 | 0 261 | 1 262 | 0 263 | 0 264 | 0 265 | 0 266 | 1 267 | 1 268 | 0 269 | 3 270 | 0 271 | 1 272 | 0 273 | 2 274 | 1 275 | 2 276 | 1 277 | 0 278 | 1 279 | 1 280 | 1 281 | 2 282 | 1 283 | 1 284 | 1 285 | 1 286 | 1 287 | 1 288 | 1 289 | -------------------------------------------------------------------------------- /cloudsim-3.0.3/bin/workload/planetlab/20110412/pl4_unm_edu_uw_trs2: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | 0 4 | 0 5 | 0 6 | 1 7 | 1 8 | 1 9 | 5 10 | 1 11 | 0 12 | 0 13 | 1 14 | 1 15 | 1 16 | 0 17 | 0 18 | 0 19 | 1 20 | 1 21 | 1 22 | 0 23 | 3 24 | 0 25 | 0 26 | 0 27 | 1 28 | 1 29 | 1 30 | 1 31 | 0 32 | 1 33 | 0 34 | 0 35 | 1 36 | 0 37 | 6 38 | 0 39 | 1 40 | 1 41 | 0 42 | 0 43 | 0 44 | 0 45 | 1 46 | 3 47 | 0 48 | 1 49 | 0 50 | 0 51 | 0 52 | 0 53 | 0 54 | 1 55 | 0 56 | 1 57 | 1 58 | 4 59 | 0 60 | 1 61 | 0 62 | 1 63 | 0 64 | 0 65 | 0 66 | 0 67 | 1 68 | 0 69 | 1 70 | 0 71 | 0 72 | 2 73 | 2 74 | 1 75 | 1 76 | 0 77 | 2 78 | 0 79 | 0 80 | 1 81 | 0 82 | 1 83 | 1 84 | 0 85 | 0 86 | 1 87 | 2 88 | 6 89 | 7 90 | 9 91 | 1 92 | 4 93 | 6 94 | 4 95 | 1 96 | 3 97 | 0 98 | 0 99 | 1 100 | 1 101 | 1 102 | 1 103 | 1 104 | 1 105 | 0 106 | 0 107 | 1 108 | 0 109 | 0 110 | 1 111 | 0 112 | 1 113 | 1 114 | 2 115 | 2 116 | 0 117 | 3 118 | 3 119 | 2 120 | 0 121 | 0 122 | 1 123 | 1 124 | 1 125 | 1 126 | 1 127 | 1 128 | 2 129 | 0 130 | 0 131 | 1 132 | 3 133 | 2 134 | 3 135 | 0 136 | 9 137 | 4 138 | 0 139 | 1 140 | 0 141 | 7 142 | 4 143 | 2 144 | 0 145 | 0 146 | 0 147 | 1 148 | 1 149 | 1 150 | 1 151 | 6 152 | 1 153 | 1 154 | 6 155 | 5 156 | 3 157 | 0 158 | 4 159 | 3 160 | 6 161 | 1 162 | 6 163 | 5 164 | 4 165 | 2 166 | 1 167 | 1 168 | 1 169 | 1 170 | 1 171 | 1 172 | 1 173 | 1 174 | 1 175 | 0 176 | 1 177 | 0 178 | 2 179 | 0 180 | 1 181 | 1 182 | 0 183 | 0 184 | 2 185 | 1 186 | 8 187 | 8 188 | 6 189 | 5 190 | 6 191 | 5 192 | 3 193 | 2 194 | 1 195 | 0 196 | 14 197 | 3 198 | 0 199 | 3 200 | 0 201 | 5 202 | 4 203 | 1 204 | 1 205 | 0 206 | 1 207 | 1 208 | 2 209 | 1 210 | 1 211 | 2 212 | 1 213 | 0 214 | 1 215 | 0 216 | 1 217 | 0 218 | 0 219 | 1 220 | 2 221 | 4 222 | 1 223 | 1 224 | 1 225 | 0 226 | 0 227 | 1 228 | 2 229 | 1 230 | 0 231 | 1 232 | 1 233 | 1 234 | 1 235 | 1 236 | 0 237 | 1 238 | 0 239 | 3 240 | 1 241 | 3 242 | 6 243 | 2 244 | 3 245 | 4 246 | 0 247 | 7 248 | 1 249 | 1 250 | 1 251 | 1 252 | 2 253 | 0 254 | 2 255 | 1 256 | 1 257 | 1 258 | 1 259 | 1 260 | 0 261 | 1 262 | 0 263 | 0 264 | 2 265 | 0 266 | 1 267 | 2 268 | 0 269 | 1 270 | 1 271 | 0 272 | 1 273 | 0 274 | 0 275 | 0 276 | 1 277 | 2 278 | 1 279 | 1 280 | 0 281 | 1 282 | 0 283 | 2 284 | 3 285 | 0 286 | 0 287 | 1 288 | 0 289 | --------------------------------------------------------------------------------