Scheduling on Mars Oct. 29, 2004 - PowerPoint PPT Presentation

About This Presentation
Title:

Scheduling on Mars Oct. 29, 2004

Description:

Nice thump-down (inflatable air-bag) Nice rover disembarkation. Nice rover spontaneous reboots ... Housekeeping by high-priority bus manager thread ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 19
Provided by: csC76
Learn more at: http://www.cs.cmu.edu
Category:
Tags: mars | oct | scheduling

less

Transcript and Presenter's Notes

Title: Scheduling on Mars Oct. 29, 2004


1
Scheduling on MarsOct. 29, 2004
15-410Delayed Impact
  • Dave Eckhardt
  • Bruce Maggs

L22b_Mars
2
What Happened On Mars?
  • Mars Pathfinder probe (1997)
  • Nice launch
  • Nice transit
  • Nice de-orbit
  • Nice thump-down (inflatable air-bag)
  • Nice rover disembarkation
  • Nice rover spontaneous reboots

3
Internal Architecture
  • Information bus (blackboard/whiteboard/...)
  • Housekeeping by high-priority bus manager thread
  • Meteorological data gathering
  • Occasional activity
  • Low-priority weather data thread
  • Communication with Earth
  • Medium-priority communication thread
  • Watchdog thread
  • Too quiet? Reboot
  • Shouldn't happen event was happening repeatedly

4
What could go wrong?
  • Weather data locks bus memory to publish
  • High-priority bus manager must wait

5
What could go wrong?
6
What could go wrong?
7
What could go wrong?
  • Weather data locks bus memory to publish
  • High-priority bus manager must wait
  • Interrupt makes communication runnable
  • Medium priority, so preempts weather data
  • communication then attempts to lock bus
  • Highest-priority runnable task, so it spin-waits

8
What could go wrong?
9
What could go wrong?
10
What could go wrong?
11
Solution?
  • VxWorks has two mutex flavors
  • Normal
  • Priority Inheritance
  • Rover code initialized flavors via global
    variables
  • mutex_init(bus_mem_mutex, bus_mutex_flavor)
  • Rover flew with debug interpreter enabled
  • Read-eval loop waiting for commands
  • assign bus_mutex_flavor MF_P_INHERIT
  • All fixed

12
Weather Thread is Busy
13
Bus Thread Waits Priority Inherited by WX
14
Bus Thread Waits Priority Inherited by WX
15
Low-Priority Thread Finishes Fast
16
Low-Priority Thread Finishes Fast
17
History of an Idea
  • Priority Inheritance Protocols An Approach to
    Real-Time Synchronization
  • IEEE Transactions on Computers 399
  • Lui Sha (CMU SEI)
  • Ragunathan Rajkumar (IBM Research ? CMU ECE)
  • John Lehoczky (CMU Statistics)

18
History of an Idea
  • Events
  • 1987-12 Manuscript received
  • 1988-05 Revised
  • 1990-09 Published
  • 1997-07 Rescues Mars Pathfinder
  • History courtesy of Mike Jones
  • http//www.cs.cmu.edu/rajkumar/mars.html
Write a Comment
User Comments (0)
About PowerShow.com