diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-07-24 13:36:55 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:26 +0200 |
| commit | 382a08ea8d80563753e6bdfea1db154a4b44bf35 (patch) | |
| tree | deb9b0ed04cb39686d58b3392040cd4e5478b14c | |
| parent | bbf77c59f5b2532ebca8daf8e67012205d764b97 (diff) | |
Consider duplicate VMs for performance interference
| -rw-r--r-- | simulator/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/core/workload/PerformanceInterferenceModel.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/simulator/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/core/workload/PerformanceInterferenceModel.kt b/simulator/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/core/workload/PerformanceInterferenceModel.kt index e1f03d21..3f885f89 100644 --- a/simulator/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/core/workload/PerformanceInterferenceModel.kt +++ b/simulator/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/core/workload/PerformanceInterferenceModel.kt @@ -58,8 +58,7 @@ class PerformanceInterferenceModel( private fun doesMatch(item: PerformanceInterferenceModelItem): Boolean { var count = 0 for (name in item.workloadNames.subSet(colocatedWorkloads.firstKey(), colocatedWorkloads.lastKey() + "\u0000")) { - if (name in colocatedWorkloads) - count++ + count += colocatedWorkloads.getOrDefault(name, 0) if (count > 1) return true } |
