adaptive techniques for scalable optimistic parallel
play

ADAPTIVE TECHNIQUES FOR SCALABLE OPTIMISTIC PARALLEL DISCRETE EVENT - PowerPoint PPT Presentation

ADAPTIVE TECHNIQUES FOR SCALABLE OPTIMISTIC PARALLEL DISCRETE EVENT SIMULATION Eric Mikida Presentation Overview PDES / GVT Overview GVT Framework Description New GVT Algorithm New Load Balancing Work Summary and Future Work


  1. ADAPTIVE TECHNIQUES FOR SCALABLE OPTIMISTIC PARALLEL DISCRETE EVENT SIMULATION Eric Mikida

  2. Presentation Overview • PDES / GVT Overview • GVT Framework Description • New GVT Algorithm • New Load Balancing Work • Summary and Future Work 5/2/19 2

  3. PDES / GVT Overview • Simulation driven by discrete, time-stamped events • Logical Processes (LPs) store state and execute events • Charades is optimistically synchronized – Events executed speculatively – Incorrect events rolled back via reverse computation – Event efficiency = committed / total • Global Virtual Time (GVT) required for synchronization – Virtual time passed by every processor and event in flight 5/2/19 3

  4. GVT Framework Description • Separated GVT Management from Scheduler – Each encapsulated into separate chare groups – Common API between base classes • Allows for multiple different GVT implementations • Work and communication automatically overlapped with Scheduler and LPs 5/2/19 4

  5. GVT Framework Description Scheduler Event Exec Event Exec FC ... resume() gvt_done(gvt) gvt_done(gvt) gvt_begin() resume() GVTManager GVT Work GVT Work gvt_begin() 5/2/19 5

  6. New GVT Algorithm • Adaptive Bucketed GVT algorithm – Virtual time divided into buckets – Completion detection per bucket – CD is timestamp aware – Buckets included in a given computation can increase/decrease based on simulation conditions 5/2/19 6

  7. Adaptive Bucketed GVT Algorithm Sending an event Receiving an event (increment s 4 ) (increment r 6 ) sent: s 1 sent: s 2 sent: s 3 sent: s 4 sent: s 5 sent: s 6 recv: r 1 recv: r 2 recv: r 3 recv: r 4 recv: r 5 recv: r 6 Virtual Time Current GVT Current LVT 5/2/19 7

  8. Adaptive Bucketed GVT Algorithm Formally, a bucket b is completed iff: 1) sent[ b ] = recvd[ b ] 2) lvt p > b × bucket_size for all processors p 3) bucket x is complete for all x in { 1 … b -1 } 5/2/19 8

  9. Adaptive Bucketed Performance Speedup over Blocking Speedup over Phase-Based 5/2/19 9

  10. Adaptive Bucketed Interval Analysis All-Reduces for Phase-Based All-Reduces for Adaptive Bucketed Total Per GVT Total Per GVT PHOLD Base 3887 4.11 PHOLD Base 2005 1.98 PHOLD Work 4270 4.31 PHOLD Work 2024 1.98 PHOLD Event 5553 4.28 PHOLD Event 2011 1.98 PHOLD Combo 6890 4.33 PHOLD Combo 2040 1.99 Traffic Base -------- -------- Traffic Base 1276 1.58 Traffic Src -------- -------- Traffic Src 1965 1.92 Traffic Dest -------- -------- Traffic Dest 1350 1.57 Traffic Route -------- -------- Traffic Route 2027 1.99 5/2/19 10

  11. Adaptive Event Throttling • SPEEDES halted event sending to flush network for continuous GVT [1] – Execution was allowed to continue • Anti events a source of significant overhead • Adaptive Bucketed GVT monitors all event sends (both regular and anti events) [1] Steinman ‘95 5/2/19 11

  12. Adaptive Event Throttling Approach PHOLD Combo Event Stats • Track events by offset from GVT (in buckets) • Add tracing for off-line analysis • Analyze cancellation frequency and lag • Hold events based on offset 5/2/19 12

  13. Adaptive Event Throttling Model Event Rates 1.1x 1.2x 1.15x 1.2x 1.75x 5/2/19 13

  14. Adaptive Event Throttling Dragonfly Remote Events Traffic Remote Events 54% 76% 5/2/19 14

  15. Adaptive Event Throttling Dragonfly Event Efficiency Traffic Event Efficiency 5/2/19 15

  16. How does this differ from SPEEDES? SPEEDES CHARADES • GVT computation runs • Throttling required for the regardless of messages in GVT computation to flight – throttling just to complete improve performance • Once throttling starts, all • Choice to hold an event is events are all held until next per event – holding one GVT cycle does not preclude us from sending another 5/2/19 16

  17. Load Balancing with Bucketed GVT • Don’t want to stop the simulation • No obvious synchronization points – GVTManager runs independently of Scheduler • Exploit anytime migration in Charm++ • Throttling improves event efficiency to aid LB 5/2/19 17

  18. Load Balancing with Bucketed GVT PHOLD Speedup 5/2/19 18

  19. Load Balancing with Bucketed GVT Traffic Speedup 5/2/19 19

  20. Summary • Proposed the Adaptive Bucketed GVT algorithm – Timestamp aware to adapt to simulation conditions – Less communication required – Allows for adaptive communication throttling • Load balancing can improve event efficiency – Metric effectiveness depends on model • Best performance comes with decoupled solution – GVT: sync cost, Throttling: event efficiency, LB: balance 5/2/19 20

  21. Future Work • On-line tuning for adaptive event throttling • Lightweight graph partitioning strategies • Vectors of load metrics • ML for load metrics 5/2/19 21

  22. THANK YOU! 5/2/19 22

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