Manuscript Offprint
arXiv:2610.29945Pre-emptive Carbon Aware Scheduling for Edge Workloads
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Power grids use a constantly changing mix of fossil fuels and clean renewables like solar and wind. Because of this, the carbon footprint fluctuates drastically based on time and geographic location. Time-varying carbon intensity creates opportunities to reduce carbon emissions by shifting workloads to cleaner periods, but deadlines, task dependencies, and limited edge capacity constrain this flexibility. We study carbon-aware scheduling of jobs with release times, deadlines, and arbitrary precedence constraints under piecewise-constant carbon costs. Jobs execute preemptively on a single edge server or are outsourced at job-dependent costs to an unlimited-capacity cloud, modeled as providing instantaneous execution. The objective is to minimize the sum of edge carbon costs and cloud outsourcing costs while satisfying all timing and precedence constraints. For edge-only execution, we give an exact polynomial-time algorithm. Allowing cloud outsourcing makes the problem NP-hard, but we obtain a fully polynomial-time approximation scheme through a reduction to preemptive scheduling with rejection penalties (weighted tardiness). In contrast, even two edge servers without job migration admit no polynomially bounded approximation when carbon-cost variation is unrestricted, unless . We complement these theoretical results with experiments on controlled synthetic workloads and production-derived Alibaba traces. On synthetic instances, our incremental max-flow implementation is faster on average than a direct min-cost flow, while experiments on production-derived workloads evaluate its performance under realistic job structures.
1 Introduction
The explosion of data-heavy applications, like artificial intelligence and machine learning, has caused a massive spike in the world's need for computing power. Because of this, computing systems consume a massive amount of electricity, which has rapidly driven up our global carbon footprint. Historically, computational resource management has optimized purely for performance metrics or baseline energy efficiency. A lot of work has been done on online speed scaling to decide at what speed to run a processor as the speed controls the energy used. However, the issues are a bit more complex than simply controlling the speed of the processor [13].
Today, our power grids use a constantly changing mix of fossil fuels and clean renewables like solar and wind. Because of this, the “carbon intensity” (the amount of carbon emitted per kilowatt-hour of electricity generated) fluctuates drastically based on time and geographic location. To make computing truly green, we must transition to carbon-aware scheduling - intelligently routing and deferring computing workloads to align with periods and locations of clean, renewable energy availability. In addition, edge servers are cheaper to run, so decisions have to be made about what
Supported by NSF 2216970 (IDEAL) as well as a gift from Adobe Labs.
samir.khuller@northwestern.edu
emilie.rivkin@northwestern.edu can be computed at the edge versus what should be moved to more expensive centralized servers while still meeting service level agreements and customer needs.
We consider this challenge using a novel setup that involves both edge servers and cloud servers. Edge servers are located physically close to the user, meaning they process data very quickly but have limited capacity. Cloud servers are massive, distant data centers with huge capacity, but sending data to them takes extra time and energy. Within this framework, two fundamental classes of high-level carbon-aware scheduling problems emerge:
-
Where to run: When a new job arrives, we need to choose if it should be processed locally on the edge server or moved to the cloud.
-
When to run: The core challenge is to deliberately defer or shift flexible workloads to time windows when renewable energy is abundant. This requires navigating time-varying carbon costs to minimize overall emissions without severely degrading performance objectives.
Why is the problem worth solving? Cloud operators already act on carbon signals. Google’s production system shifts flexible workloads toward cleaner hours using day-ahead forecasts of carbon intensity and demand [9]. Trace-driven studies have measured how much there is to gain. Wiesner and coauthors found reductions above ten percent for delay-tolerant jobs in several grids when jobs are given windows rather than fixed start times [12]. Sukprasert and coauthors, analysing three years of hourly data across 123 regions, found that practical savings fall short of idealised upper bounds, that simple policies often capture most of the available reductions, and that the benefits diminish as grids become cleaner [10]. These findings motivate understanding when workload shifting is useful and how close practical schedules come to the optimum.
Informal Problem Formulation: We first formally discuss the problems addressed in this paper in Subsection 1.1 and then compare that to prior work in this emerging space in Subsection 1.2. Our framework is inspired by Cendrier et al [1,2], and they already showed experimentally why carbon aware scheduling is important and can have significant benefits. They also develop a provably optimal strategy for a simple case - jobs have release times and deadlines, can be paused and resumed, and form a single chain of precedence constraints. In their followup work [1], they also consider pre-emptive scheduling with time varying carbon costs but with all jobs having identical release times.
Problem Motivation: Our interest in the problem arises from basically asking the question - can this framework be generalized in a few ways? Can we allow any precedence constraints and release times? The other is to allow for situations when the set of jobs is simply infeasible on the edge server and there is no option but to move some jobs to the cloud. How do we select which jobs to move? Moving a job to the cloud incurs a job specific fixed cost that has to be factored in, what increases the complexity is that this cost is not fixed but in fact depends on the exact schedule we create. Moving a job that might have been scheduled at a high carbon cost region on the edge server is different from the cost when it is scheduled at a low cost region.
There is one unit-speed edge server (local machine), which processes at most one job at a time. Preemption is allowed for free. A job must receive all units of processing between its release time and deadline. Let and denote the times at which is started and finished, respectively. Precedence constraints require that for all .
Processing on the edge server at time incurs a nonnegative cost per unit of processing time which we refer to as carbon cost. The interval is divided into intervals , and is constant on the interval . Each job induces the same carbon cost, and idle time incurs no cost. For a schedule , let be the set of times at which is processed locally on the edge server, and let .
We consider two variants of this model.
- In the edge-only problem, every job must be processed on the local edge server (if a feasible schedule exists), and the objective is
- In the cloud-outsourcing problem, each job additionally has a nonnegative outsourcing cost . We choose a set of jobs to process entirely on the edge server; every job outside is executed in the cloud. A cloud job uses no local capacity and executes instantaneously at a chosen time , at cost . For such a job, set , so the same precedence inequalities apply to edge and cloud jobs. The cloud has unlimited capacity, so multiple jobs may execute at the same time. If is the schedule of jobs processed locally on the edge server, the objective is
In Fig. 1, we give an example of an instance of this problem and a feasible, low-cost solution.
Note that the outsourcing is all-or-nothing, meaning that we cannot move a job to the cloud in the middle of its execution on the edge server. Every job must satisfy its release time, deadline, and precedence constraints regardless of its execution location. For any given instance, let and , respectively, denote the optimal costs for edge-only and the cloud-outsourcing problems.
We now describe how we break down the interval in the execution of our algorithms.
Definition 1 (Effective windows). For each job define
These quantities are computed by a forward and a reverse topological pass through G. For every , they satisfy and . Every feasible schedule in either variant satisfies and : a job cannot start before the release of an ancestor or finish after the deadline of a descendant. Local processing on edge server therefore lies in , whereas a cloud job may execute at either endpoint of . These windows are computed on the original DAG, independently of which jobs are outsourced.
The closely related recent work [2] assumes a simpler model that allows a job to be paused and resumed freely, but this is a weaker assumption than a pre-emptive model where a job can be paused and a different job can be resumed. We believe the simpler model only works because in their case they handle jobs that are in a chain, so in any case of a job is paused, its only that job can be resumed and nothing else is available to be run until this job is completed.

