Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Cavalcante
cloudsimplus
Commits
cc949283
Commit
cc949283
authored
Jul 19, 2018
by
Eduardo Falcão
Browse files
adjusting utilization model uneven to always absolute
parent
a4078f12
Changes
7
Hide whitespace changes
Inline
Side-by-side
cloudsim-plus-examples/nullcloudlets-tight0-loose1-hostIops500-slaMinIops100-slaLowAvail99.0-VmsNumber1-cloudletsNumber1-cloudletsTotalIops1000-vmIops100-migration10.csv
0 → 100644
View file @
cc949283
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
cloudsim-plus-examples/nullcloudlets-tight1-loose0-hostIops500-slaMinIops100-slaLowAvail99.0-VmsNumber1-cloudletsNumber1-cloudletsTotalIops1000-vmIops100-migration10.csv
0 → 100644
View file @
cc949283
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
cloudsim-plus-examples/nullsla-tight0-loose1-hostIops500-slaMinIops100-slaLowAvail99.0-VmsNumber1-cloudletsNumber1-cloudletsTotalIops1000-vmIops100-migration10.csv
0 → 100644
View file @
cc949283
time,cloudlet-id,current-sla-violation,cumulative-sla-violation,vm-credit,
0,0,0,0,0.0
cloudsim-plus-examples/nullsla-tight1-loose0-hostIops500-slaMinIops100-slaLowAvail99.0-VmsNumber1-cloudletsNumber1-cloudletsTotalIops1000-vmIops100-migration10.csv
0 → 100644
View file @
cc949283
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
cloudsim-plus-examples/src/main/java/org/cloudbus/cloudsim/examples/autonomic/simulations/SlaExploitationSimulation.java
View file @
cc949283
...
...
@@ -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
CloudletScheduler
Spac
eShared
());
.
setIops
(
VM_IOPS
).
setCloudletScheduler
(
new
CloudletScheduler
Tim
eShared
());
vm
.
setContract
(
contract
);
list
.
add
(
vm
);
}
...
...
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerAbstract.java
View file @
cc949283
...
...
@@ -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
()));
...
...
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/utilizationmodels/UtilizationModelUneven.java
View file @
cc949283
...
...
@@ -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
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment