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
96510cb0
Commit
96510cb0
authored
Jan 06, 2012
by
Anton Beloglazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
ad94c8aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Constants.java
.../java/org/cloudbus/cloudsim/examples/power/Constants.java
+1
-1
VmSchedulerTimeSharedOverSubscription.java
...udbus/cloudsim/VmSchedulerTimeSharedOverSubscription.java
+4
-1
No files found.
modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/power/Constants.java
View file @
96510cb0
...
@@ -10,7 +10,7 @@ public class Constants {
...
@@ -10,7 +10,7 @@ public class Constants {
public
final
static
boolean
OUTPUT_CSV
=
false
;
public
final
static
boolean
OUTPUT_CSV
=
false
;
public
final
static
double
SCHEDULING_INTERVAL
=
300
;
public
final
static
double
SCHEDULING_INTERVAL
=
300
;
public
final
static
double
SIMULATION_LIMIT
=
24
*
60
;
public
final
static
double
SIMULATION_LIMIT
=
24
*
60
*
60
;
public
final
static
int
CLOUDLET_LENGTH
=
2500
*
(
int
)
SIMULATION_LIMIT
;
public
final
static
int
CLOUDLET_LENGTH
=
2500
*
(
int
)
SIMULATION_LIMIT
;
public
final
static
int
CLOUDLET_PES
=
1
;
public
final
static
int
CLOUDLET_PES
=
1
;
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/VmSchedulerTimeSharedOverSubscription.java
View file @
96510cb0
...
@@ -19,6 +19,9 @@ import org.cloudbus.cloudsim.util.MathUtil;
...
@@ -19,6 +19,9 @@ import org.cloudbus.cloudsim.util.MathUtil;
* still allows the allocation of VMs that require more CPU capacity that is available.
* still allows the allocation of VMs that require more CPU capacity that is available.
* Oversubscription results in performance degradation. Each virtual PE cannot be allocated more CPU
* Oversubscription results in performance degradation. Each virtual PE cannot be allocated more CPU
* capacity than MIPS of a single PE.
* capacity than MIPS of a single PE.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
*/
public
class
VmSchedulerTimeSharedOverSubscription
extends
VmSchedulerTimeShared
{
public
class
VmSchedulerTimeSharedOverSubscription
extends
VmSchedulerTimeShared
{
...
@@ -123,7 +126,7 @@ public class VmSchedulerTimeSharedOverSubscription extends VmSchedulerTimeShared
...
@@ -123,7 +126,7 @@ public class VmSchedulerTimeSharedOverSubscription extends VmSchedulerTimeShared
}
else
if
(
getVmsMigratingIn
().
contains
(
vmUid
))
{
}
else
if
(
getVmsMigratingIn
().
contains
(
vmUid
))
{
// the destination host only experiences 10% of the migrating VM's MIPS
// the destination host only experiences 10% of the migrating VM's MIPS
mips
*=
0.1
;
mips
*=
0.1
;
// the final 10% are scaled
// the final 10%
of the requested MIPS
are scaled
mips
*=
scalingFactor
;
mips
*=
scalingFactor
;
}
else
{
}
else
{
mips
*=
scalingFactor
;
mips
*=
scalingFactor
;
...
...
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