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
e5a09a88
Commit
e5a09a88
authored
Jul 27, 2010
by
Anton Beloglazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Removed some obsolete code
parent
3e2b37f5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
80 deletions
+5
-80
CloudletScheduler.java
...rc/main/java/org/cloudbus/cloudsim/CloudletScheduler.java
+0
-14
CloudletSchedulerDynamicWorkload.java
...g/cloudbus/cloudsim/CloudletSchedulerDynamicWorkload.java
+0
-34
VmAllocationPolicy.java
...c/main/java/org/cloudbus/cloudsim/VmAllocationPolicy.java
+0
-13
PowerDatacenter.java
...ain/java/org/cloudbus/cloudsim/power/PowerDatacenter.java
+2
-6
PowerDatacenterNonPowerAware.java
...cloudbus/cloudsim/power/PowerDatacenterNonPowerAware.java
+3
-13
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/CloudletScheduler.java
View file @
e5a09a88
...
...
@@ -193,20 +193,6 @@ public abstract class CloudletScheduler {
*/
public
abstract
List
<
Double
>
getCurrentRequestedMips
();
// /**
// * Gets the current allocated mips.
// *
// * @return the current allocated mips
// */
// public abstract List<Double> getCurrentAllocatedMips();
//
// /**
// * Gets the total current allocated mips.
// *
// * @return the total current allocated mips
// */
// public abstract double getTotalCurrentAllocatedMips();
/**
* Gets the total current mips for the Cloudlet.
*
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/CloudletSchedulerDynamicWorkload.java
View file @
e5a09a88
...
...
@@ -255,40 +255,6 @@ public class CloudletSchedulerDynamicWorkload extends CloudletSchedulerTimeShare
return
totalCurrentRequestedMips
;
}
// /* (non-Javadoc)
// * @see cloudsim.CloudletScheduler#getTotalCurrentAllocatedMips()
// */
// @Override
// public double getTotalCurrentAllocatedMips() {
// double totalAllocatedMips = 0;
// for (ResCloudlet rcl : getCloudletExecList()) {
// totalAllocatedMips += getTotalCurrentAllocatedMipsForCloudlet(rcl, getPreviousTime());
// }
// return totalAllocatedMips;
//
// }
//
// /* (non-Javadoc)
// * @see cloudsim.CloudletSchedulerTimeShared#getCurrentAllocatedMips()
// */
// @Override
// public List<Double> getCurrentAllocatedMips() {
// double totalAllocatedMips = getTotalCurrentAllocatedMips();
// List<Double> allocatedMips = new ArrayList<Double>();
// for (Double mips : getCurrentMipsShare()) {
// if (totalAllocatedMips == 0) {
// allocatedMips.add(0.0);
// } else if (totalAllocatedMips > mips) {
// allocatedMips.add(mips);
// totalAllocatedMips -= mips;
// } else {
// allocatedMips.add(totalAllocatedMips);
// totalAllocatedMips = 0;
// }
// }
// return allocatedMips;
// }
/**
* Update under allocated mips for cloudlet.
*
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/VmAllocationPolicy.java
View file @
e5a09a88
...
...
@@ -84,19 +84,6 @@ public abstract class VmAllocationPolicy {
*/
public
abstract
void
deallocateHostForVm
(
Vm
vm
);
/**
* Trigger a migration from a given virtual machine to a selected
* host.
*
* @param vm the vm
*
* @return $true if the migration succeeds; $false otherwise
*
* @pre $none
* @post $none
*/
//public abstract boolean migrateVm(Vm vm, Host destination);
/**
* Get the host that is executing the given VM belonging to the
* given user.
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/power/PowerDatacenter.java
View file @
e5a09a88
...
...
@@ -170,12 +170,8 @@ public class PowerDatacenter extends Datacenter {
// schedules an event to the next time
if
(
minTime
!=
Double
.
MAX_VALUE
)
{
// if (minTime > currentTime + 0.01 && minTime < getSchedulingInterval()) {
// send(getId(), minTime - currentTime, CloudSimTags.VM_DATACENTER_EVENT);
// } else {
CloudSim
.
cancelAll
(
getId
(),
new
PredicateType
(
CloudSimTags
.
VM_DATACENTER_EVENT
));
send
(
getId
(),
getSchedulingInterval
(),
CloudSimTags
.
VM_DATACENTER_EVENT
);
// }
CloudSim
.
cancelAll
(
getId
(),
new
PredicateType
(
CloudSimTags
.
VM_DATACENTER_EVENT
));
send
(
getId
(),
getSchedulingInterval
(),
CloudSimTags
.
VM_DATACENTER_EVENT
);
}
setLastProcessTime
(
currentTime
);
...
...
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/power/PowerDatacenterNonPowerAware.java
View file @
e5a09a88
...
...
@@ -60,11 +60,6 @@ public class PowerDatacenterNonPowerAware extends PowerDatacenter {
*/
@Override
protected
void
updateCloudletProcessing
()
{
// if (isInMigration()) {
// CloudSim.cancelAll(getId(), new PredicateType(CloudSimTags.VM_DATACENTER_EVENT));
// schedule(getId(), getSchedulingInterval(), CloudSimTags.VM_DATACENTER_EVENT);
// return;
// }
if
(
getCloudletSubmitted
()
==
-
1
||
getCloudletSubmitted
()
==
CloudSim
.
clock
())
{
CloudSim
.
cancelAll
(
getId
(),
new
PredicateType
(
CloudSimTags
.
VM_DATACENTER_EVENT
));
schedule
(
getId
(),
getSchedulingInterval
(),
CloudSimTags
.
VM_DATACENTER_EVENT
);
...
...
@@ -85,7 +80,6 @@ public class PowerDatacenterNonPowerAware extends PowerDatacenter {
double
hostPower
=
0.0
;
try
{
//hostPower = host.getPower() * timeDiff;
hostPower
=
host
.
getMaxPower
()
*
timeDiff
;
timeframePower
+=
hostPower
;
}
catch
(
Exception
e
)
{
...
...
@@ -143,18 +137,14 @@ public class PowerDatacenterNonPowerAware extends PowerDatacenter {
vm
.
setInMigration
(
true
);
/** VM migration delay = RAM / bandwidth + C (C = 10 sec) **/
send
(
getId
(),
(
double
)
vm
.
getRam
()
/
(
vm
.
getBw
()
/
8000
)
+
10
,
CloudSimTags
.
VM_MIGRATE
,
migrate
);
send
(
getId
(),
vm
.
getRam
()
/
((
double
)
vm
.
getBw
()
/
8000
)
+
10
,
CloudSimTags
.
VM_MIGRATE
,
migrate
);
}
}
// schedules an event to the next time
if
(
minTime
!=
Double
.
MAX_VALUE
)
{
// if (minTime > currentTime + 0.01 && minTime < getSchedulingInterval()) {
// send(getId(), minTime - currentTime, CloudSimTags.VM_DATACENTER_EVENT);
// } else {
CloudSim
.
cancelAll
(
getId
(),
CloudSim
.
SIM_ANY
);
send
(
getId
(),
getSchedulingInterval
(),
CloudSimTags
.
VM_DATACENTER_EVENT
);
// }
CloudSim
.
cancelAll
(
getId
(),
CloudSim
.
SIM_ANY
);
send
(
getId
(),
getSchedulingInterval
(),
CloudSimTags
.
VM_DATACENTER_EVENT
);
}
setLastProcessTime
(
currentTime
);
...
...
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