Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LPDS
gpucloudsim
Commits
d4f7bbbe
Commit
d4f7bbbe
authored
Dec 15, 2011
by
rodrigo.calheiros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in Datacenter: one initial update step was been skipped, what caused
maufunctions in the schedulers.
parent
07dc14dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CloudSimExample6.java
...java/org/cloudbus/cloudsim/examples/CloudSimExample6.java
+2
-2
Datacenter.java
...udsim/src/main/java/org/cloudbus/cloudsim/Datacenter.java
+3
-1
No files found.
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/CloudSimExample6.java
View file @
d4f7bbbe
...
@@ -55,7 +55,7 @@ public class CloudSimExample6 {
...
@@ -55,7 +55,7 @@ public class CloudSimExample6 {
//VM Parameters
//VM Parameters
long
size
=
10000
;
//image size (MB)
long
size
=
10000
;
//image size (MB)
int
ram
=
512
;
//vm memory (MB)
int
ram
=
512
;
//vm memory (MB)
int
mips
=
25
0
;
int
mips
=
100
0
;
long
bw
=
1000
;
long
bw
=
1000
;
int
pesNumber
=
1
;
//number of cpus
int
pesNumber
=
1
;
//number of cpus
String
vmm
=
"Xen"
;
//VMM name
String
vmm
=
"Xen"
;
//VMM name
...
@@ -80,7 +80,7 @@ public class CloudSimExample6 {
...
@@ -80,7 +80,7 @@ public class CloudSimExample6 {
LinkedList
<
Cloudlet
>
list
=
new
LinkedList
<
Cloudlet
>();
LinkedList
<
Cloudlet
>
list
=
new
LinkedList
<
Cloudlet
>();
//cloudlet parameters
//cloudlet parameters
long
length
=
4
000
;
long
length
=
1
000
;
long
fileSize
=
300
;
long
fileSize
=
300
;
long
outputSize
=
300
;
long
outputSize
=
300
;
int
pesNumber
=
1
;
int
pesNumber
=
1
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Datacenter.java
View file @
d4f7bbbe
...
@@ -911,7 +911,9 @@ public class Datacenter extends SimEntity {
...
@@ -911,7 +911,9 @@ public class Datacenter extends SimEntity {
protected
void
updateCloudletProcessing
()
{
protected
void
updateCloudletProcessing
()
{
//Log.printLine(CloudSim.clock()+": PowerDatacenter #: updating cloudlet processing.......................................");
//Log.printLine(CloudSim.clock()+": PowerDatacenter #: updating cloudlet processing.......................................");
//if some time passed since last processing
//if some time passed since last processing
if
(
CloudSim
.
clock
()
>
this
.
getLastProcessTime
()+
0.1
)
{
//R: for term is to allow loop at simulation start. Otherwise, one initial
// simulation step is skipped and schedulers are not properly initialized
if
(
CloudSim
.
clock
()
<
0.11
||
CloudSim
.
clock
()
>
this
.
getLastProcessTime
()+
0.1
)
{
List
<?
extends
Host
>
list
=
getVmAllocationPolicy
().
getHostList
();
List
<?
extends
Host
>
list
=
getVmAllocationPolicy
().
getHostList
();
double
smallerTime
=
Double
.
MAX_VALUE
;
double
smallerTime
=
Double
.
MAX_VALUE
;
//for each host...
//for each host...
...
...
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