the price of forgetting in parallel routing
play

The Price of Forgetting in Parallel Routing Jonatha Anselmi & - PowerPoint PPT Presentation

The Price of Forgetting in Parallel Routing Jonatha Anselmi & Bruno Gaujal INRIA Aussois June, 2011 (INRIA ) 1 / 21 Introduction Goal of my talk : explore different types of routing policies (selfish/social, with/without memory) in a


  1. The Price of Forgetting in Parallel Routing Jonatha Anselmi & Bruno Gaujal INRIA Aussois – June, 2011 (INRIA ) 1 / 21

  2. Introduction Goal of my talk : explore different types of routing policies (selfish/social, with/without memory) in a task-resource system and compare their performances. This leads to the introduction of the concepts of price of anarchy and price of forgetting, respectively. (INRIA ) 2 / 21

  3. Flow in parallel servers server 1 task flow router server 2 server 3 (INRIA ) 3 / 21

  4. Three models of information structure Complete information : Instance (packet sizes and arrival times) is fully known by the router. No information : The instance is completely unknown to the router that only discovers the data as it comes. Statistical information : The router does not know the actual instance but has some knowledge about its statistics (arrival rate, average size of packets, distribution,...) (INRIA ) 4 / 21

  5. Two models for the cost The cost model can either be the worse case : the worse possible response time over all tasks (WCET), or the average case : the mean response times over the set of tasks, equipped with a distribution. (INRIA ) 5 / 21

  6. On-Line vs Off-line Scheduling Here, the controller has statistical information on the instance x (arrrival times and sizes) and minimizes the average response time E ( r π ( x )). Off-Line case : the controller must take all its decisions beforehand. On-Line case : the controller sees the current state (backlog) up to time n and can adapt its decisions to it, (they coincide in the deterministic case). The expected cost of the optimal policy at time n is : Off line : a 1 , ··· , a n E ( r a 1 , ··· , a n ( x )) . inf On Line : d 1 , ··· , d n E ( r d 1 ( x 1 ) , ··· , d n ( x n ) ( x )) . inf Theorem There exists an optimal deterministic policy (in both cases). (INRIA ) 6 / 21

  7. Average response time in parallel queues Assumptions on the arrival times and task sizes. exponential queue Q µ 1 1 Poisson’s arrivals Router Q µ 2 2 exponential queue Service times in queues serve packets at rate µ 1 and µ 2 resp. The arrival sequence is Poisson with parameter λ . (INRIA ) 7 / 21

  8. On-Line : Optimal Control Problem This problem can be solved numerically in the on-line case using optimal control techniques. The computation is NP-hard in general (with m servers). Theorem When the servers are identical, Join the Shortest Queue (Selfish policy) (JSQ) is an optimal policy. Theorem (Weber, R. and Weiss, G. (1990)) When the number of servers goes to infinity, index policies are optimal. (INRIA ) 8 / 21

  9. Off-line : Bernoulli Policy As for off-line policies, the scheduler has to decide where to send each job in advance. One possibility : send jobs to queues with probabilities p 1 , · · · , p m . The optimal Bernoulli policy can be computed using the following mathematical program. m p i R Opt � Bernoulli = min µ i − λ p i p 1 ,... p m i =1 under the constraints � i p i = 1 and 0 ≤ p i < µ i /λ . This problem can be solved in closed form using a Lagrangian relaxation. (INRIA ) 9 / 21

  10. Off-line : Bernoulli Policy The i s fastest servers are used, where � � ( µ ( i ) − λ ) 2 i s = min i ≥ 1 : µ i +1 ≤ . √ µ j ) 2 ( � i j =1 Moreover, the optimal probability p ∗ i to chose server i ≤ i s is √ µ i i = 1 p ∗ λ ( µ i − β ) √ µ j � is where β def j =1 = µ ( is ) − λ . Finally, the mean response time in the utilized server i is Bernoulli = β √ µ i , R Opt i ≤ i ≤ i s . (INRIA ) 10 / 21

  11. More advanced off-line policies Here, we compare with Gamma and with a mixture of Erlangs (where the optimal solution can also be computed). 0.5 "resKM100.dat" "resEM100.dat" "resG100.dat" "resCB100.dat" 0.45 0.4 0.35 0.3 0.25 0.2 0.15 0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 (INRIA ) 11 / 21

  12. Price of Forgetting Price of Forgetting measures the benefit of having memory in the scheduler. PoF def = R Opt Bernoulli / R Opt . (1) Computing R Opt in the off-line case is very difficult (open problem). There exists non trivial lower bounds : N R Opt ≥ p i R D ( λ/ p i ) / GI / 1 � inf . i p 1 ,..., p N ≥ 0: i =1 p 1 + ··· + p N =1 Theorem 1 PoF ( N ) ≤ 1 + . min N i =1 µ 2 i s 2 i The PoF is bounded by 2 in the exponential case (but can be unbounded when the coefficient of variation goes to 0). (INRIA ) 12 / 21

  13. Price of Forgetting (II) 2.1 L=0.97 L=0.99 2 1.9 L=0.85 1.8 L=0.70 S Memory /S No memory 1.7 L=0.55 1.6 1.5 L=0.40 1.4 L=0.25 1.3 1.2 1.1 1 50 100 500 1000 5000 10000 N (INRIA ) 13 / 21

  14. Price of Forgetting (III) 2.2 Price of forgetting with Formula (14) (homogeneous case) 2.1 Price of forgetting as in Table 1 (heterogeneous case) 2 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 1 0.1 0.25 0.40 0.55 0.70 0.85 0.95 0.99 L,U (INRIA ) 14 / 21

  15. Price of Anarchy The Price of Anarchy (PoA) [Papadimitriou, 99] is an index measuring the inefficiency of a decentralized system with respect to its centralized counterpart in presence of selfish users. Here, it is the response-time ratio between the worst-case situation where each task is selfish (maximizes its own response time) and the contrasting situation where jobs are routed optimally by a scheduler, yielding the social optimum . = R We ( N ) PoA ( N ) def R Opt ( N ) ≥ 1 . (INRIA ) 15 / 21

  16. Selfish routing Tasks wish to minimize their mean waiting time and select a server accordingly. They are allowed to randomize regarding their choice of servers. The solution is a symmetric Nash equilibrium under steady-state con- ditions : The waiting times in all used servers are equal. 1 ≤ i ≤ N : µ i +1 ≤ µ ( i ) − λ � � The k fastest servers are used : k = min . i The probability to join server i is � � p i = 1 k µ i − . λ µ ( k ) − λ and the corresponding response time is k R We ( N ) = µ ( k ) − λ. (INRIA ) 16 / 21

  17. The Price of Anarchy with a twist The performance ratio between the selfing routing using probabilities ( p 1 , . . . , p N ) and the best routing probabilities ( p ∗ 1 , . . . , p ∗ N ) is Theorem (Haviv and Roughgarden, 2007) R We ( N ) / R opt Bernoulli ( N ) ≤ N (tight) (INRIA ) 17 / 21

  18. The Price of Anarchy with a twist The performance ratio between the selfing routing using probabilities ( p 1 , . . . , p N ) and the best routing probabilities ( p ∗ 1 , . . . , p ∗ N ) is Theorem (Haviv and Roughgarden, 2007) R We ( N ) / R opt Bernoulli ( N ) ≤ N (tight) PoA ( N ) = PoA Bernoulli ( N ) PoF ( N ) . In the exponential case, since PoF ( N ) ≤ 2, PoA ( N ) ≤ 2 N . (INRIA ) 17 / 21

  19. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 1 m = (INRIA ) 18 / 21

  20. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 θ 1 m = (INRIA ) 18 / 21

  21. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 s θ 1 m = (INRIA ) 18 / 21

  22. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 1 m = 0 (INRIA ) 18 / 21

  23. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 1 m = 0 0 (INRIA ) 18 / 21

  24. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 1 m = 0 0 1 (INRIA ) 18 / 21

  25. Optimal Policy : Billiard sequences Theorem Billiard sequences are optimal routing policies in two queues (or N deterministic fully loaded queues). They perform within 1% of optimal in most cases. 1 0 0 1 m = 0 0 1 0 (INRIA ) 18 / 21

  26. The hard part : Rate computation α = 0 2 opt 1/S α = 1/4 opt α = 1/3 opt α = 1/2 opt 1/S = c 1/S 2 1 α =1 opt Instability domain 1 1/S (INRIA ) 19 / 21

  27. Real life test Billiard sequences have been tested in a Boinc application (from D. Kondo and B. Javadi). (INRIA ) 20 / 21

  28. Thank you (INRIA ) 21 / 21

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend