


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















(Submitted to IEEE Trans. on Circuits and Systems I )
Abstract We consider the problem of adjusting speeds of multiple computer processors shar- ing the same thermal environment, such as a chip or multi-chip package. We assume that the speed of processor (and associated variables, such as power supply voltage) can be controlled, and we model the dissipated power of a processor as a positive and strictly increasing convex function of the speed. We show that the problem of processor speed control subject to thermal constraints for the environment is a convex optimiza- tion problem. We present an efficient infeasible-start primal-dual interior-point method for solving the problem. We also present a decentralized method, using dual decom- position. Both of these approaches can be interpreted as nonlinear static control laws, which adjust the processor speeds based on the measured temperatures in the system. We give a numerical example to illustrate performance of the algorithms.
We consider a multi-processor system, in which many processors share a common thermal environment; for example, many processor cores on a single chip, or processors on separate chips in a multi-chip package. We assume that the speed of each processor (along with associated variables such as power supply voltage) can be varied over a range. The speed of each processor affects its power dissipation, which in turn affects the over all temperature distribution of the system. The goal is to adjust the speeds (and associated variables) to obtain the maximum total processing capability, while respecting limits on the temperature at various points in the system. A variation on this problem is to choose the processor speeds to minimize the maximum temperature in the system, while meeting a given required total processing capability. In this paper we show that the problem of static processor speed control with thermal constraints can be posed as a convex optimization problem. We then give two methods
to solve the problem. The first method is an efficient primal-dual interior-point method, which is extremely fast and can solve a problem instance with a hundred processors in tens of milliseconds, and can scale to much larger problems. This method can be warm- started to track the temperature changes due to other thermal sources beyond our control, and therefore can be considered as a complex nonlinear control law. The second method is based on solving a dual problem of the (primal) processor speed problem. The benefit of this approach is that it gives a decentralized method, where each processor adjusts its speed based only on temperature measurements at nearby points. This method too can be interpreted as a nonlinear feedback control law, which is in addition decentralized. Processor speed control with power and thermal constraints has been a topic of extensive research in the last few years; see, e.g., the surveys [IP05, SSH+03, DM06] and the references therein. Here we briefly discuss some of the results. Several authors have applied formal control techniques to derive various feedback control laws for the processor speeds [BM01, SAS02, RS99, SA03, HRYT00, HXV+05]. Pruhs and his co-authors formulate the processor speed control problems with power, thermal, and task precedence constraints as scheduling optimization problems and present heuristic algorithms to solve them [BKP04, PvSU05]. In [JG06], energy aware task scheduling in real-time systems is posed as a convex optimization problem and solved using the ellipsoid method. Skadron and others have implemented a thermal modeling tool for electronic devices, called HotSpot; using it they give and simulate a temperature-aware processor system in [SSS+04]. (For more details and references about thermal modeling, see Appendix A.) A more general approach of optimization with thermal constraints described as partial-differential equations is given in [Gho06] and others. For some preliminary work on using convex optimization for multi-processor frequency assignment, and some experimental results, see [MMA+07]. The main contributions of the present paper are as follows. We describe the first highly efficient interior-point algorithm, and the first distributed algorithm (with convergence proof), for solving the problem of processor speed control with thermal constraints. In this paper, we emphasize algorithm and system aspects of the problem, and do not devote much attention to physical and circuit-level modeling. We outline the rest of the paper. In §2 we describe our power and thermal model, and give the problem formulation. In §3 we present a custom infeasible-start primal-dual algo- rithm, together with its convergence properties, implementation details, and some algorithm enhancements. In §4 we describe our dual decomposition method, prove convergence, and show how we can recover a primal solution (optimal processor speeds) from the dual problem solution. In §5 we present some numerical results for the algorithms, and we conclude the paper in §6.
For future use we give some properties of the matrix G. The entry Gij has units of ◦C/W, and gives the temperature rise at the point i due to one watt of power dissipated
by processor j. The matrix G is elementwise nonnegative (Gij ≥ 0) and, in theory, is always dense, i.e., Gij > 0. However, it can be very well approximated by a sparse matrix by truncating small entries to zero. In this case, the nonzeros in the jth column of G correspond to the points that are thermally affected by the jth processor. The matrix G can be found by finite element analysis (see Appendix A), or by direct measurements in an existing system.
The total processing capability (throughput) of the system is given by the sum of the pro- cessor speeds U (s) = s 1 + · · · + sn = 1 T^ s. (4)
This is a simple and a common choice for the over all utility derived by the system. Later we will comment on the use of more complex system utility functions. The thermal constraint for the system is that no observed temperature in the system can exceed a given maximum temperature Tmax:
T = Gφ(s) + Tother + Tamb 1 ≤ Tmax 1 , (5)
where ≤ denotes componentwise inequality. If there is a temperature sensor at (or in practice, near) each heat source, then T ≤ Tmax 1 will imply that temperatures everywhere are less or equal to Tmax, by the maximum principle for the heat equation, which states that the maximum temperature will always be located at a point where there is a power (heat) source. The processor speed control problem is to choose processor speeds s (between the given limits) so as to maximize the over all system utility, subject to the thermal constraint:
maximize U (s) subject to Gφ(s) + Tother + Tamb 1 ≤ Tmax 1 smin ≤ s ≤ smax.
The problem variables are s ∈ Rn; the problem data are G ∈ Rm + ×n, Tamb, Tmax ∈ R, Tother ∈ Rm, smin, smax ∈ Rn, and the functions φ 1 ,... , φn. The problem (6) is a convex optimization problem since the objective is a linear function, and all the constraint functions are convex; see, e.g., [BV04, Chap. 4]. To see that the thermal constraint (5) is convex, i.e., the components of its lefthand side are convex functions of s, we note that the matrix G is nonnegative, so each entry of T is a nonnegatively weighted linear combination of convex functions, and therefore convex. The problem (6) is readily solved using standard interior-point methods; moreover, by exploiting the particular structure of the problem, we will see that interior-point methods can solve very large-scale instances of the problem, very efficiently.
For future use we define the temperature slack vector z ∈ Rm^ as
z = Tmax 1 − T = Tmax 1 − Gφ(s) − Tother − Tamb 1. (7)
The slack zi gives the slack or margin in the thermal constraint Ti ≤ Tmax. The thermal constraint (5) then means that every element of z is nonnegative, i.e., z ≥ 0. Note that z is readily found from the temperature measurements. For future use we also define nonnegative slacks between the processor speeds and the lower and the upper speed limits as
zl = s − smin, zu = smax − s. (8)
We finish this section with an important assumption. We assume that problem (6) is strictly feasible, which means that when all processors operate at minimum speed (i.e., s = smin), the thermal constraint (5) is satisfied strictly (i.e., with a positive margin):
Gφ(smin) + Tother + Tamb 1 < Tmax 1. (9)
This assumption is just Slater’s condition for the problem (6) and, among other things, guarantees that strong duality holds; see [BV04, §5.2.3].
3 A primal-dual interior-point method
In this section we present an infeasible-start primal-dual interior-point method [BV04, §11.7], [Wri97],[NW06, Chap. 19] to solve problem (6). The primal-dual interior-point method uses Newton’s method, applied to a suitably modified form of the optimality conditions, which we describe below. We start with the optimality conditions for (6). Let λ ∈ Rm + be the dual variables associated with the thermal constraint (5), and λl ∈ Rn + and λu ∈ Rn + the dual variables associated with the lower and the upper speed limits, respectively. The Lagrangian function (see, e.g., [BV04, Chap. 5]) of problem (6) is
L(s, λ, λu, λl) = 1 T^ s − λT^ (Gφ(s) + Tother + Tamb 1 − Tmax 1 ) − λTu (s − smax) − λTl (−s + smin)
= 1 T^ s + λT^ z + λTu zu + λTl zl.
The KKT optimality conditions for the problem are
1 − diag(∇φ(s))GT^ λ − λu + λl = 0 diag(λ)z = 0 diag(λu)zu = 0 diag(λl)zl = 0 λ, λu, λl ≥ 0 z, zu, zl ≥ 0.
which can be written out explicitly as
Hs −DsGT^ −I I 0 0 0 GDs 0 0 0 I 0 0 I 0 0 0 0 I 0 −I 0 0 0 0 0 I 0 diag(z) 0 0 diag(λ) 0 0 0 0 diag(zu) 0 0 diag(λu) 0 0 0 0 diag(zl) 0 0 diag(λl)
∆s ∆λ ∆λu ∆λl ∆z ∆zu ∆zl
= −
rd rp ru rl rcentp rcentu rcentl
,
(10) where
Hs = −∇^2 φ(s)diag(GT^ λ) Ds = diag(∇φ(s)) rd = 1 − DsGT^ λ − λu + λl rp = Gφ(s) + Tother + Tamb 1 − Tmax 1 + z ru = s − smax + zu rl = smin − s + zl rcentp = diag(λ)z − σμ 1 , rcentu = diag(λu)zu − σμ 1 , rcentl = diag(λl)zl − σμ 1.
At each iteration of the algorithm, we solve the Newton system (10) to find a new search direction, and then choose the step length so the inequalities λ, λu, λl, z, zu, zl ≥ 0 are strictly satisfied, and the duality measure μ, together with the primal, dual, and centrality residuals, are properly reduced. It is important for the progress of the algorithm to balance out these various aims, and as the primal and dual variables approach optimality, we equally need to drive the residuals to zero. Our infeasible primal-dual interior point algorithm for solving problem (6) loosely follows the IPF algorithm in [Wri97, p. 166], and it proceeds as follows:
given ǫ > 0, σ ∈ (0, 1) Initialize: s with smin < s < smax; z = 1 , λ = 1 while μ > ǫ
The line search in step 2 is a standard backtracking line search, based on the reduc- tion of the duality measure μ and norm of the residuals, and modified to ensure that λ, λu, λl, z, zu, zl > 0. We denote the current iterate as s, ˜λ = (λ, λu, λl), and ˜z = (z, zu, zl), and the next iterate as s+, λ˜+, and ˜z+, i.e.,
s+^ = s + α∆s, λ˜+^ = ˜λ + α∆λ,˜ z˜+^ = ˜z + α∆˜z.
With the new dual and slack iterates ˜λ+^ and ˜z+, we associate the new duality measure,
μ+^ = (λ˜+)T^ z˜+/(m + 2n).
We first compute the largest positive step length, not exceeding one, that gives λ˜+^ ≥ 0 and ˜z+^ ≥ 0, i.e.,
αmax^ = sup{α ∈ (0, 1] | λ˜ + α∆˜λ ≥ 0 , ˜z + α∆˜z ≥ 0 } = min
1 , min{−˜λi/∆˜λi | ∆˜λi < 0 }, min{−z˜i/∆˜zi | ∆˜zi < 0 }
We start the backtracking with α = 0. 99 αmax, and multiply α by ρ ∈ (0, 1) until we have
‖rd‖ 2 ≤ (‖r^0 d‖ 2 /μ^0 )βμ+, ‖(rp, ru, rl)‖ 2 ≤ (‖(r^0 p, r u^0 , r l^0 )‖ 2 /μ^0 )βμ+, (11) diag(˜λ)˜z ≥ γμ+, μ+^ ≤ (1 − 0. 01 α)μ, (12)
where β > 0 and γ ∈ (0, 1) are the backtracking parameters, and r^0 d, r p^0 , r^0 u, r^0 l , μ^0 are residual values and the duality measure given the initial starting points, respectively. The criteria in (11) enforces a decrease in the dual and primal residuals, while the criteria in (12) enforces reduction in the centrality residual and mandatory decrease in the duality measure. Common choices for the algorithm and backtracking parameters are σ = 0.5, β = 5, γ = 0.05, and ρ = 0.85. We take the tolerance to be ǫ = 10−^8. The most expensive part of computing the primal-dual search direction is solving the linear system (10). Next we present an efficient method for solving these equations.
The linear system (10) has 5n + 2m linear equations in 5n + 2m variables, which can be solved directly for small n and m (for example, using the PLU factorization and the for- ward/backward solve steps). However, more efficient solution methods can be obtained by exploiting structure in the problem, which we do next. We note that the matrix Dr(y) is highly structured since most of the blocks are di- agonal. We also note that n will be a small or a modest number, probably at most in thousands [Bor07]. (Current multi-processor systems have n small, no more than a hundred; for example, Intel has recently demonstrated a prototype multi-processor system with 80 processor cores [VHR+07]). Also recall that we usually have m ≫ n, which will guide our choice of the pivoting order during block elimination of the system (10). We first eliminate the variables ∆z = −GDs∆s − rp, ∆zu = −∆s − ru, and ∆zl = ∆s − rl to obtain
Hs −DsGT^ −I I −diag(λ)GDs diag(z) 0 0 −diag(λu) 0 diag(zu) 0 diag(λl) 0 0 diag(zl)
∆s ∆λ ∆λu ∆λl
rd rcentp − diag(λ)rp rcentu − diag(λu)ru rcentl − diag(λl)rl
the previous optimal solution to initialize (i.e., warm-start) the primal-dual method when solving the perturbed problem [YW02, GG03]. Extensive numerical tests show that with warm-starting the number of iterations to achieve ǫ = 10−^4 accuracy drops down from around 23 to around 2–4 iterations. We list some applications of the warm-start technique:
4 Dual decentralized method
In the previous section we interpreted a warm-starting primal-dual interior-point method as a complex nonlinear control law for the processor speed control given the temperature constraints, which can track changes in the problem data. In this section we use the method of dual decomposition applied to problem (6) to derive a simpler nonlinear feedback law, which is in addition decentralized.
We start by deriving a dual problem for (6). The partial Lagrangian function for maximizing U (s) = 1 T^ s is given by
L(s, λ) = 1 T^ s − λT^ (Gφ(s) + Tother + Tamb 1 − Tmax 1 )
=
∑^ n
i=
si − gTi λφi(si)
where gi ∈ Rm^ is the ith column of G and λ ∈ Rm + are the dual variables associated with the thermal constraint (5), as used in §3. The dual variable λi ≥ 0 can be interpreted as the price of temperature violation at node i. The dual function is
g(λ) =
∑^ n
i=
ψi(gTi λ) + λT^ (Tmax 1 − Tother − Tamb 1 ),
where ψi(y) = max si∈[smin,smax]
(si − yφi(si)).
The functions ψi are convex, since by definition they are pointwise maximums of affine functions [BV04, Chap. 3]. Then the dual function g(λ) is also convex since it is a sum of convex functions with linear terms. The dual problem is minimize g(λ) subject to λ ≥ 0 ,
where the optimization variables are the dual variables λ ∈ Rm. This is a convex optimization problem since it is a minimization of a convex function over a convex set (positive orthant). Let λ⋆^ denote an optimal solution of the dual problem (15). Before we proceed to give an algorithm for solving (15), we will give some properties of the dual function g and the functions ψi. We can readily find the value of the function ψi, which is attained at the optimal solution s⋆i (y) given by
s⋆i (y) = argmax si∈[smin,smax]
(si − yφi(si)) =
φ ′− 1 i (1/y)^ φ
′− 1 i (1/y)^ ∈^ [smin, smax] smin φ
′− 1 i (1/y)^ ≤^ smin smax φ ′− 1 i (1/y)^ ≥^ smax.
The function value is
ψi(y) =
s⋆i (y) − yφi (s⋆(y)) s⋆i (y) ∈ [smin, smax] smin − yφi(smin) s⋆i (y) ≤ smin smax − yφi(smax) s⋆i (y) ≥ smax.
Because s⋆(GT^ λ) is the unique maximizer of L(s, λ) in (14), it follows that s⋆(GT^ λ⋆) is equal to an optimal solution s⋆^ of the primal problem (6) given that the strong duality holds, which is true because of the assumption (9). (For more details, see [BV04, §5.5.5].) In other words, if prices are optimal, they lead to optimal speeds. The function ψi is differentiable with
ψ ′ i(y) =
−φi (s⋆i (y)) s⋆i (y) ∈ [smin, smax] −φi(smin) s⋆i (y) ≤ smin −φi(smax) s⋆i (y) ≥ smax.
The gradient of the dual function is then given by
∇g(λ) =
∑^ n
i=
ψ′ i(giT λ)gi + (Tmax 1 − Tother − Tamb 1 )
= Tmax 1 − Gφ(s⋆(GT^ λ)) − Tother − Tamb 1 = z(s⋆(GT^ λ)),
which is precisely the temperature slack at each location, evaluated for speeds s⋆(GT^ λ).
The distributed algorithm is given by the repeated updates of the form
λ(k+1)^ =
λ(k)^ − α∇g(λ(k))
Let λ⋆^ be an arbitrary optimal point. Then we have
(λ⋆^ − α∇g(λ⋆))+ = λ⋆,
which comes from the (optimality) condition that −∇g(λ⋆) supports Rm + at λ⋆. We consider the squared distance from the current point to an optimal point, and we show that this distance decreases with each iteration. We have
‖λ(k+1)^ − λ⋆‖^22 = ‖
λ(k)^ − α∇g(λ(k))
⋆ (^) − α∇g(λ⋆))
2 2 ≤ ‖λ(k)^ − α∇g(λ(k)) − λ⋆^ − α∇g(λ⋆)‖^22 = ‖λ(k)^ − λ⋆‖^22 − 2 α(∇g(λ(k)) − ∇g(λ⋆))T^ (λ(k)^ − λ⋆) + α^2 ‖∇g(λ(k)) − ∇g(λ⋆)‖^22 ,
where the inequality comes from the fact that a projection onto a convex set is contractive, i.e., after projection the distance between the projected points cannot increase. Since g is a convex function, we always have
(∇g(λ(k)) − ∇g(λ⋆))T^ (λ(k)^ − λ⋆) ≥ 0. (18)
To proceed with the proof, we need to derive a lower bound on the inner product in (18) and an upper bound for the quantity ‖∇g(λ(k)) − ∇g(λ⋆)‖ 2. We obtain the lower bound ( ∇g(λ(k)) − ∇g(λ⋆)
(λ(k)^ − λ⋆) =
Gφ(s⋆(GT^ λ⋆)) − Gφ(s⋆(GT^ λ(k)))
(λ(k)^ − λ⋆) ≥ σmin(G)(min i φ
′ i(smin))‖λ
(k) (^) − λ⋆‖ (^2) ,
where σmin(G) is the smallest singular value of G. Defining
M = σmin(G)(min i
φ ′ i(smin)),^ (19)
we have M ‖λ(k)^ − λ⋆‖^2 ≤
∇g(λ(k)) − ∇g(λ⋆)
(λ(k)^ − λ⋆). (20) The upper bound is given by the Lipschitz condition on the gradient ∇g,
‖∇g(λ 1 ) − ∇g(λ 2 )‖ = ‖Gφ(s⋆(GT^ λ 1 )) − Gφ(s⋆(GT^ λ 2 ))‖ ≤ ‖G‖‖φ(s⋆(GT^ λ 1 )) − φ(s⋆(GT^ λ 2 ))‖ ≤ ‖G‖(max i φ
′ i(smax))‖λ^1 −^ λ^2 ‖.
Defining L = σmax(G)(max i φ
′ i(smax)),^ (21)
where σmax(G) = ‖G‖ is the largest singular value of G, we have
‖∇g(λ(k)) − ∇g(λ⋆)‖^22 ≤ L‖λ(k)^ − λ⋆‖^22. (22)
Combining the bounds (20) and (22) with the inequality above we get
‖λ(k+1)^ − λ⋆‖^22 ≤ (1 − 2 αM + α^2 L)‖λ(k)^ − λ⋆‖^22 , (23)
which proves the convergence of the algorithm given that the stepsize satisfies
0 < α < 2 M/L. (24)
The convergence rate is linear with the rate determined by the constant K = 1 − 2 αM + α^2 L. This constant is minimized with the stepsize choice α = M/L and is equal to K⋆^ = 1 − M/L. In practice,
σmin(G)(mini φ ′ i(smin)) σmax(G)(maxi φ′ i(smax))
κ(G)
mini φ ′ i(smin) maxi φ′ i(smax)
can be very small since it is related to the inverse of the condition number of G (κ(G)) and the minimum and maximum slope of the functions φi.
5 Numerical example
In this section we present some numerical results for a synthetic problem instance in order to illustrate performance of the proposed algorithms: the primal-dual algorithm in §3 and the distributed algorithm in §4. As our example we consider a chip with an 10 × 10 array of processors, and a 55 × 75 grid of thermal sensors, which could be actual hardware sensors or nodes in the finite element thermal model. Thus our problem dimensions are n = 100 and m = 4125. The locations of processors and sensors are shown in figure 1. We take Tamb = 25◦C, Tmax = 75◦C, and we use the temperature map in figure 2 as Tother. The matrix G was generated using the finite element model described in Appendix A, with thermal conductance k = 1 between all the nodes, and thermal conductance k = 10 between all boundary nodes and the external environment. We take smin = 1 and smax = 3. We take the power functions to all be the same, pi = φi(si) = s^3 i , following the well-known cube speed-power model. We implemented the algorithms in Matlab and performed numerical simulations on a 2.8 GHz Athlon CPU, with 1 GB of RAM, running Linux. We used the CVX pack- age [GBY07] to verify correctness of the results obtained by our algorithms.
We compare performance of the primal-dual algorithm versus a simple suboptimal scheme for (6), in which we set all processor speeds to be equal, and increase the speed until the
U equal^ = 156. 0
25 ◦C
35 ◦C
45 ◦C
55 ◦C
65 ◦C
75 ◦C
U opt^ = 180. 6
Figure 3: Left. Temperature distribution with all speeds equal. Right. Temperature distribution with optimal speed allocation.
thermal constraint becomes active. The equal-speed (left) and optimal (right) temperature distributions are shown in figure 3, together with the values of the system throughput. We note that the optimal speed allocation achieves about 16% throughput improvement while respecting the thermal constraint. A histogram of the optimal processor speeds is shown in figure 4, together with the value of the speed chosen for all the processors when the speeds are all equal. Figure 5 shows the optimal trade-off curve between Tmax and the maximum achievable throughput U opt^ and U equal, for the optimal primal-dual method and the equal-speed scheme, respectively. We note that the optimal scheme significantly outperforms the equal-speed scheme for all values of Tmax.
Figure 6 shows the plot of the duality measure μ and the residual ‖(rp, rd)‖ 2 versus the iteration number for a single run of the algorithm. We see that the primal-dual algorithm converges within 35 iterations. Our simple Matlab implementation requires a few seconds to solve the problem, using dense G (with all 412500 entries). We truncated the entries in G with values below 0.15, and then re-scaled each column to have the same column sum as the original matrix. (This preserves the total temperature rise from each source.) This results in a sparse matrix Gˆ with 27680 entries, i.e., a sparsity around 6.7%. This results in less than 1.3% error in the computed speeds. The time required to solve the problem, using the sparse thermal model with Gˆ, was around 0.7 seconds. We estimate that a C implementation of our algorithm would execute in around 0.1 seconds for the same sparse instance.
0
5
10
15
1 1. 5 2 2. 5 3
sequal
Figure 4: Histogram of optimal processor speeds, together with the value of optimal equal speed sequal.
Tmax
opt
and
equal
50 75 100 125
100
150
200
250
Figure 5: Optimal tradeoff curve for Tmax versus U opt^ (solid curve) and tradeoff curve between Tmax and suboptimal U equal^ when all speeds are equal (dashed curve).
0
25
50
5 10 15 20 25
Figure 7: Histogram of the total number of iterations needed for warm-start initial- ization (left, darker) versus cold-start initialization (right, lighter).
optimal trade-off curves between competing problem parameters. The optimal trade-off between Tmax and U opt^ in figure 5 was generated using the warm-starting technique; the first point was obtained using the cold-start and then subsequently we used warm-starting to obtain remaining 100 points on the curve. The primal-dual method required 30 iterations to obtain the first point, after which it needed only about 2–3 iterations for each new point. In our example, the total trade-off curve was generated using about 280 total iterations, while the cold-start method required close to 2180 iterations. Therefore, warm-starting can be used to efficiently perform trade-off analysis and explore the problem design space.
In this section we investigate performance of the distributed algorithm when used as a simple distributed control law, which tracks changes in the problem parameters. We test the algorithm using the problem setup described at the start of §5. For our problem instance, we found constants M = 1.48 and L = 1057.1, which imply that the proposed algorithm will converge as long as 0 < α < 2. 8 × 10 −^3. However, extensive numerical experiments suggest that the algorithm when used with smoothing actually converges for larger values of α, up to around 0.05. We investigate how well the distributed algorithm tracks changes in the ambient temper- ature and the power supplied by uncontrollable external sources. We introduce the following event: at iteration k = 200 we randomly perturb the ambient temperature and the powers of
the external sources by ±10% around their initial values. Figure 8 and 9 shows convergence of the maximum temperature and the system throughput, for the distributed method with no smoothing (θ = 1) and one with smoothing (where we set θ = α = 0.03), respectively. We compare the convergence curves versus the optimal values obtained by the primal-dual method. We note that the distributed algorithm with smoothing reacts very well to the changes, much better than the standard method without smoothing (which takes a long time to converge to the optimal values). In our computational experiments, we also found that the method with smoothing was much more robust to more aggressive stepsizes and initialization from different λ.
6 Conclusions
In this paper, we have presented two algorithms for adjusting speeds of multiple processors subject to common thermal constraints. The first algorithm is an efficient implementation of an infeasible-start primal-dual interior-point method, while the second one is a decentralized method based on dual decomposition. Both algorithms can be interpreted as nonlinear control laws that can track changes in the problem data, and therefore can be used for real-time processor speed control in modern multi-processor systems. Numerical simulations verify that both algorithms perform well in practice. In the future, we will experimentally verify performance of these algorithms, implemented on a real multi-processor system. We also list some variations and extensions of the processor speed control problem (6) and the proposed algorithms. First, we can easily substitute a nonlinear concave differentiable utility function for the total throughput U (s) = 1 T^ s used in this paper. For example, we can use a logarithmic utility, U log(s) =
∑n i=1 log^ si, as is commonly used in economics and networking. This utility function will achieve proportional fairness, at least when the lower and upper processor speeds bounds are not active. Both the primal-dual and dual decomposition methods are readily modified to handle such problems. A second extension is to the case in which active cooling is used. Here we have some additional actuators, also within our control, that can pump heat out of the environment, up to some given maximum rate. Active cooling can be modeled by adding the term −Bu to the model for T , where B is an elementwise nonnegative matrix, and u is the nonnegative vector of cooling rates. If there is no cost to using cooling, we would obviously operate the cooling at maximum rate. But we can subtract a cost (say, in energy) of using the cooling, or limit its total. The result is still a convex optimization problem. Third, we can turn the problem formulation around, and minimize the maximum temper- ature subject to obtaining a specified level of throughput, or some other convex constraint on the speed variable. This problem can be formulated as the following optimization problem (in epigraph form): minimize T subject to Gφ(s) + Tother + Tamb 1 ≤ T smin ≤ s ≤ smax w(s) ∈ W,