From ad8051faa1f0a6e7f78384e9e0607e847848c033 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Tue, 10 Sep 2024 12:15:05 +0200 Subject: rewritten the checkpointing model (#250) * Updated the checkpointing system to use SimTrace. The checkpoint model can now also scale, which means the interval between checkpoints can increase or decrease over time. * spotless kotlin * Fixed tests * spotless apply --- .../org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'opendc-compute/opendc-compute-simulator/src') diff --git a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt index 24c382dd..ea8f51d0 100644 --- a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt +++ b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/internal/DefaultWorkloadMapper.kt @@ -38,6 +38,7 @@ internal object DefaultWorkloadMapper : SimWorkloadMapper { override fun createWorkload(task: Task): SimWorkload { val workload = delegate.createWorkload(task) + // FIXME: look at connecting this to frontend. Probably not needed since the duration is so small val bootWorkload = SimWorkloads.runtime(Duration.ofMillis(1), 0.8, 0L, 0L) return SimWorkloads.chain(bootWorkload, workload) -- cgit v1.2.3