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
dbf5b821
Commit
dbf5b821
authored
Jan 05, 2012
by
Anton Beloglazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the DVFS example for a random workload
parent
8297be13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
Dvfs.java
...ava/org/cloudbus/cloudsim/examples/power/random/Dvfs.java
+19
-13
No files found.
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/power/random/Dvfs.java
View file @
dbf5b821
...
@@ -3,20 +3,26 @@ package org.cloudbus.cloudsim.examples.power.random;
...
@@ -3,20 +3,26 @@ package org.cloudbus.cloudsim.examples.power.random;
import
java.io.IOException
;
import
java.io.IOException
;
/**
/**
* A simulation of a heterogeneous non-power aware data center: all hosts consume maximum power all
* A simulation of a heterogeneous power aware data center that only applied DVFS, but no dynamic
* the time.
* optimization of the VM allocation. The adjustment of the hosts' power consumption according to
* their CPU utilization is happening in the PowerDatacenter class.
*
* @author Anton Beloglazov
* @since Jan 5, 2012
*/
*/
public
class
Dvfs
extends
RandomRunnerAbstract
{
public
class
Dvfs
extends
RandomRunnerAbstract
{
/**
/**
* @param enableOutput
* Instantiates a new dvfs.
* @param outputToFile
*
* @param inputFolder
* @param enableOutput the enable output
* @param outputFolder
* @param outputToFile the output to file
* @param workload
* @param inputFolder the input folder
* @param vmAllocationPolicy
* @param outputFolder the output folder
* @param vmSelectionPolicy
* @param workload the workload
* @param parameter
* @param vmAllocationPolicy the vm allocation policy
* @param vmSelectionPolicy the vm selection policy
* @param parameter the parameter
*/
*/
public
Dvfs
(
public
Dvfs
(
boolean
enableOutput
,
boolean
enableOutput
,
...
@@ -39,10 +45,10 @@ public class Dvfs extends RandomRunnerAbstract {
...
@@ -39,10 +45,10 @@ public class Dvfs extends RandomRunnerAbstract {
}
}
/**
/**
*
Creates main() to run this example
.
*
The main method
.
*
*
* @param args the args
* @param args the arg
ument
s
* @throws IOException
* @throws IOException
Signals that an I/O exception has occurred.
*/
*/
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
boolean
enableOutput
=
true
;
boolean
enableOutput
=
true
;
...
...
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