Figure 1: A set of jobs with a precedence DAG is presented. The execution windows and job lengths are shown in the timeline. The low-cost and high-cost regions are also shown. In order to give a feasible schedule, job F is moved to the cloud. Job E is delayed in order to use a low-cost energy region.
Definition 2 (Atomic intervals). Let . Order chronologically so that and . The intervals partition for , and the carbon cost over each is for each . Each is an original release time and each is an original deadline, so each atomic interval is either wholly inside a job's effective window or disjoint from its interior.
1.2 Related Work
Recent literature has begun to tackle pieces of this puzzle. For example, Penn and Raviv [7] study single-machine scheduling under time-of-use electricity tariffs. For preemptive jobs with release times and deadlines, they give a polynomial-time exact algorithm by reducing the problem to the Hitchcock transportation problem, a special case of minimum-cost flow. Their formulation assumes independent jobs and does not include precedence constraints.
Lechowicz et al. [6] study how to smartly schedule large data processing workloads to align with periods of low-carbon energy. The most relevant work is that of Cendrier et al [2]. In their paper they define the formal model and deal with the special case of a chain of jobs with release times and deadlines with two carbon levels (red/green). This special structure allows for only one job to be active at any point of time, and jobs may be paused and resumed. Their algorithm computes an optimal scheme for maximizing the amount of green intervals it can utilize. Their develop a clever two pass algorithm to find a feasible schedule of minimum carbon cost (if it exists) optimally utilizing green intervals. In the follow-up work [1], they give a preemptive algorithm for scheduling with variable carbon costs and all jobs released at time 0. This work also gives a linear programming-based algorithm for scheduling on multiple edge servers with free preemption and migration.
Recent work on green computing has mostly studied heuristic-based approaches and only some restricted models of scheduling. Conversely, recent theoretical works like Erlebach et al. [3] provide mathematical scheduling frameworks for edge-to-cloud task offloading, but they optimize purely for performance-based metrics (like makespan) and completely ignore carbon costs. In the stochastic setting, recent work has focused on improved heuristics scheduling with time-varying holding costs.
1.3 Key Results
As mentioned, the previous work by Cendrier et al. in [2] uses the limitation that a started job must be finished before the next starts. As they prove, while this model does have an exact polynomial-time algorithm when the job order is part of the input, it does not admit a constant-factor approximation without an order. Therefore, in this paper, we focus on the preemptive model. Note that preemption is available for free (without pre-emption, the problems in this space are generally NP-hard).
We first study the edge-only problem to establish polynomial time solvability.
Theorem 3. The edge-only problem admits a polynomial-time algorithm that returns a minimum-cost feasible schedule or correctly reports infeasibility.
The first important observation is that the precedence constraints can be restored without changing when the server is active. In particular, after replacing every job's original release time and deadline with the effective release time-deadline window, any feasible schedule that ignores the precedence constraints can be rearranged to satisfy the original DAG. This extends the flow-based algorithm of Penn and Raviv [7] for independent jobs to arbitrary precedence DAGs.
We also improve on the work of Penn and Raviv [7] by obtaining a faster exact algorithm. Rather than solving a Hitchcock transportation problem, our algorithm enables interval capacity in nondecreasing order of carbon cost and incrementally augments a maximum flow. These updates increase only capacities on arcs leaving the source, while all other capacities remain fixed. The resulting sequence therefore fits the monotone parametric maximum-flow framework of Gallo et al. [4], which reuses the preflow and distance labels across phases. This gives an running time, improving on the bound stated by Penn and Raviv [7].
We consider the problem with cloud outsourcing. Allowing outsourcing makes the problem NP-hard, even for independent jobs with a common release time and deadline and zero local carbon cost. We show this hardness via a reduction from 0-1 knapsack problem. Thus we focus on an approximation algorithm. We obtain a fully polynomial-time approximation scheme: for every , the algorithm computes a solution of cost at most in time polynomial in the binary input length and (See Theorem 4).
Theorem 4. The cloud-outsourcing problem admits a fully polynomial-time approximation scheme: for every , the algorithm returns a mixed schedule satisfying
Its run time is polynomial in the binary input length and .
We give an approximation-preserving reduction to single-machine preemptive scheduling with rejection penalties, equivalently minimizing the weighted number of tardy jobs . However we cannot use a direct reduction as the cost to schedule jobs is time dependent in our setting. The reduction assigns rejection penalties to original jobs to represent outsourcing and introduces a compact collection of dummy jobs to represent local time capacity. Rejecting dummy jobs makes capacity available to original jobs and charges the corresponding carbon cost. Applying the FPTAS of Pruhs and Woeginger [8], based on Lawler's dynamic program [5], gives the stated guarantee.
We also show that the single-server assumption matters: with two edge servers and no migration between them, even the edge-only problem admits no approximation guarantee polynomial in the number of jobs when carbon-cost variation is unrestricted, unless . This holds despite allowing preemption on each server and giving both servers the same carbon-cost function.
Finally, our experiments show that the max-flow formulation also provides a substantial computational advantage in practice. On synthetic workloads, MAXFLOW-PASSES is faster than
In this problem, jobs have to be scheduled pre-emptively and have processing times, release times and deadlines, and the goal is to minimize the weight of the jobs that miss their deadlines.
direct minimum-cost flow on average. Reusing the residual network across carbon-cost phases provides an additional improvement over restarting the max-flow computation at each phase. The implementation scales to flow networks with tens of millions of job-interval edges. Experiments on workloads derived from the Alibaba cluster trace show a similar advantage, with MAXFLOW-PASSES reaching approximately the speed of MINCOSTFLOW on some of the largest tested instances. We also evaluate Lawler's exact dynamic program [5] for the cloud-outsourcing reduction and observe the expected pseudopolynomial growth with the total penalty weight.
1.4 Organization of the paper
Section 2 presents the exact edge-only algorithm. Section 3 presents the approximation scheme for cloud outsourcing. Section 4 proves the hardness result for multiple edge servers without migration, and Section 5 presents our experimental evaluation: we compare the exact solvers, study the benefit of residual reuse and scalability, evaluate the algorithms on Alibaba cluster traces, and examine the scalability of Lawler's algorithm for the cloud-outsourcing reduction.
2 Exact scheduling on a single edge server
We start by giving an exact algorithm for preemptively scheduling jobs on a single edge server with a piecewise carbon cost function. Let be the atomic intervals defined by all release times, deadlines, and changes in carbon cost. Recall that carbon cost is uniform over the interval . We construct a flow network to model our scheduling problem. Our network has a source node and a sink node . For each interval , we have a node , and for each job , we have a node . We then define the arcs:
| arc | capacity | cost |
|---|---|---|
| if | 0 | |
| 0 |
Let be the total processing required. If has a flow of value , then we can construct a feasible schedule. This saturating flow assigns units of job to be completed during interval . In order to convert the flow into a schedule, we arbitrarily order the jobs with and complete units of each job in that order. When we do this for each interval, we get a preemptive schedule that completes units of each job during the interval . This gives us a preemptive schedule with cost . Conversely, given a feasible preemptive schedule, we can return a flow network with value by allowing to be the amount of time the edge server is running during interval and to be the amount of job completed during interval ; set . This returns a flow with cost . Therefore, we have an equivalence between the costs of minimum-cost schedules and minimum-cost flows.
2.1 Post-processing for precedence constraints
An important observation is that this algorithm considers feasibility only in terms of the effective windows, not the precedence constraints.
Lemma 5. Any schedule that is feasible with respect to the effective windows can be converted into one that follows the precedence constraints and does not increase carbon cost.
Proof. Let be a feasible schedule returned by the flow algorithm. Take jobs with . In , and are completed during the intervals and . We want to make an adjustment such that meaning that completes before . Let be the collection of disjoint intervals during which the edge server is running jobs and . The adjusted schedule completes job during the first units of and then completes job during the last units of . This guarantees that . Moreover, since and , and job is completed earlier while job starts later, we maintain that and .
We complete this process in topological order. For each job , we make the swap for each such that . Therefore, we complete a polynomial number of swaps. After we have processed job , we have for each . We need to show that this invariant is maintained for this pair in later steps of the algorithm. Assume , and we are processing . Before completing this step, we have and . After processing, , so there is no retroactive violation of precedence constraints with .
Observe that the initial schedule S and the final schedule occupy the edge server during the exact same intervals of time. As a result, these schedules have identical costs.
2.2 Implementation without minimum-cost flow
Due to the simplified nature of the cost function defined for , we can avoid using a min-cost flow algorithm by gradually allowing flow through vertices in order of increasing cost . Start with the capacities of arcs originating from set to 0. At each step , allow the capacity of arc to change to in order of increasing cost, breaking ties arbitrarily. Push flow through the network until no augmenting paths remain. The residual flow is retained after each step of the algorithm. Let be the flow value at the end of step , meaning that we can schedule units of work on the edge server during the cheapest intervals. We have . If , then there is no feasible schedule.
Lemma 6. Assume that . Let be the amount of flow on after the incremental max flow procedure, and let be the amount of flow on induced by any other min-cost flow of value . Then, .
Proof. We first show an equivalence between the intermediate flow values and the final flow . During step , the algorithm looks for an augmenting path . However, it cannot use an arc , as doing so would simply return the flow to . Therefore, after the completion of this step, the flow through the first arcs cannot decrease, and .
For the reverse inequality, we consider the final flow and restrict it to the first intervals. This is a feasible flow for scheduling on the cheapest intervals. By the definition of , we have . Therefore, we conclude that, for each , we have
Now, we consider our other flow z. Let . We have
(Def. of )
(Eq. (1))
and our incremental max flow algorithm finds a flow of value P with cost no more than any min-cost flow with value P.
By using the incremental flow algorithm and then correcting the schedule using Lemma 5, we prove Theorem 3.
3 Approximation with cloud outsourcing
The cloud-outsourcing problem is NP-hard by a straightforward reduction from 0–1 Knapsack, even for independent jobs with a common release time, a common deadline, and zero carbon cost: selecting jobs to execute locally corresponds to packing items, with processing times as sizes and avoided outsourcing costs as values. Hardness persists even when for any fixed , by a reduction from Subset Sum. We next obtain an FPTAS through a reduction to single-machine preemptive scheduling with rejection penalties.
3.1 Reduction to the penalty variant
We first show that we have a version of Lemma 5 that extends to the cloud outsourcing variant. Fix any job set A run on the edge server with a feasible independent job schedule in the effective windows. Apply the order-restoring construction from Lemma 5 to the DAG G restricted to the jobs in A. This restores every edge server ancestor-descendant relation without changing the intervals of time at which the edge server is running. Now, for every cloud job , set
Every edge server ancestor satisfies , so . Edge-to-cloud precedences follow directly from (2). Cloud-to-cloud precedences hold because both effective releases and the sets of edge server ancestors are nested along precedence paths. Finally, we maintain cloud-to-edge precedences. If a cloud job precedes a local job , then , and every local ancestor of is also a local ancestor of and finishes by . Thus . This proves that any feasible independent schedule of can be extended to a feasible mixed schedule.
Definition 7. In the penalty-scheduling problem, jobs have parameters , where the first three are defined as above, and is a nonnegative penalty. If a job does not complete within the window , we pay the penalty . The objective is to select a subset of jobs to feasibly schedule such that the total penalty paid is minimized.
Pruhs and Woeginger [8] give an FPTAS for this minimization problem with arbitrary release times and due dates. This is built on the exact algorithm due to Lawler based on dynamic programming [5].
Next, we will reduce our cloud-outsourcing problem to the penalty-scheduling problem. We assume that all processing requirements, releases, deadlines, and carbon-change times are integers. Reduction: For every original job , create a job in the penalty instance with parameters . Next we will construct some dummy jobs.
For each interval of length , we want to create dummy jobs such that the sum of processing times of these jobs is and the subset sums of the processing times include every integer in . Let . A suitable set of job lengths is . The subsets of the powers of two sum to all values in . Since , adding allows us to sum to all values in .
For each job length create a dummy job with
The dummy jobs for have total processing requirement . Scheduling some of them after their deadline releases capacity in that interval and incurs a penalty equal to the carbon cost of the released capacity. Let be the minimum total penalty in the constructed instance.
3.2 Proof of correctness
Lemma 8. .
Proof. We start by showing that . Take an optimal mixed schedule and let be the job set scheduled on edge server. For this fixed set, solve the minimum-cost interval-job flow problem on the effective windows. Its cost is at most the original edge server carbon cost. All capacities and job requirements are integral, so it has an integral optimal flow. Let be its total processing volume in ; then .
Accept the original jobs in A and reject the others. In interval , reject a subset of dummy jobs of total length exactly , which exists by the subset-sum property. Accept the remaining dummy jobs, whose total length is . The original job allocation and accepted dummy jobs now have total volume in . Every participating job is eligible throughout that interval, so these allocations can be serialized to give a feasible accepted-job schedule. Its penalty is
Now, we show that . Consider any feasible accepted job schedule of total rejection penalty W. Let A be its accepted original jobs. In interval , let be the total processing requirement of the rejected dummy jobs, and let be the processing volume of jobs in A. All accepted dummy processing for this interval must occur within , so capacity gives
Delete the dummy jobs, keep A on edge server, and outsource to cloud. Restore precedence and insert cloud jobs using (2). The edge server busy-time set is preserved, and nonnegativity of the tariff implies
The cost of any feasible solution can only be greater than the cost of optimal schedule, therefore, .
In fact, the proof shows that the backward direction preserves every multiplicative approximation guarantee.
By applying the reduction above and then reordering to follow precedence constraints, we achieve Theorem 4.
4 Hardness for Multi-edge-server scheduling
In this section, we show that the multi-edge-server scheduling problem is hard to approximate even with only two edge servers and edge-only setting. Each server has unit speed and processes at most one job at a time. Preemption is allowed for free, but migration between servers is forbidden: every job must receive all of its processing on a single server. The objective is to minimize the total carbon cost across the servers while satisfying all release times, deadlines, and precedence constraints.
Unlike the single-server edge-only problem, which admits an exact polynomial-time algorithm, this problem admits no approximation guarantee polynomial in the number of jobs when carbon-cost variation is unrestricted, unless P = NP.
Theorem 9. Unless P = NP, the edge-only scheduling problem on two servers, with free preemption but no migration, admits no polynomial-time approximation algorithm whose approximation ratio is bounded by a polynomial in the number of jobs n, when the ratio between the largest and smallest carbon costs is unrestricted.
In fact, the theorem holds even for independent jobs with a common release time and deadline, when both servers share the same strictly positive carbon-cost function consisting of two constant-cost intervals, and a feasible schedule is guaranteed to exist.
Proof. Suppose that a polynomial-time algorithm has approximation factor at most , for fixed integers and . Such a bound covers every polynomially bounded approximation factor, including constant and logarithmic factors.
Reduce from PARTITION. Given positive integers with , create two servers and jobs
Define and give both servers the carbon function
If the PARTITION instance is a YES-instance, assign a subset of total size B to the first server and its complement to the second. Both servers finish by time B, at total cost 2B. Since the total processing requirement is 2B and all carbon rates are at least one, the optimum is exactly 2B.
If the instance is a NO-instance, consider any feasible schedule. Each server's assigned load is an integer sum of whole job sizes. The loads sum to 2B, and they cannot both equal B. One server therefore has load at least . It can execute at most B units before time B, so at least one unit must be processed during the expensive interval. If y is the total processing performed after time B, then y > 1 and
Preemption on a fixed server does not change this load argument.
On a YES-instance the approximation algorithm returns cost at most , whereas on a NO-instance every feasible schedule costs more than L. Comparing the returned cost with L decides PARTITION in polynomial time, a contradiction.
5 Experiments
We experimentally evaluate the algorithms introduced in previous sections. Our experiments have four goals. First, we compare the running time of the max-flow based algorithm of Section 2 with a direct minimum-cost formulation. Second, we study how the running time changes as the size and structure of the scheduling instance and resulting flow network change. Third, we evaluate the algorithms on the production-derived workloads from the Alibaba cluster trace. Finally, we evaluate the reduction of Section 3 and the running time of Lawler's exact dynamic program.
We use synthetic instances for the first two sets of experiments. This allows us to control system utilization, carbon composition, and flow-network size independently. The Alibaba experiments complement these results with workloads derived from production traces.
5.1 Experimental Setup
Implementations. We compare two exact implementations of the edge-only problem. The first, denoted MAXFLOW-PASSES, is the algorithm described in Section 2. It orders the carbon intervals by cost, progressively enables their capacity. The current flow and residual network are retained between successive phases. The CPU implementation uses Dinic's algorithm to compute the required max flows.
The second implementation, denoted MAXFLOW-RESTART, is an ablation of MAXFLOW-PASSES. It uses the same sequence of carbon levels, but discards the residual graph after each phase. The network is rebuilt before solving the next prefix problem. The cheaper-capacity locks obtained in earlier phases are retained. Thus, the two implementations differ in whether the previous residual computation is reused.
The third implementation, denoted MINCOSTFLOW, constructs the same job-interval network. It assigns cost to the capacity of interval , and directly computes a minimum-cost flow of value . All three methods compute the same optimal objective. Their objective values agree on every tested instance. The experiments focus on their computational behavior.
Synthetic jobs. For the utilization and green-share experiments, each instance contains between 35 and 50 jobs. After choosing the number of jobs n, we set the horizon to . Each processing requirement is an integer in .
For a target-utilization range , the generator selects a total processing requirement within and distributes these processing units among the jobs. The realized utilization is . The choice ensures that the highest utilization range remains attainable under the bound .
Feasibility is guaranteed by construction. We first create a non-overlapping witness schedule containing all jobs. For job j with the witness piece , its release time is sampled from and its deadline from . The witness schedule is not provided to the algorithms. They receive only the resulting values. Jobs are shuffled before the instance is passed to the solvers.
The carbon timeline is partitioned into between 5 and 12 piecewise-constant intervals unless otherwise specified. We use three normalized carbon costs, , , . For the two-dimensional parameter sweep, the green share ranges from 0.20–0.25 to 0.80–0.85 in increments of 0.05. The non-green portion is randomly divided between brown and red capacity. Target
All CPU experiments were executed on a KVM virtual machine with 24 x86-64 virtual CPUs based on an Intel Xeon Cascade Lake processor and 94 GB of memory. Unless otherwise stated, we use random seed 42. End-to-end algorithm time includes interval splitting, graph construction, flow computation, recovery of the flow assignment, and construction of the final schedule. Instance generation and file I/O are excluded.
utilization ranges from 0.30–0.35 to 0.95–1.00, also in increments of 0.05. This gives utilization/green-share configurations. We generate 30 independent instances for each configuration and repeat each timing measurement 20 times.
Metrics. Our primary computational metric is wall-clock running time. We report
which measures the running-time difference between the two exact formulations. We additionally report
which isolates the effect of retaining the residual graph between phases. Values larger than one favor MAXFLOW-PASSES.
To characterize where the proposed algorithm performs its work, let , , and denote the cumulative flow after the green, brown, and red phases, respectively. For every feasible instance, . We report the fraction of total processing introduced in each phase:
Thus .
Finally, we measure how much of an earlier assignment is rearranged after a more expensive carbon level is enabled. Let denote the amount of job j assigned to atomic interval after phase h. For the transition from phase to phase h, we define the rerouted volume over the previously enabled intervals as
where contains job-interval pairs belonging to carbon levels enabled before phase . We report normalized by the amount of flow present before the transition.
5.2 Comparison of Exact Solvers
Running time. We first compare MAXFLOW-PASSES with the direct MINCOSTFLOW formulation. We vary target utilization and green-energy share, since these parameters determine both the total demand placed on the machine and the amount of processing that can be assigned during the earlier, lower-carbon phases.
Figure 2 reports
for each configuration. Across all instances, MINCOSTFLOW requires the runtime of MAXFLOW-PASSES on average. The median ratio is . At the configuration level, the average ratio ranges from approximately to .
The difference also varies with the amount of green capacity. At low and moderate utilization, the advantage of MAXFLOW-PASSES generally increases with the green share. The ratio exceeds in several configurations. At high utilization, the difference is more stable because most available capacity must eventually be used. MAXFLOW-PASSES remains faster throughout the tested parameter space.
Runtime Ratio: Pure Min-Cost Flow / MaxFlow-Passes

