Settling Worst-Case Ratio of Smith's Rule for Exponential Jobs

Question

There are nn jobs and mm identical machines. Job jj has a weight wj≥0w_j \ge 0 and a processing time pjp_j, exponentially distributed with mean μj\mu_j, independently of everything else.

Whenever a machine is free, a policy decides which job to start. It sees which jobs have finished, but not how long a running job will take. Jobs cannot be interrupted, and machines may be left idle on purpose. The goal is to minimise E[∑jwjCj]\mathbb E[\sum_j w_j C_j], where CjC_j is the completion time of job jj. OPT is the best policy.

WSEPT (weighted shortest expected processing time first, i.e. Smith’s rule) sorts the jobs by wj/μjw_j/\mu_j, largest first. Whenever a machine falls idle, it starts the next job on this list. WSEPT is optimal on one machine [1], but not on two or more. So the question is roughly:

How much worse than OPT can WSEPT be?

Write ρ∗(m)\rho^*(m) for the supremum of WSEPT/OPT over all instances on mm machines.

History

  • 1986. For deterministic processing times, Kawaguchi and Kyan prove that the worst-case ratio of Smith’s rule is exactly (1+2)/2≈1.207(1+\sqrt2)/2 \approx 1.207 [2].
  • 1990. Weiss expresses the cost through the squared machine loads and proves additive bounds for WSEPT [3].
  • 1999. Möhring, Schulz and Uetz prove ρ∗(m)≤2−1/m\rho^*(m) \le 2 - 1/m [4].
  • 2010/2013. Jagtenberg, Schwiegelshohn and Uetz build a stochastic version of the Kawaguchi–Kyan instance. As m→∞m \to \infty it gives the lower bound 1.2431.243 [5, 6].
  • 2018. Jäger and Skutella generalise the Kawaguchi–Kyan bound to stochastic jobs, which gives ρ∗(m)≤4/3\rho^*(m) \le 4/3 for exponential jobs [7]. Jäger’s thesis adds bounds for each mm, e.g. ρ∗(2)≤1.309\rho^*(2) \le 1.309 [8].
  • 2021. Jäger writes in [8], p. 127: “It remains open to locate the worst-case approximation ratio of the WSEPT rule for exponentially distributed processing times within the interval [1.243, 4/3].”

The 4/34/3 comes from an argument for each fixed realisation of the processing times. For such a realisation, greedy load balancing is never worse than 4/34/3 times the best assignment in terms of squared loads, a deterministic result of Avidor, Azar and Sgall [9]. The argument only uses Var(pj)≤μj2\mathrm{Var}(p_j) \le \mu_j^2, never that the jobs are memoryless.

Results

1. The worst case over all mm. Let

ρ∞=sup⁡0<s≤1, μ>0 12+sμ+sμ2max⁡T≥0[(1+sμ)T−12T2+sμ2e−T/μ]=1.2442203207…\rho_\infty=\sup_{0<s\le1,\ \mu>0}\ \frac{\tfrac12+s\mu+s\mu^2}{\max_{T\ge0}\bigl[(1+s\mu)T-\tfrac12T^2+s\mu^2e^{-T/\mu}\bigr]} = 1.2442203207\ldots

For every mm and every instance, WSEPT≤ρ∞⋅OPT\mathrm{WSEPT} \le \rho_\infty \cdot \mathrm{OPT}. The bound is tight: ρ∗(m)→ρ∞\rho^*(m) \to \rho_\infty as m→∞m \to \infty. Interval arithmetic certifies 1.244220320737≤ρ∞≤1.2442203208371.244220320737 \le \rho_\infty \le 1.244220320837.

The extremal instance is the Jagtenberg–Schwiegelshohn–Uetz one with optimised parameters. Each machine gets one unit of work in tiny jobs (“dust”), and there is one long job of mean 1.771.77 for every 2.232.23 machines. They used about 2.32.3 machines per long job. With the exact OPT their instance gives 1.244161.24416. Their printed 1.24361.2436 comes from an approximation of OPT. So the 2013 lower bound was essentially the answer all along, and what was missing was just a proof that nothing beats it.

