from c iel to firmament & dios a heavenly tale of not just clouds

45
From CIEL to Firmament & DIOS a heavenly tale of not just clouds Joint work with: Steven Hand Anil Madhavapeddy Chris Smowton Steven Smith Derek Murray (MSR-SVC)

Upload: sawyer-simon

Post on 15-Mar-2016

21 views

Category:

Documents


1 download

DESCRIPTION

From C IEL to Firmament & DIOS a heavenly tale of not just clouds. Joint work with:. Steven Hand Anil Madhavapeddy Chris Smowton Steven Smith Derek Murray (MSR-SVC). Disclaimer . Recap: C IEL. [NSDI 2011]. A. B. G. M. M. M. R. R. R. Dynamic task graphs. G. a. M. M. T. x. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

From CIEL to Firmament & DIOS

a heavenly tale of not just clouds

Joint work with: Steven HandAnil MadhavapeddyChris SmowtonSteven SmithDerek Murray (MSR-SVC)

Page 2: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Disclaimer

Page 3: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Recap: CIEL[N

SDI 2

011]

Page 4: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

A B

G

M

R

M

R R

M

Page 5: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Dynamic task graphs• Allow tasks to spawn more tasks

T

M RM R

G

a

b

x

Page 6: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Experiment from D. Murray,A distributed execution engine supportingdata-dependent control flow. PhD thesis, University of Cambridge,2011.

Page 7: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

[interlude]polyglot CIEL

Page 8: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

polyglot CIEL[u

npub

lishe

d]

Page 9: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Saving state – options

BLCR(process

checkpoint.)

Haskellmonads

lightweightheavyweight

hardware / OS level

VM migration Serializablecontinuations

application levelCIEL

Page 10: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

no need for Skywriting!

JavaScala

HaskellStackless Python

OCaml(C with BLCR)

Page 11: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Experiment from D. Murray, C. Smowton, M. Schwarzkopf, S. Smith, A. Madhavapeddy. A polyglot approach to cloud programming. Unpublished, 2011.

Binomial options pricing

Page 12: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

What‘s next?!

many-core clusters

heterogeneity

Page 13: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

timespin on unmodified CIEL

seconds

number of cores

less is better

41.6x

1.04x

1.3x5.1x

rel. overhead

Page 14: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

EnterFirmament

andDIOS

[Data-Intensive Operating System]

Page 15: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

User code

CIEL

...Hardware ...

Execution Engine

Programming Model

Host OS ...

1st class exec. Skywriting2nd

Master W0 W1 Wn...

Page 16: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

User code

Hardware

CIEL

...

Firmament: Coordination Engine

Programming Model1st class exec. Skywriting2nd

...DIOS

Page 17: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Firmament

multi-scale

heterogeneity-aware

Page 18: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

How much heterogeneity is

there?

Page 19: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds
Page 20: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Google trace, machine platforms

Page 21: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

CPU cores (normalized) Total RAM (normalized)

Google trace, machine specs

Page 22: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Google trace, platforms + specs

Page 23: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Google trace, machine attributes

Page 24: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

FirmamentCluster knowledge base

• historic task resource usage historic task performance info machine informationEfficient runtime

[Storage? Networking? Transfer management?]

Page 25: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

FirmamentIt’s real!

• ~2k LOC, basic tests run

ToDo (aka WIP):• knowledge base design & impl. scheduling algorithms interface to CIEL

Page 26: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

User code

Hardware

CIEL

...

Firmament: Coordination Engine

Programming Model1st class exec. Skywriting2nd

...DIOS

Page 27: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

DIOStopology-aware

interference-aware

lightweight OS

Page 28: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Heterogeneity [again!]

Many-core => intra-machine

communication = important!

Page 29: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Intel Core i7-2600K @ 3.40GHz (native)

Joint work with Steven Smith, Anil Madhavapeddy, and Chris Smowton; cf. “The case for reconfigurable I/O“ (RESoLVE 2012)

48-core AMD Opteron 6168 (native) (Xen)

Page 30: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Intel Xeon E5620 @ 2.40GHz (native)

Different physicalcore

Hyperthread

Joint work with Steven Smith, Anil Madhavapeddy, and Chris Smowton;

cf http://fable.io

Page 31: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Intel Core i7-2600K @ 3.40GHz (native)

Different physicalcore

Hyperthread

Joint work with Steven Smith, Anil Madhavapeddy, and Chris Smowton;

cf http://fable.io

Page 32: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

AMD Opteron 6168@ 1.9 GHz (native)

Same MCM, same socket

Different MCM,different socket,

2-hop Hypertransport

Joint work with Steven Smith, Anil Madhavapeddy, and Chris Smowton;

cf http://fable.io

Page 33: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Topology-awareness

OS responsibility? Yes.

General case = hard!

Workload-awareness helps!

Page 34: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

hwloc

Page 35: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds
Page 36: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Interference

#include <results>

Page 37: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Make the OS do exactly (and just) what is needed.

Dedicate resources instead of sharing them.

Lightweight

Page 38: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Shell Standard libsFilesystem

Multi-threading LockingConcurrency primitivesPre-emption

Process mgmt I/O mgmt IsolationResourcemultiplexing

Page 39: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Scheduling

Ta

b

x

Page 40: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Scheduling

Program ...

Firmament: Coordination Engine

...DIOS

Page 41: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

DIOSPieces exist

• currently combining ;-)

WIP:• interference experiments related work reading group starting point? (Linux or Xen?)

Page 42: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds
Page 43: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

BACKUP SLIDES

Page 44: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Binomial options pricing

200k (EC2)200k (MC)

400k (MC)

400k (EC2)

800k (EC2)

800k (MC)

higheris better

Page 45: From C IEL  to Firmament & DIOS a heavenly tale of not just clouds

Numbers and experiment by Sören Bleikertz: http://openfoo.org/blog/redis-native-xen.html

0

5000

10000

15000

20000

25000

PING

PING (m

ulti b

ulk)

SETGET

INCR

LPUSH

LPOP

SADDSPOP

LPUSH

LRANGE (fi

rst 10

0)

LRANGE (fi

rst 30

0)

LRANGE (fi

rst 45

0)

LRANGE (fi

rst 60

0)

Xen stubdomLinux VMnative

Redis example