Figure 2: Runtime ratio as target utilization and green-energy share vary. Each cell is averaged over all instances in the corresponding parameter configuration. Values larger than one favor MAXFLOW-PASSES.
5.3 Benefit of Residual Reuse
We next isolate the effect of preserving the residual network between carbon-cost phases. MAXFLOW-PASSES retains the flow after the green phase, enables brown capacity, and continues augmenting the same residual network. The same procedure is repeated when red capacity is enabled.
MAXFLOW-RESTART follows the same cheapest-first sequence, but rebuilds the network whenever a new carbon level is enabled. Figure 3 reports
Across all individual instances, restarting requires the runtime of the incremental implementation on average, with a median ratio of . The average ratio within individual utilization/green-share configurations ranges from approximately to . The advantage is therefore consistent across the entire tested parameter space.
These results show that residual reuse is an important component of the algorithm's computational efficiency. Rather than repeatedly solving the green, green-brown, and green-brown-red prefix problems from scratch, MAXFLOW-PASSES directly extends the solution computed during the preceding phase.
Behavior across phases. Across all instances, the green phase contributes of the final flow on average. Brown capacity contributes another , while red capacity contributes . The corresponding median values are , , and . Thus, in at least half of the tested instances, no additional processing is introduced during the red phase.
Benefit of Residual Reuse: MaxFlow-Restart / MaxFlow-Passes