One realisation of the extremal instance on 9 machines

2. Each fixed mm. The worst case is always “dust plus mm jobs”:

ρ∗(m)=sup⁡d≥0, μ∈R≥0m E∑i=1m(d/m+xi)2E∑i=1mmax⁡(xi,λ)2.\rho^*(m)=\sup_{d\ge0,\ \mu\in\mathbb R_{\ge0}^m}\ \frac{\mathbb E\sum_{i=1}^m (d/m+x_i)^2}{\mathbb E\sum_{i=1}^m \max(x_i,\lambda)^2}.

Here the xix_i are independent exponentials with means μi\mu_i, and the water level λ\lambda solves ∑i(λ−xi)+=d\sum_i(\lambda-x_i)^+=d. The numerator is “dust first, then the mm jobs” (left of the figure). The denominator is “the mm jobs first, then the dust water-filled around them” (right).

3. Two machines.

ρ∗(2)=sup⁡w≥0(1+w)2+3(1+w)2+1+2e−w=1.2204310970…\rho^*(2)=\sup_{w\ge0}\frac{(1+w)^2+3}{(1+w)^2+1+2e^{-w}}=1.2204310970\ldots

The supremum is approached by one job of mean 11 plus dust of total mean w∗=1.0122w^* = 1.0122.

mm23456816∞\infty
best “hh equal jobs + dust”1.220431.230931.231241.236501.235281.238341.241681.24422

The values for m=2m = 2 and m=∞m = \infty are exact. For the other mm the table gives lower bounds on ρ∗(m)\rho^*(m). We conjecture they are exact: numerical search over all μ\mu for m≤4m \le 4 found nothing larger. If they are, ρ∗(m)\rho^*(m) is not monotone in mm.

Methods

The full proofs are in notes/proof.md, and tbh I didn’t check it line by line. But for human readers, the main ideas are:

Reduction (known). Splitting the weight vector into prefixes of the WSEPT list shows that the worst case has wj=μjw_j = \mu_j. Then all Smith ratios are equal, so the adversary chooses the order of the list [3, 10].

Cost = squared loads [3]. A policy cannot see pjp_j when it starts job jj, so the start time is independent of pjp_j. Also Epj2=2μj2\mathbb E p_j^2 = 2\mu_j^2. Together these give

2 E[cost]  ≥  Xm+E V,V=∑i=1m(Li−Lˉ)2,2\,\mathbb E[\mathrm{cost}] \;\ge\; \frac Xm+\mathbb E\,V,\qquad V=\sum_{i=1}^m (L_i-\bar L)^2,

with equality for policies that never idle. Here LiL_i is the total work done on machine ii, and X=E(∑jpj)2X=\mathbb E(\sum_jp_j)^2 is the same for every policy. So the whole question is “how ragged the final loads are”.

WSEPT: only the last mm jobs matter. When the last job on the list starts, every machine has been busy the whole time. So up to that moment all loads are equal. By memorylessness, the mm jobs running at that moment have fresh exponential remainders. Hence EV=E Q(F)\mathbb E V=\mathbb E\,Q(F), where FF is this final set of mm jobs and Q(F)=(2−1m)∑Fμi2−1m(∑Fμi)2Q(F)=(2-\frac1m)\sum_F\mu_i^2-\frac1m(\sum_F\mu_i)^2. The adversary puts the mm jobs with the largest QQ last. (This step is essentially in [3].)

OPT: sand and stones. Even an OPT that knew all processing times in advance could not make the loads more level than in a relaxation: keep those mm jobs as rigid “stones”, and turn every other job into divisible “sand”.

  • The best arrangement puts one stone on each machine and water-fills the sand around them.
  • The resulting raggedness is convex in the amount of sand.
  • So by Jensen’s inequality, the random amount of sand can be replaced by its mean dd.

Then the bounds meet. Turning all other jobs into dust can only increase the upper bound, and the instance “mm stones + dust” attains it. WSEPT pours the dust first and then the stones stick out. The policy “stones at time 0, then dust” water-fills without knowing anything in advance. That is result 2.

