performance analysis of reo circuits
play

Performance Analysis of Reo Circuits Chrtien Verhoef Center for - PowerPoint PPT Presentation

Performance Analysis of Reo Circuits Chrtien Verhoef Center for Mathematics and Computer Science (CWI) CIC 2007 Research Workshop on Coinduction, Interaction and Composition Amsterdam 2007-10-23 Overview Introduction / motivation


  1. Performance Analysis of Reo Circuits Chrétien Verhoef Center for Mathematics and Computer Science (CWI) CIC 2007 Research Workshop on Coinduction, Interaction and Composition Amsterdam 2007-10-23

  2. Overview • Introduction / motivation • Continuous Time Markov Chains • Reo Coordination Language • Quantitative Reo • Performance Analysis of Reo Circuits • Performance Analysis Example • Future Research / To Do Performance Analysis of Reo Circuits 2

  3. Introduction • Quantify performance of complex coordination systems • Communication networks, Web based services, etc. • Typical questions: • Recognize bottlenecks? • Expected delay of the network? • Expected throughput? • Availability, blocking? • Take into account: • Complex stochastic behaviour • Component dependencies of such systems • Quantitative behaviour environment Performance Analysis of Reo Circuits 3

  4. Overview • Introduction / motivation • Continuous Time Markov Chains • Reo Coordination Language • Quantitative Reo • Performance Analysis of Reo Circuits • Performance Analysis Example • Future Research / To Do Performance Analysis of Reo Circuits 4

  5. Continuous Time Markov Chains • Model coordination system as CTMC, then • Quantify performance by using CTMC • Markov Chain: – System can be in one of several states: state space – Transitions from one state to another 2 1 3 4 Performance Analysis of Reo Circuits 5

  6. Continuous Time Markov Chains • CTMC more concrete: Stochastic process { X(t) : t ≥ 0 } • Process satisfies: - Markov property - X(t) S (finite state-space) • Continuous: process defined for every time unit t ≥ 0 • Markov property: Only present state needed to determine transitions to next states  transitions with certain exponential transition rates (average # transitions per time unit) 0.5 2 1.1 0.25 1 0.25 3 0.25 0.1 4 0.75 Performance Analysis of Reo Circuits 6

  7. Continuous Time Markov Chains • Use CTMC to model complex coordination systems, and quantify performance • Interested in long run behaviour CTMC • Calculate steady-state probability vector: Probability CTMC is in a certain state at a random moment • From steady-state probability vector  Calculate expected blocking probability, throughput, delay. Performance Analysis of Reo Circuits 7

  8. Continuous Time Markov Chains • If we use CTMC to model system: find and define appropriate state description: – Finite state-space – Satisfies Markov property Problems: • Construction appropriate CTMC is complex • Often leads to state-space explosion • Idea: – Use Reo Coordination Language to model complex coordination systems – “Translate” Reo  CTMC – CTMC Performance Evaluation Performance Analysis of Reo Circuits 8

  9. Use the advantages of Reo: • State-space reduction: strong synchronizing properties Reo • Atomic state transitions • Compositionally building of models : Hotel Reservation System Holiday Car Flight Reservation Rental Reservation Service System System Front End Performance Analysis of Reo Circuits 9

  10. Overview • Introduction / motivation • Continuous Time Markov Chains • Reo Coordination Language • Quantitative Reo • Performance Analysis of Reo Circuits • Performance Analysis Example • Future Research / To Do Performance Analysis of Reo Circuits 10

  11. Reo Coordination Language • Powerful means to model complex coordination systems • Channel based coordination model, with synchronising / a- synchronising properties • Compositional construction of models using architecturally meaningful primitives  Complex coordinators (connectors) compositionally build out of simpler ones • Arbitrary set of simple connector types available, with well- defined behaviour • Loose coupling of components • Supports heterogeneous components • Strong formal semantics Performance Analysis of Reo Circuits 11

  12. Reo Coordination Language • Reo components connected through connectors (composition of simpler connectors) • Most primitive connector is a channel (well defined behaviour): Synchronous A B Channel B A LossySync Channel FIFO A B FIFO1 Channel SyncDrain B A Channel Etc. Performance Analysis of Reo Circuits 12

  13. Reo Coordination Language Reo Nodes: • Logical construct representing topological properties of a set of channels • Regulates flow of data among channel ends Sink Source Mixed Node Node Node Arrival take actions Arrival write actions Arrival write/take actions (data dispersion)) (data acceptance) Performance Analysis of Reo Circuits 13

  14. Reo Coordination Language • Compositional building of models using architecturally meaningful primitives Performance Analysis of Reo Circuits 14

  15. Overview • Introduction / motivation • Continuous Time Markov Chains • Reo Coordination Language • Quantitative Reo • Performance Analysis of Reo Circuits • Performance Analysis Example • Future Research / To Do Performance Analysis of Reo Circuits 15

  16. Quantitative Reo • No quantitative stochastic behaviour in Reo circuits • Ad performance properties to functional primitives: • Channels with delays • Ports with interarrival times between arriving read and write actions Performance Analysis of Reo Circuits 16

  17. Quantitative Reo: Channel Delays • Time it takes for a channel to synchronise with corresponding nodes dAB Synchronous A B Channel dAB B A LossySync dABL Channel dAF dFB FIFO A B FIFO1 Channel SyncDrain B A Channel dAB1 dAB2 Performance Analysis of Reo Circuits 17

  18. Quantitative Reo: Ports Ports: source and sink nodes whereby circuit interacts with surrounding Assumptions: • Interarrival times of arriving read and write actions at ports can be specified • Actions stay pending at ports until accepted • At most one action can wait for acceptance at each port • Blocking • Denial write actions Performance Analysis of Reo Circuits 18

  19. Overview • Introduction / motivation • Continuous Time Markov Chains • Reo Coordination Language • Quantitative Reo • Performance Analysis of Reo Circuits • Performance Analysis Example • Future Research / To Do Performance Analysis of Reo Circuits 19

  20. Performance Analysis of Reo Circuits A. Construct quantitative Reo model B. Use a special quantitative operational semantics for Reo language: Quantitative Intentional Automata (QIA) C. Translate into CTMC: • CTMC State-space: all possible states of the Reo circuit Take into account: • State of ports • State of individual connectors (delay, buffers) • Channel delays: independent exponentially distributed • Interarrival times of arriving read and write actions at ports: independent exponentially distributed Performance Analysis of Reo Circuits 20

  21. Performance Analysis of Reo Circuits D: Given steady-state distribution vector of CTMC: • Insight in essential states, sensitivity analysis • Approximate, e.g.: • Expected Blocking probabilities • Expected Delay: delay (sojourn time) after arrival at an arrival accepting port until arrival leaves the system • Expected Throughput: expected number of write requests on a certain port a circuit is able to handle per time unit Performance Analysis of Reo Circuits 21

  22. Overview: Performance Analysis of Reo Circuits 1: Decompose system 2: Reo Modeling 6: Analyze MC 3: QIA Translation 4: Combine QIAs 5: Generate MC Performance Analysis of Reo Circuits 22

  23. Overview • Introduction / motivation • Continuous Time Markov Chains • Reo Coordination Language • Quantitative Reo • Performance Analysis of Reo Circuits • Performance Analysis Example • Future Research / To Do Performance Analysis of Reo Circuits 23

  24. Performance Analysis Example • Alternator: • Input ports: A, B • Output port: C • Delivers through port C, alternating what is available through A,B • Reo Model: D AC1 D AC2 A 1 C D AB D BC B • Data only accepted to flow from A into buffer: buffer empty, write pending at port B, read pending at port C Performance Analysis of Reo Circuits 24

  25. Performance Analysis Example • Construct CTMC with: • Exponential connector delays: DAC1, DAC2, DAB, DBC • Exponential write action arrival rate at ports A, B • Exponential read action arrival rate at port C D AC1 D AC2 A 1 C D AB D BC B Performance Analysis of Reo Circuits 25

  26. Performance Analysis Example • Two examples: • Sensitivity analysis port A  vary mean arrival rate (=1/inter arrival time) • Sensitivity analysis delay BC  vary mean delay • What will happen with: delays, blocking probabilities, steady-state distribution, throughput? Performance Analysis of Reo Circuits 26

  27. Performance Analysis Example Sensitivity analysis port A: vary mean arrival rate (=1/inter arrival time) D AC1 D AC2 A 1 C D AB D BC B Performance Analysis of Reo Circuits 27

  28. Performance Analysis Example: Port A 2.5 Blocking Probability TP (write requests / time unit) 2.0 1.5 1.0 0.5 Delay (time unit) 0.0 0 10 20 30 40 Arrival Rate Port A A B C FIFO Delay TP Performance Analysis of Reo Circuits 28

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