Figure 3: Benefit of retaining the residual network. Each cell shows averaged over the corresponding utilization/green-share configuration.
Figure 4 shows this behavior for target utilization 0.60–0.65. At low green shares, a substantial fraction of the processing requirement is supplied by the brown and red phases. As the green share increases, more processing is established during the first phase. At the largest green shares, almost the entire final flow is present after the green phase.
This behavior helps explain the effectiveness of incremental augmentation. In many instances, the first phase establishes most of the final solution, and later phases need only supply the remaining demand rather than recomputing the entire allocation.
5.4 Scalability
We next study how MAXFLOW-PASSES scales as the scheduling instance and the corresponding flow network grow. Unlike the previous experiment, this study varies both the number of jobs and
Table 1: Aggregate behavior of the exact solvers and incremental max-flow phases.
| Metric | Mean | Median | Std. | Min | Max |
|---|---|---|---|---|---|
| MinCost / MaxFlow-Passes runtime | 4.961 | 4.880 | 0.979 | 2.314 | 8.953 |
| Restart / MaxFlow-Passes runtime | 2.069 | 2.009 | 0.329 | 1.395 | 2.830 |
| Flow added in green pass (%) | 73.847 | 79.104 | 23.000 | 20.896 | 100.000 |
| Flow added in brown pass (%) | 18.140 | 11.842 | 18.491 | 0.000 | 78.358 |
| Flow added in red pass (%) | 8.013 | 0.000 | 13.722 | 0.000 | 76.226 |
| Green allocation rerouted in Pass 2 (%) | 3.626 | 0.000 | 6.930 | 0.000 | 65.079 |
| Prior allocation rerouted in Pass 3 (%) | 1.595 | 0.000 | 4.075 | 0.000 | 36.441 |

