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

the price of forgetting in parallel routing
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

The Price of Forgetting in Parallel Routing

Jonatha Anselmi & Bruno Gaujal

INRIA

Aussois – June, 2011

(INRIA ) 1 / 21

slide-2
SLIDE 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

  • f forgetting, respectively.

(INRIA ) 2 / 21

slide-3
SLIDE 3

Flow in parallel servers

task flow server 2 server 3 server 1 router

(INRIA ) 3 / 21

slide-4
SLIDE 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

  • f packets, distribution,...)

(INRIA ) 4 / 21

slide-5
SLIDE 5

Two models for the cost

The cost model can either be the worse case : the worse possible response time over all tasks (WCET),

  • r the average case : the mean response times over the set of tasks,

equipped with a distribution.

(INRIA ) 5 / 21

slide-6
SLIDE 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 : inf

a1,··· ,an E(ra1,··· ,an(x)).

On Line : inf

d1,··· ,dn E(rd1(x1),··· ,dn(xn)(x)).

Theorem There exists an optimal deterministic policy (in both cases).

(INRIA ) 6 / 21

slide-7
SLIDE 7

Average response time in parallel queues

Assumptions on the arrival times and task sizes.

Q Q Poisson’s arrivals

exponential queue exponential queue µ µ 1

2 2 1

Router

Service times in queues serve packets at rate µ1 and µ2 resp. The arrival sequence is Poisson with parameter λ.

(INRIA ) 7 / 21

slide-8
SLIDE 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

slide-9
SLIDE 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 p1, · · · , pm. The optimal Bernoulli policy can be computed using the following mathematical program. ROpt

Bernoulli = min p1,...pm m

  • i=1

pi µi − λpi under the constraints

i pi = 1 and 0 ≤ pi < µi/λ.

This problem can be solved in closed form using a Lagrangian relaxation.

(INRIA ) 9 / 21

slide-10
SLIDE 10

Off-line : Bernoulli Policy

The is fastest servers are used, where is = min

  • i ≥ 1 : µi+1 ≤

(µ(i) − λ)2 (i

j=1

õj)2

  • .

Moreover, the optimal probability p∗

i to chose server i ≤ is is

p∗

i = 1

λ(µi − √µi β ) where β def =

is

j=1

√µj µ(is )−λ . Finally, the mean response time in the utilized server

i is ROpt

Bernoulli = β√µi,

i ≤ i ≤ is.

(INRIA ) 10 / 21

slide-11
SLIDE 11

More advanced off-line policies

Here, we compare with Gamma and with a mixture of Erlangs (where the

  • ptimal solution can also be computed).

0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 "resKM100.dat" "resEM100.dat" "resG100.dat" "resCB100.dat"

(INRIA ) 11 / 21

slide-12
SLIDE 12

Price of Forgetting

Price of Forgetting measures the benefit of having memory in the scheduler. PoF def = ROpt

Bernoulli/ROpt.

(1) Computing ROpt in the off-line case is very difficult (open problem). There exists non trivial lower bounds : ROpt ≥ inf

p1,...,pN≥0: p1+···+pN=1 N

  • i=1

piRD(λ/pi)/GI/1

i

. Theorem PoF(N) ≤ 1 + 1 minN

i=1 µ2 i s2 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

slide-13
SLIDE 13

Price of Forgetting (II)

50 100 500 1000 5000 10000 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 2.1 N SMemory/SNo memory L=0.25 L=0.40 L=0.55 L=0.70 L=0.85 L=0.97 L=0.99 (INRIA ) 13 / 21

slide-14
SLIDE 14

Price of Forgetting (III)

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

slide-15
SLIDE 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

  • ptimum.

PoA(N) def = RWe(N) ROpt(N) ≥ 1.

(INRIA ) 15 / 21

slide-16
SLIDE 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. The k fastest servers are used : k = min

  • 1 ≤ i ≤ N : µi+1 ≤ µ(i) − λ

i

  • .

The probability to join server i is pi = 1 λ

  • µi −

k µ(k) − λ

  • .

and the corresponding response time is RWe(N) = k µ(k) − λ.

(INRIA ) 16 / 21

slide-17
SLIDE 17

The Price of Anarchy with a twist

The performance ratio between the selfing routing using probabilities (p1, . . . , pN) and the best routing probabilities (p∗

1, . . . , p∗ N) is

Theorem (Haviv and Roughgarden, 2007) RWe(N)/Ropt

Bernoulli(N) ≤ N

(tight)

(INRIA ) 17 / 21

slide-18
SLIDE 18

The Price of Anarchy with a twist

The performance ratio between the selfing routing using probabilities (p1, . . . , pN) and the best routing probabilities (p∗

1, . . . , p∗ N) is

Theorem (Haviv and Roughgarden, 2007) RWe(N)/Ropt

Bernoulli(N) ≤ N

(tight) PoA(N) = PoABernoulli(N)PoF(N). In the exponential case, since PoF(N) ≤ 2, PoA(N) ≤ 2N.

(INRIA ) 17 / 21

slide-19
SLIDE 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 1 m =

(INRIA ) 18 / 21

slide-20
SLIDE 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 1 m =

(INRIA ) 18 / 21

slide-21
SLIDE 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 1 m = s

(INRIA ) 18 / 21

slide-22
SLIDE 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 1 m = 0

(INRIA ) 18 / 21

slide-23
SLIDE 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 1 m = 0 0

(INRIA ) 18 / 21

slide-24
SLIDE 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 1 m = 0 0 1

(INRIA ) 18 / 21

slide-25
SLIDE 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 1 m = 0 0 1 0

(INRIA ) 18 / 21

slide-26
SLIDE 26

The hard part : Rate computation

2 1

  • pt
  • pt

Instability domain α =1

  • pt

1/S = c 1/S

  • pt

2 1

1/S

α = 0

  • pt

1/S

α = 1/4

α = 1/2 α = 1/3

(INRIA ) 19 / 21

slide-27
SLIDE 27

Real life test

Billiard sequences have been tested in a Boinc application (from D. Kondo and B. Javadi).

(INRIA ) 20 / 21

slide-28
SLIDE 28

Thank you

(INRIA ) 21 / 21