preliminary investigations into a microkernel osal for cfs
play

Preliminary Investigations into a Microkernel OSAL for cFS Gregor - PowerPoint PPT Presentation

Preliminary Investigations into a Microkernel OSAL for cFS Gregor Peach, Joseph Espy, Zach Day, Gabriel Parmer , Alex Maloney Gerald Fry*, Curt Wu* The George Washington University * Charles River Analytics Acknowledgements: This material is


  1. Preliminary Investigations into a Microkernel OSAL for cFS Gregor Peach, Joseph Espy, Zach Day, Gabriel Parmer , Alex Maloney Gerald Fry*, Curt Wu* The George Washington University * Charles River Analytics Acknowledgements: This material is based upon work supported by the National Science Foundation under Grant No. CNS 1149675, ONR Award No. N00014-14-1-0386, and ONR STTR N00014-15-P-1182 and N68335-17-C-0153. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation or ONR.

  2. Traditional Satellites Fault tolerance ● Hardware redundancy ● Rad-hardened processors ● Single-core processors

  3. CubeSats g Commodity hardware ● High clock speed ● Multi-core ● Limited hardware reliability features

  4. CubeSats g Commodity hardware ● High clock speed ● Multi-core ● Limited hardware reliability features Spare capacity + no HW reliability → SW reliability

  5. CubeSats g Commodity hardware ● High clock speed ● Multi-core ● Limited hardware reliability features How to most efgectively use the parallelism?

  6. How can we use extra computational capacity to increase fault tolerance?

  7. Aspects of SW Fault Tolerance Detection Determine when system is in an erroneous state Propagation How do we contain the scope of the fault Remediation How do we return system to a well-defjned state

  8. Aspects of SW Fault Tolerance Detection Determine when system is in an erroneous state Propagation How do we contain the scope of the fault Remediation How do we return system to a well-defjned state

  9. Core Flight System Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  10. Core Flight System – Faults Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  11. Core Flight System – Faults Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  12. Core Flight System – Faults Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  13. Core Flight System – Faults + POSIX Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  14. Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem A bstraction L ayer

  15. Core Flight System Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  16. Composite μ-kernel Small kernel (~7K LoC), real-time focus ● Focused on IPC between protection domains Export policies to user-level components ● Scheduling, dev. drivers, memory mgmt, FS, ... NIC Scheduler User-level Kernel Interrupt vectoring Memory mapping Sync/async IPC

  17. Composite OSAL/PSP Mission-specific applications General utility HK S CS ... applications Core Flight SW Bus Mutex Tables ... Executive Functions O perating S ystem Sched Loader FS Net PSP A bstraction L ayer

  18. Composite OSAL/PSP ● Communication explicitly controlled by design ● IPC and scheduling are fast: Composite Linux 2-way IPC 700 cycles 600 (syscall), 3500 (pipes) Thd Dispatch 300 cycles 1800 (yield) SW Bus Net FS Sched HK S CS Mutex NIC Driver Load Tables

  19. Composite OSAL/PSP – Current ● Fixed priority preemptive scheduling ● RAM-based FS ● Application loader: – Into shared protection domain – Into separate protection domains SW Bus, Mutex, Tables HK S CS Sched/load/FS/net

  20. Composite OSAL/PSP – Current ● Lines of C Code: < 4000 LoC ● OSAL unit tests: > 89 % successful oscore/osfjle/osfjlesys/osloader, 15% not relevant (OS call failure) – ● In progress: – serialization/deserialization of OSAL arguments – increasing application support SW Bus, Mutex, Tables HK S CS Sched/load/FS/net

  21. Aspects of SW Fault Tolerance Detection Determine when system is in an erroneous state Propagation How do we contain the scope of the fault Remediation How do we return system to a well-defjned state

  22. Watchdog Timer ● Applications – periodically declare successful execution ● Every watchdog timer (1-10 seconds): – Have all applications and system components checked in? – No: reboot! Watchdog Timer Reboot Remediation Detection

  23. Redundant Execution ... ... HK S CS HK S CS SW SW ... ... Mutex Tables Mutex Tables Bus Bus Sched Load FS Net PSP Sched Load FS Net PSP Voter Double M. Redundancy Triple M. Redundancy Remediation Detection

  24. Redundant Execution ... ... ... ... HK S CS HK S CS HK S CS HK S CS ... HK S CS ... HK S CS SW SW SW ... ... ... Mutex Tables Mutex Tables Mutex Tables ... Bus Bus Bus HK S CS SW ... Voter Mutex Tables Bus SW Sched Load FS Net PSP Sched Load FS Net PSP Sched Load FS Net PSP ... Mutex Tables SW ... Bus Mutex Tables Bus SW ... Sched Load FS Net PSP Mutex Tables Bus Sched Load FS Net PSP Voter Sched Load FS Net PSP Voter Voter Double M. Redundancy Triple M. Redundancy Remediation Detection

  25. Redundant Execution ... ... ... Composite Voter (in-progress) ... HK S CS HK S CS HK S CS HK S CS ... HK S CS ... HK S CS SW SW SW ... ... ... ● < 800 LoC in Rust Mutex Tables Mutex Tables Mutex Tables ... Bus Bus Bus HK S CS SW ... Voter Mutex Tables ● Utilize high-performance IPC + scheduling Bus SW Sched Load FS Net PSP Sched Load FS Net PSP Sched Load FS Net PSP ... Mutex Tables SW ... Bus Mutex Tables ● Design: minimize... Bus SW ... Sched Load FS Net PSP Mutex Tables Bus Sched Load FS Net PSP ...memory footprint Voter ...CPU footprint Sched Load FS Net PSP Voter Voter Double M. Redundancy Triple M. Redundancy Remediation Detection

  26. Checkpoint/Restore ... HK S CS SW ... Mutex Tables Bus Sched Load FS Net PSP Checkpoint Checkpoint time ... ... HK S CS HK S CS SW SW ... ... Mutex Tables Mutex Tables Bus Bus Sched Load FS NetPSP Sched Load FS NetPSP Checkpoint/Restore Remediation Detection

  27. Checkpoint/Restore ... ... HK S CS HK S CS SW SW ... ... Mutex Tables Mutex Tables Bus Bus Sched Load FS Net PSP Sched Load FS Net PSP Checkpoint Checkpoint time ... ... HK S CS HK S CS SW SW ... ... Mutex Tables Mutex Tables Bus Bus Sched Load FS NetPSP Sched Load FS NetPSP Checkpoint/Restore Remediation Detection

  28. Checkpoint/Restore ... ... ... HK S CS HK S CS HK S CS SW SW SW ... ... ... Mutex Tables Mutex Tables Mutex Tables Bus Bus Bus Sched Load FS Net PSP Sched Load FS Net PSP Sched Load FS Net PSP Checkpoint Checkpoint time Restore ... ... HK S CS HK S CS SW SW ... ... Mutex Tables Mutex Tables Bus Bus Sched Load FS NetPSP Sched Load FS NetPSP Checkpoint/Restore Remediation Detection

  29. Checkpoint/Restore Composite Checkpoint/Restore ... ... ... HK S CS HK S CS HK S CS Composite* Linux/CRIU* Xen + SW SW SW ... ... ... Mutex Tables Mutex Tables Mutex Tables Bus Bus Bus Checkpoint 0.2 ms 800ms 8s Sched Load FS Net PSP Sched Load FS Net PSP Sched Load FS Net PSP Restore 0.2 ms 500ms 10s Checkpoint Checkpoint * 1MB Increases at rate of memcpy + 512 MB time Restore ... ... HK S CS HK S CS SW SW ... ... Mutex Tables Mutex Tables Bus Bus Sched Load FS NetPSP Sched Load FS NetPSP Checkpoint/Restore Remediation Detection

  30. Computational Crash Cart Recover system-level components upon failure ● Record summary of component comms ● Reboot component + re-estabilish state Focus on real-time ● 10s of micro -second recovery time Complementary to application-level reliability ● Checkpoint/Redundant execution Computational Crash Cart Remediation Detection

  31. Monitoring for Detection Monitor/log system interactions and timing ● API calls, context switches, interrupts, … Process log ● Interactions deviate from system model? ● Interactions statistically deviate from historically correct behaviors? Composite Monitoring Monitoring + ML Remediation Detection

  32. How can we effectively use the parallelism of commodity CPUs?

  33. Composite + Parallelism Kernel designed to be lock-less ● Kernel operations are all wait-free → real-time ● IPC core-local, or inter-core Net NIC SW Bus FS HK S CS Mutex Driver Tables

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