Figure 4: Fraction of total processing introduced by the green, brown, and red phases at target utilization 0.60–0.65. Increasing the green-energy share shifts progressively more of the final flow into the first phase.
the number of carbon intervals over several orders of magnitude.
For each job count n, we consider five carbon-interval densities. The number of original intervals is approximately 0.10n, 0.25n, 0.50n, 1.0n, and 2.0n. We refer to these settings as sparse, light, medium, dense, and very dense. We generate three instances for each configuration and report the mean end-to-end running time.
The number of original carbon intervals does not directly determine the final network size. Splitting the timeline at job release times and deadlines produces a larger set of atomic intervals. A job–interval edge is created whenever an atomic interval lies inside the feasible window of a job. We therefore also record
CPU scaling. Figure 5a shows that running time increases rapidly with the number of jobs. For the sparse configuration, the mean running time increases from 0.53 ms for 10 jobs to 28.3 ms for 100 jobs, 3.93 s for 1000 jobs, and 188.9 s for 5000 jobs. For the largest completed sparse configuration with 10,000 jobs, the mean running time is 843.0 s.
The flow network grows much faster than the job count alone. For the same sparse configurations, the mean number of job-interval edges increases from 91 at 10 jobs to approximately at 100 jobs, at 1000 jobs, and at 5000 jobs. At 10,000 jobs, the network contains approximately job-interval edges.
Interval density produces a similar effect. With 1000 jobs, the mean number of job-interval edges grows from approximately 0.77 million in the sparse setting to 1.50 million in the very-dense setting. The corresponding mean running time increases from 3.93s to 7.91s. At 5000 jobs, the network grows from approximately 19.4 million edges in the sparse setting to 37.3 million in the very-dense setting. Running time increases from 188.9s to 351.2s.
These results show that is a useful measure of computational scale. Increasing the number of jobs also increases the number of atomic intervals and feasible job-interval pairs. Instances with the same job count can therefore produce substantially different network sizes and running times.
The implementation handles networks containing tens of millions of job-interval edges. For the largest instances, the running time reaches several minutes.
CPU MaxFlow-Passes scalability

(a) Number of jobs.
CPU runtime vs. flow-network edge count

(b) Job-interval edges.
Figure 5: CPU running time of MAXFLOW-PASSES. (a) Runtime versus the number of jobs, with curves corresponding to different carbon-interval densities. (b) Runtime versus the number of job-interval edges in the constructed flow network, averaged over instances of each configuration. Both axes are logarithmic.
GPU acceleration. We also evaluate whether MAXFLOW-PASSES benefits from GPU acceleration. We implement MAXFLOW-PASSES using ECL-MaxFlow [11]. The GPU version preserves the flow between phases, but reconstructs the residual graph and invokes the GPU solver separately for each pass. We report both GPU algorithm time and complete GPU wall-clock time. GPU algorithm time excludes ECL interface overhead.
Figure 6 shows that the GPU implementation does not outperform CPU MAXFLOW-PASSES in the tested configurations. For example, at 1000 sparse jobs, CPU MAXFLOW-PASSES requires 4.96s, compared with 6.34s of GPU algorithm time and 12.35s of GPU wall time. Across the 1000-job configurations, GPU algorithm time is about the CPU MAXFLOW-PASSES time. However, it remains much faster than MINCOSTFLOW, whose runtime reaches hundreds of seconds at this scale.
The current GPU integration therefore does not provide a speedup over the incremental CPU implementation. Residual construction, flow recovery, and repeated GPU invocation remain significant costs.
5.5 Evaluation on Alibaba Cluster Traces
We next evaluate MAXFLOW-PASSES and MINCOSTFLOW on production-derived workloads from the Alibaba cluster trace. Each selected Alibaba job is converted into one scheduling instance. Its tasks form the precedence DAG.
For each task : release time , deadline , and weight are set, where , , and are the start time, end time, and average CPU utilization of instance . Processing times are scaled as , where is chosen so that , and is the observed job horizon. Release times and deadlines are then tightened according to the DAG precedence constraints.
The horizon is divided into six equal carbon intervals following green-brown-red-green-brown-red, with costs 0, 1, and 2.
We select valid trace jobs over increasing DAG sizes and report their actual number of tasks. Each solver is run five times and we report median end-to-end runtime. We additionally record the
CPU MaxFlow-Passes CPU MinCostFlow GPU MaxFlow-Passes (wall) CPU MaxFlow-Restart GPU MaxFlow-Passes (algorithm)
Sparse
Light
Medium

