diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-04-12 22:30:02 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-04-12 22:30:02 +0200 |
| commit | 29b2865db32d53f04b6b3066e137f27226b39c20 (patch) | |
| tree | 9d25f31c7c9cf7410be8a53c9df5161008c50244 | |
| parent | 310daf42af741dee2f11d98eb929d2b6c0db141c (diff) | |
Uncap total requested burst
| -rw-r--r-- | opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/SimpleVirtDriver.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/SimpleVirtDriver.kt b/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/SimpleVirtDriver.kt index d81b8825..1edba7ed 100644 --- a/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/SimpleVirtDriver.kt +++ b/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/SimpleVirtDriver.kt @@ -331,9 +331,7 @@ class SimpleVirtDriver( eventFlow.emit( HypervisorEvent.SliceFinished( this@SimpleVirtDriver, - // Only consider the burst that we could allocate in the time-frame that we ran, not the entire - // requested burst, since we some requests may be run in multiple slices - min(totalRequestedBurst, totalAllocatedBurst), + totalRequestedBurst, min(totalRequestedBurst, totalGrantedBurst), // We can run more than requested due to timing totalOvercommissionedBurst, totalInterferedBurst, // Might be smaller than zero due to FP rounding errors, |
