summaryrefslogtreecommitdiff
path: root/opendc-simulator/opendc-simulator-compute
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2024-08-27 13:48:46 +0200
committerGitHub <noreply@github.com>2024-08-27 13:48:46 +0200
commit3363df4c72a064e590ca98f8e01832cfa4e15a3f (patch)
tree9a938700fe08ce344ff5d0d475d0b64d7233d1fc /opendc-simulator/opendc-simulator-compute
parentc21708013f2746807f5bdb3fc47c2b47ed15b7c8 (diff)
Renamed input files and internally server is changed to task (#246)
* Updated SimTrace to use a single ArrayDeque instead of three separate lists for deadline, cpuUsage, and coreCount * Renamed input files to tasks.parquet and fragments.parquet. Renamed server to task. OpenDC nows exports tasks.parquet instead of server.parquet
Diffstat (limited to 'opendc-simulator/opendc-simulator-compute')
-rw-r--r--opendc-simulator/opendc-simulator-compute/src/main/java/org/opendc/simulator/compute/power/CpuPowerModels.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/opendc-simulator/opendc-simulator-compute/src/main/java/org/opendc/simulator/compute/power/CpuPowerModels.java b/opendc-simulator/opendc-simulator-compute/src/main/java/org/opendc/simulator/compute/power/CpuPowerModels.java
index 537fb8d8..4e62e67f 100644
--- a/opendc-simulator/opendc-simulator-compute/src/main/java/org/opendc/simulator/compute/power/CpuPowerModels.java
+++ b/opendc-simulator/opendc-simulator-compute/src/main/java/org/opendc/simulator/compute/power/CpuPowerModels.java
@@ -33,7 +33,7 @@ public class CpuPowerModels {
/**
* Construct a constant {@link CpuPowerModel}.
*
- * @param power The power consumption fo the server at all times (in W).
+ * @param power The power consumption of the host at all times (in W).
*/
public static CpuPowerModel constant(double power) {
return new ConstantPowerModel(power);
@@ -42,8 +42,8 @@ public class CpuPowerModels {
/**
* Construct a square root {@link CpuPowerModel} that is adapted from CloudSim.
*
- * @param maxPower The maximum power draw of the server in W.
- * @param idlePower The power draw of the server at its lowest utilization level in W.
+ * @param maxPower The maximum power draw of the host in W.
+ * @param idlePower The power draw of the host at its lowest utilization level in W.
*/
public static CpuPowerModel sqrt(double maxPower, double idlePower) {
return new SqrtPowerModel(maxPower, idlePower);
@@ -52,8 +52,8 @@ public class CpuPowerModels {
/**
* Construct a linear {@link CpuPowerModel} that is adapted from CloudSim.
*
- * @param maxPower The maximum power draw of the server in W.
- * @param idlePower The power draw of the server at its lowest utilization level in W.
+ * @param maxPower The maximum power draw of the host in W.
+ * @param idlePower The power draw of the host at its lowest utilization level in W.
*/
public static CpuPowerModel linear(double maxPower, double idlePower) {
return new LinearPowerModel(maxPower, idlePower);
@@ -62,8 +62,8 @@ public class CpuPowerModels {
/**
* Construct a square {@link CpuPowerModel} that is adapted from CloudSim.
*
- * @param maxPower The maximum power draw of the server in W.
- * @param idlePower The power draw of the server at its lowest utilization level in W.
+ * @param maxPower The maximum power draw of the host in W.
+ * @param idlePower The power draw of the host at its lowest utilization level in W.
*/
public static CpuPowerModel square(double maxPower, double idlePower) {
return new SquarePowerModel(maxPower, idlePower);
@@ -72,8 +72,8 @@ public class CpuPowerModels {
/**
* Construct a cubic {@link CpuPowerModel} that is adapted from CloudSim.
*
- * @param maxPower The maximum power draw of the server in W.
- * @param idlePower The power draw of the server at its lowest utilization level in W.
+ * @param maxPower The maximum power draw of the host in W.
+ * @param idlePower The power draw of the host at its lowest utilization level in W.
*/
public static CpuPowerModel cubic(double maxPower, double idlePower) {
return new CubicPowerModel(maxPower, idlePower);
@@ -83,8 +83,8 @@ public class CpuPowerModels {
* Construct a {@link CpuPowerModel} that minimizes the mean squared error (MSE)
* to the actual power measurement by tuning the calibration parameter.
*
- * @param maxPower The maximum power draw of the server in W.
- * @param idlePower The power draw of the server at its lowest utilization level in W.
+ * @param maxPower The maximum power draw of the host in W.
+ * @param idlePower The power draw of the host at its lowest utilization level in W.
* @param calibrationFactor The parameter set to minimize the MSE.
* @see <a href="https://dl.acm.org/doi/abs/10.1145/1273440.1250665">
* Fan et al., Power provisioning for a warehouse-sized computer, ACM SIGARCH'07</a>
@@ -96,9 +96,9 @@ public class CpuPowerModels {
/**
* Construct an asymptotic {@link CpuPowerModel} adapted from GreenCloud.
*
- * @param maxPower The maximum power draw of the server in W.
- * @param idlePower The power draw of the server at its lowest utilization level in W.
- * @param asymUtil A utilization level at which the server attains asymptotic,
+ * @param maxPower The maximum power draw of the host in W.
+ * @param idlePower The power draw of the host at its lowest utilization level in W.
+ * @param asymUtil A utilization level at which the host attains asymptotic,
* i.e., close to linear power consumption versus the offered load.
* For most of the CPUs,a is in [0.2, 0.5].
* @param dvfs A flag indicates whether DVFS is enabled.