For exponential jobs, the probabilities that a job has started or is running by time tt satisfy the time-indexed LP of Skutella, Sviridenko and Uetz [11]. Pricing machine time at (T−t)+(T-t)^+ gives, for every TT,

OPT  ≥  Φ(T)=T∑jμj−m2T2+∑jμj2e−T/μj.\mathrm{OPT}\;\ge\;\Phi(T)=T\sum_j\mu_j-\frac m2T^2+\sum_j\mu_j^2e^{-T/\mu_j}.

Jensen’s inequality, with weights μi2\mu_i^2, merges the mm stones into one class of equal stones. This leaves WSEPT’s cost unchanged and can only decrease Φ\Phi. So every instance has ratio at most that of a single class, which is at most ρ∞\rho_\infty. Conversely, as m→∞m \to \infty the water level of a single class becomes deterministic and equals the maximiser of Φ\Phi. So the instance above reaches ρ∞\rho_\infty.

For two machines, both sides can be computed by hand. On the WSEPT side, Q≤μmax⁡2Q \le \mu_{\max}^2. On the OPT side, the imbalance is at least how far the longest job overshoots all the others combined. By memorylessness, the second moment of this overshoot is 2μ12e−v/μ12\mu_1^2e^{-v/\mu_1}, where vv is the total of the others.

Checks.

  • ρ∞\rho_\infty and ρ∗(2)\rho^*(2) are enclosed by interval branch and bound (Arb), plus analytic bounds on the tails.
  • Every inequality in the proof was compared with an exact dynamic program for OPT (idling allowed) on about a thousand random instances with m=2m = 2 to 44.
  • Adversarial searches found no instance above the bounds.

Reproduce

git clone https://github.com/CHHC-L/wsept-exponential
cd wsept-exponential
pip install -r requirements.txt
make
# certified enclosures of rho*(2) and rho_inf:
python src/cert_rho2.py
python src/cert_rho_inf.py
# compare every bound in the proof with the exact DP on random instances:
python src/check_bounds.py

Code, checks and proofs (notes/proof.md): github.com/CHHC-L/wsept-exponential

Note

Most of the code, including the “formal” proof, was done by Claude Opus 5.5.

References

  1. M. H. Rothkopf. Scheduling with random service times. Management Science 12(9):707–713, 1966.
  2. T. Kawaguchi, S. Kyan. Worst case bound of an LRF schedule for the mean weighted flow-time problem. SIAM J. Comput. 15(4):1119–1129, 1986.
  3. G. Weiss. Approximation results in parallel machines stochastic scheduling. Annals of Operations Research 26:195–242, 1990.
  4. R. H. Möhring, A. S. Schulz, M. Uetz. Approximation in stochastic scheduling: the power of LP-based priority policies. J. ACM 46(6):924–942, 1999.
  5. C. Jagtenberg, U. Schwiegelshohn, M. Uetz. Lower bounds for Smith’s rule in stochastic machine scheduling. WAOA 2010, LNCS 6534:142–153, 2011.
  6. C. Jagtenberg, U. Schwiegelshohn, M. Uetz. Analysis of Smith’s rule in stochastic machine scheduling. Operations Research Letters 41(6):570–575, 2013.
  7. S. Jäger, M. Skutella. Generalizing the Kawaguchi–Kyan bound to stochastic parallel machine scheduling. STACS 2018, LIPIcs 96:43:1–43:14, 2018.
  8. S. Jäger. Approximation in deterministic and stochastic machine scheduling. PhD thesis, TU Berlin, 2021.
  9. A. Avidor, Y. Azar, J. Sgall. Ancient and new algorithms for load balancing in the ℓp\ell_p norm. Algorithmica 29(3):422–441, 2001.
  10. C. Jagtenberg. On machine scheduling with exponentially distributed processing times. MSc thesis, Utrecht University, 2010.
  11. M. Skutella, M. Sviridenko, M. Uetz. Unrelated machine scheduling with stochastic processing times. Mathematics of Operations Research 41(3):851–864, 2016.