Number of jobs
Number of jobs
Number of jobs
Dense
Very Dense
Number of jobs
Number of jobs
Figure 6: Running time of the CPU exact solvers and GPU MAXFLOW-PASSES. Both axes are logarithmic.
number of job-interval edges , since this more directly characterizes the size of the constructed flow network.
Figure 7 shows that MAXFLOW-PASSES remains consistently faster than MINCOSTFLOW on the trace-derived workloads. The two algorithms agree on feasibility and optimal carbon cost for every tested instance. The runtime gap generally increases for larger flow networks, reaching approximately on some of the largest networks.
The advantage observed on synthetic instances therefore also appears on the production-derived workloads.
5.6 Cloud-Outsourcing Reduction and Lawler's Algorithm
We next evaluate the scalability of Lawler’s exact algorithm and the resulting edge/cloud allocation. We vary the number of original jobs over and the number of carbon intervals over approximately , , , and , denoted sparse, light, medium, and dense, respectively. Outsourcing penalties are sampled uniformly from , where . We generate five instances per configuration, yielding 800 instances in total, using random seed 42. Each instance has a 1000-second time limit.
For each reduced instance, we measure the running time, total weight W, and number of original jobs assigned to the cloud in an optimal solution. Figure 8 illustrates the computational behavior of Lawler's algorithm. Figure 8a shows that runtime increases rapidly with the number of original jobs, with denser carbon intervals generally requiring more computation. This is partly due to the additional dummy jobs introduced by the reduction. Figure 8b examines the effect of penalty weights by scaling all weights by a common factor , while keeping the scheduling constraints unchanged. Increasing increases the total weight W without changing the optimal set of accepted

