Commit 4bc2a775 authored by Benardi's avatar Benardi
Browse files

Merge branch 'sla-simulation' of...

Merge branch 'sla-simulation' of https://git.lsd.ufcg.edu.br/lenovo-autonomic/cloudsimplus into sla-simulation
parents dd92310e a207c6af
cloudlet-id,status,datacenter-id,host-id,host-pes-cpu-cores,vm-id,vm-pes-cpu-cores,cloudlet-len-mi-cpu,cloudlet-len-mi-iops,cloudlet-iops-fragmentation,cloudlet-pes-cpu-cores,start-time-secs,finish-time-secs,exec-time-secs
0,SUCCESS,1,0,160,0,1,1,1000,63.66542801502484,1,10.0,40.032,31
cloudlet-id,status,datacenter-id,host-id,host-pes-cpu-cores,vm-id,vm-pes-cpu-cores,cloudlet-len-mi-cpu,cloudlet-len-mi-iops,cloudlet-iops-fragmentation,cloudlet-pes-cpu-cores,start-time-secs,finish-time-secs,exec-time-secs
0,SUCCESS,1,0,160,0,1,1,1000,67.8128758955171,1,10.0,970.9619999999993,961
time,cloudlet-id,current-sla-violation,cumulative-sla-violation,vm-credit,
0,0,0,0,0.0
60,0,0,0,-0.26262626262626265
120,0,0,0,-0.8080808080808078
180,0,0,0,-1.3535353535353536
240,0,0,0,-1.8989898989899
300,0,0,0,-2.444444444444445
360,0,0,0,-2.98989898989899
420,0,0,0,-3.535353535353535
480,0,0,0,-4.08080808080808
540,0,0,0,-4.626262626262625
600,0,0,0,-5.17171717171717
660,0,0,0,-5.717171717171715
720,0,0,0,-6.26262626262626
780,0,0,0,-6.808080808080805
840,0,0,0,-7.35353535353535
900,0,0,0,-7.898989898989895
960,0,0,0,-8.444444444444445
......@@ -100,8 +100,8 @@ public class SlaExploitationSimulation {
public static void main(String[] args) {
//PATH = args[0];
SLA_TIGHT_HOSTS = 1;
SLA_LOOSE_HOSTS = 0;
SLA_TIGHT_HOSTS = 0;
SLA_LOOSE_HOSTS = 1;
HOST_IOPS = 500;
MINIMUM_IOPS = 100;
LOW_AVAILABILITY = 99;
......@@ -226,7 +226,7 @@ public class SlaExploitationSimulation {
final List<Vm> list = new ArrayList<Vm>(VMS);
for (int i = 0; i < VMS; i++) {
Vm vm = new VmSimple(i, VM_MIPS, VM_PES).setRam(VM_RAM).setBw(VM_BW).setSize(VM_STORAGE)
.setIops(VM_IOPS).setCloudletScheduler(new CloudletSchedulerSpaceShared());
.setIops(VM_IOPS).setCloudletScheduler(new CloudletSchedulerTimeShared());
vm.setContract(contract);
list.add(vm);
}
......
......@@ -660,7 +660,7 @@ public abstract class CloudletSchedulerAbstract implements CloudletScheduler {
final long requested = (long)getCloudletIopsAbsoluteUtilization(cloudlet);
if(requested > iops.getAvailableResource()){
Log.printFormattedLine(
"%.2f: %s: %s requested %d MB of RAM but just %d was available and allocated to it.",
"%.2f: %s: %s requested %d MB of IOPS but just %d was available and allocated to it.",
vm.getSimulation().clock(), getClass().getSimpleName(), cloudlet, requested, iops.getAvailableResource());
}
iops.allocateResource(Math.min(requested, iops.getAvailableResource()));
......
......@@ -42,6 +42,7 @@ public class UtilizationModelUneven extends UtilizationModelAbstract {
setUpperLimit(upper_limit);
setHistory(new HashMap<Double, Double>());
setProbGenerator(new UniformDistr(0, 1, seed));
this.setUnit(Unit.ABSOLUTE);
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment