Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion...

39
Statistical Approach Statistical Approach to NoC Design to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    214
  • download

    0

Transcript of Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion...

Page 1: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Statistical Approach Statistical Approach to NoC Designto NoC Design

Itamar Cohen, Ori Rottenstreich

and Isaac Keslassy

Technion (Israel)

Page 2: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

ProblemProblem

The traffic matrix in NoCs is often-changing and unpredictable

makes NoCs hard to design

Page 3: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Road CapacitiesRoad Capacities

Goal: Design road capacities between a city and its suburbs

Let’s model the traffic matrices…

Citycenter

Page 4: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Road CapacitiesRoad Capacities

Morning peak: most traffic towards city

Citycenter

1

1

1

10

10

10

Page 5: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Road CapacitiesRoad Capacities

Morning peak: most traffic towards city

Afternoon peak: most traffic leaving city

Citycenter

10

10

10

1

1

1

Page 6: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Solution (1): Average-CaseSolution (1): Average-Case

Solution (1): plan for average-case i.e. allocate capacity of

~5 for each link. λ < μ

Problem: traffic jam during many hours, every day.

Citycenter

5

5

5

5

5

5

Page 7: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Solution (2): Worst-CaseSolution (2): Worst-Case

Solution (2): plan for worst-case i.e. allocate capacity of

10 for each link.City

center

10

10

10

10

10

10

Page 8: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

HolidaysHolidays

Problem: traffic burst in the holidays excessive resources

Solution (3): statistical approach Enough capacity for

99% of the time Allow for occasional

congestion

Citycenter

1

1

1

1

1

1

50

Page 9: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Back to the NoC worldBack to the NoC world

Similar problems in NoC design process City Shared cache Suburbs Cores Many possible traffic

matrices: writing, reading, etc.

ProcessorCacheCore

Core

Core

Page 10: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

MotivationMotivation

Problem: Traffic matrix in NoCs is often-changing and unpredictable

makes NoCs hard to design

“Easy” solution: Worst-Case Guarantee E.g., no-congestion guarantee for 100% of the

time

Objective: Statistical Guarantee E.g., no-congestion guarantee for 99.99% of the

time

Better when no congestion is

allowed

Better when power/area are most

important

Tradeoff: more resources

vs. better guarantee

Page 11: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Statistical Approach to NoC DesignStatistical Approach to NoC Design

Given: Traffic matrix distribution Topology Routing Link capacities

Compute congestion guarantee “95% of traffic matrices will receive enough

capacity”

Optimal Capacity

Allocation

1

2

3

Page 12: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

CMP (Chip Multi-Processor)CMP (Chip Multi-Processor)

Core Core Core Core

Core Core Core Core

Core Core Core Core

Core Core Core Core

How can we model the future traffic matrix distribution?

Page 13: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Measure on real large CMP networks? Problems

Their future applications are unknown Their future traffic types are unknown: Between

processors? Cache accesses? Control traffic? (Chicken-and-egg problem: traffic might depend on

what architecture offers)

Traffic Matrix DistributionTraffic Matrix Distribution

Page 14: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Traffic Matrix DistributionTraffic Matrix Distribution

General model: any core can communicate with any core - but with a bounded core input/output rate. Example: each core may send/receive up to 1 Gbps. Used in CMPs [Murali et al. ’07] – but also backbone

networks [Dukkipati et al. ’05], interconnection networks [Towles and Dally ’02], VPN networks [Duffield et al. ’99], routers [McKeown et al. ‘96]

Reminder: just one model among many…

0 0.5 0.1 0.2

0 0 0 0.6

0.2 0.1 0 0

0.1 0.1 0.3 0

T

Core 1 sends ≤ 1

Page 15: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Statistical Approach to NoC DesignStatistical Approach to NoC Design

Given: Traffic matrix distribution Topology Routing Link capacities

Compute congestion guarantee “95% of traffic matrices will receive enough

capacity”

Optimal Capacity

Allocation

1

2

3

Page 16: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Compute Congestion GuaranteeCompute Congestion Guarantee

Show that “95% of all traffic matrices will receive enough capacity on link l ”

1. Compute Traffic-load distribution Plot

(or T-Plot) for link l 2. Show that the load on link l is less than its

capacity for 95% of traffic matrices.

Page 17: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Link T-PlotLink T-Plot

0.5

PDF

Link load1 10

morning afternoon

0.5

PDF

Link load1 10

morningafternoon

0.99

PDF

0 50

workdayholiday

0.01

Citycenter

Page 18: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Global T-PlotGlobal T-Plot

0.5

PDF

Link load1 10

morning afternoon

0.5

PDF

Link load1 10

morningafternoon

0.99

PDF

0 50

workdayholiday

0.01

We want to provide statistical guarantees on the whole network i.e. on all links

Global T-Plot: for each traffic matrix T, measure maximum load among all links

Page 19: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Global T-PlotGlobal T-Plot

0.5

PDF

Link load1 10

morning afternoon

0.5

PDF

Link load1 10

morningafternoon

0.99

PDF

0 50

workdayholiday

0.01

0.99

PDF

Maximum link load

10 50

0.01

Page 20: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Link T-Plots in NoCsLink T-Plots in NoCs

ijT

klT

Traffic Matrix Set S

1 2

2

1

1

2

2

1

2

1

1

2

1 2

2 1

2

1

1

2

2 1

1 2

1

2

1

2

1

2

2 1

1 2

l

T

Given: Traffic matrices TS 3x4 mesh topology XY routing Link l

Find T-Plot on l

Link Load

PDF

Page 21: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

21

T-PlotT-Plot

Gaussian?

Close-up view:

Worst-case traffic load = 2

[Towles and Dally, ’02; Towles, Dally and Boyd, ’03]99.99% of traffic

matrices bring load under 1.6

20% gain

Link Load

PDF

Page 22: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Are T-Plots Gaussian?Are T-Plots Gaussian?

Some T-Plots may be well approximated as Gaussian.

Intuition (Central Limit Theorem): when N grows, the sum of N i.i.d. (independent and identically distributed) random variables converges to a Gaussian distribution.

Page 23: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Gaussian T-Plot ExampleGaussian T-Plot Example

Example: n x n mesh with XY routing.

Assume i.i.d traffic from i to j

Theorem: As n grows, T-Plot for l converges to Gaussian.

i

j

l

Link Load

PDF

Page 24: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Computing the T-PlotComputing the T-Plot

ijT

klT

Traffic Matrix Set

T

Theorem: for an arbitrary graph and routing, computing the T-Plot is #P-complete.

#P-complete problems are at least as hard as NP-complete problems. NP: “Is there a solution?” #P: “How many solutions?”

Link Load

PDF

Page 25: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Computing the T-PlotComputing the T-Plot

Idea: use Monte Carlo simulations to approximate T-Plots Plot many points, and count number of points to

approximate density.

ijT

klT

Traffic Matrix Set

T

Link Load

PDF

Page 26: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Link T-Plot Vs Global T-PlotLink T-Plot Vs Global T-Plot

1 2

2

1

1

2

2

1

2

1

1

2

1 2

2 1

2

1

1

2

2 1

1 2

1

2

1

2

1

2

2 1

1 2

l

Gaussian?

Higher average

Link T-Plot on l Global T-Plot

Global T-Plot: for each traffic matrix T, measure maximum load among all links

Model? Assume independent

links…Link Load vs. Global Load

PDF

Page 27: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Link-Independent Model: Link-Independent Model: Simple ExampleSimple Example

Assume:

If l1 and l2 independent:

1 2

1 10 . . 0 . .

2 2: , :1 1

1 . . 1 . .2 2

w p w pe e

w p w p

10 . .

4:3

1 . .4

w pcongestion

w p

global

l1

l2

l1: l2:

Global Load:

Page 28: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Independent-Gaussian ModelIndependent-Gaussian Model

1.2

Global Load

CDF

Page 29: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Statistical Approach to NoC DesignStatistical Approach to NoC Design

Given: Traffic matrix distribution Topology Routing Link capacities

Compute congestion guarantee “95% of traffic matrices will receive enough

capacity”

Optimal Capacity

Allocation

1

2

3

Page 30: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Capacity Allocation IntuitionCapacity Allocation Intuition Idea: given a total capacity, distribute it so that the

overflow probability on each link is the same.

PDF

Link Load

Link 1 Link 2

Page 31: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Capacity Allocation IntuitionCapacity Allocation Intuition Idea: given a total capacity, distribute it so that the

overflow probability on each link is the same.

Theorem: if Gaussian-independent model holds, with same standard-deviation σ on all links, then this scheme is optimal.

Page 32: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Capacity Allocation PerformancesCapacity Allocation Performances

Total needed capacity for various Capacity Allocation (CA) targets

Worst-case capacity saving with different

link capacities

Statistical gain with 90% guaranteeWorst-case

approach

41%

Statistical approach

37%

Page 33: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Average Flow Delay ModelAverage Flow Delay Model Assume M/M/1 delay model Average flow delay distribution over all traffic matrices, for two

different Capacity Allocation (CA) schemes:

Page 34: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Statistical Approach to NoC DesignStatistical Approach to NoC Design

Given: Traffic matrix distribution Topology Routing Link capacities

Compute congestion guarantee “95% of traffic matrices will receive enough

capacity”

Optimal Capacity

Allocation

1

2

3

Page 35: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Comparing routing algorithmsComparing routing algorithms

DOR (XY) and O1TURN (½ XY, ½ YX) on 3x4 mesh:

DOR: 95% cutoff

O1TURN: 95% cutoff

Global Load

PDF

Page 36: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

NUCA networkNUCA network More complex CMP architectures show similar results

NUCA (Non-Uniform Cache Architecture) with sharing degree 4.

Traffic model: each core (cache) may only send/receive traffic to/from caches (cores) in its sub-network.

Processors

Caches

Processors

Page 37: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

NUCA network – Total capacityNUCA network – Total capacity

Total capacity required for various Capacity Allocation (CA) targets. Gain of

statistical approach

48%

Page 38: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

SummarySummary

Statistical approach to NoC design Deals with several traffic matrices Can optimize capacity allocation and

routing

Can be applied to any Traffic matrix distribution Topology Oblivious routing Link capacities

Page 39: Statistical Approach to NoC Design Itamar Cohen, Ori Rottenstreich and Isaac Keslassy Technion (Israel)

Thank you.Thank you.