Number of Job-Interval Edges
Figure 7: Running time of the exact solvers on Alibaba trace-derived workloads as the constructed scheduling instances increase in size.
jobs, allowing us to isolate the effect of weight magnitude on the dynamic program's runtime.
Across the evaluated configurations, the percentage of original jobs outsourced to the cloud ranges from approximately 2% to 27%. This shows that cloud outsourcing plays a nontrivial role in the optimal solutions, with the allocation between edge and cloud varying across different scheduling configurations and outsourcing penalties.
6 Conclusions
In this paper, we developed optimal strategies for pre-emptive scheduling of jobs on a single edge server with time varying costs, under general precedence constraint requirements, with release times and deadlines. Moreover, we showed that network flow methods are a faster and easier way to find optimal solutions instead of using the more general min-cost flow based methods. In addition, we developed algorithms based on pioneering work by Lawler [5] for cloud out-sourcing - this connects the edge vs cloud question for the first time with classical work on weighted tardiness scheduling. However, the algorithm is not yet scalable. Meanwhile, what would be interesting to study is fast approximation algorithms for minimizing weighted tardiness, a problem now of central interest in the context of making decisions as to what to outsource to the more expensive cloud computing platform from the edge resource.
References
[1] J. Cendrier, R. Wijayawardana, A. Benoit, Y. Robert, A. A. Chien, and F. Vivien. Carbon-Aware Scheduling on Multiple Edge Servers. Technical Report RR-9619, INRIA, June 2026.

(a) Number of jobs.

(b) Total weight.
Figure 8: Running time of Lawler's exact dynamic program. Shaded regions show the interquartile range; the y-axis is logarithmic.
[2] J. Cendrier, R. Wijayawardana, A. Benoit, Y. Robert, F. Vivien, and A. A. Chien. Green scheduling on the edge. In W. E. Nagel, D. Goehringer, and P. C. Diniz, editors, Euro-Par 2025: Parallel Processing - 31st European Conference on Parallel and Distributed Processing, Dresden, Germany, August 25-29, 2025, Proceedings, Part I, volume 15900 of Lecture Notes in Computer Science, pages 380–394. Springer, 2025.
[3] T. Erlebach, N. Shakhlevich, A. Shioura, and J. Xu. Scheduling framework for edge-to-cloud task offloading. In Proc. of Models and Algorithms for Planning and Scheduling Problems, 2026.
[4] G. Gallo, M. D. Grigoriadis, and R. E. Tarjan. A fast parametric maximum flow algorithm and applications. SIAM J. Comput., 18(1):30–55, 1989.
[5] E. L. Lawler. A dynamic programming algorithm for preemptive scheduling of a single machine to minimize the number of late jobs. Annals of Operations Research, 26(1):125–133, 1990.
[6] A. Lechowicz, R. Shenoy, N. Bashir, M. Hajiesmaili, A. Wierman, and C. Delimitrou. Carbon-and precedence-aware scheduling for data processing clusters. In Proceedings of the ACM SIGCOMM 2025 Conference, SIGCOMM '25, page 1241–1244, New York, NY, USA, 2025. Association for Computing Machinery.
[7] M. Penn and T. Raviv. Complexity and algorithms for min cost and max profit scheduling under time-of-use electricity tariffs. Journal of Scheduling, 24(1):83–102, 2021.
[8] K. Pruhs and G. J. Woeginger. Approximation schemes for a class of subset selection problems. Theor. Comput. Sci., 382(2):151–156, 2007.
[9] A. Radovanović, R. Koningstein, I. Schneider, B. Chen, A. Duarte, B. Roy, D. Xiao, M. Hari-dasan, P. Hung, N. Care, S. Talukdar, E. Mullen, K. Smith, M. Cottman, and W. Cirne. Carbon-aware computing for datacenters. IEEE Transactions on Power Systems, 38(2):1270–1280, 2023.
[10] T. Sukprasert, A. Souza, N. Bashir, D. Irwin, and P. Shenoy. On the limitations of carbon-aware temporal and spatial workload shifting in the cloud. In Proceedings of the Nineteenth European Conference on Computer Systems (EuroSys 2024), pages 924–941. ACM, 2024.
[11] A. VanAusdal and M. Burtscher. An efficient push-relabel implementation for max-flow computations on gpus. pages 1–10, 11 2025.
[12] P. Wiesner, I. Behnke, D. Scheinert, K. Gontarska, and L. Thamsen. Let's wait awhile: How temporal workload shifting can reduce carbon emissions in the cloud. In Proceedings of the 22nd International Middleware Conference (Middleware 2021), pages 260–272. ACM, 2021.
[13] F. Yao, A. Demers, and S. Shenker. A scheduling model for reduced cpu energy. In Proceedings of the 36th Annual Symposium on Foundations of Computer Science, FOCS '95, page 374, USA, 1995. IEEE Computer Society.