[CSE]  Advanced Operating Systems 
 COMP9242 2002/S2 
UNSW

PRINTER Printer-Friendly Version
Administration               
- Notices
- Course Intro
- Consultations
# On-line Survey (closed)
- Survey Results
 
Work
- Lectures
- Milestone 0
- Project Admin
- Project Spec
- Project FAQ
- Exam
 
Documentation
- ASysT Lab
- L4 source browser
- Sulima ISA Simulator
R4x00 ISA Summary 
MIPS R4700 ReferenceMIPS R4000 User Manual 
- Network Driver
- GT64111
 
Related Info
- Aurema OS Prize
- OS Hall of Fame
 
History
- 2000
- 1999
- 1998
 
Staff
- Gernot Heiser (LiC)

 
Valid HTML 4.0!
next up previous
Next: The Return of the Up: 14-hot Previous: Hot Topics

Subsections

Cool Stuff: Soft Timers[AD99]

Problem: want high-resolution timers

E.g.: Timeouts in L4, prefer high resolution.

  • Kernel has wakeup queues
  • Kernel sets timer interrupt at certain frequency.
  • At each interrupt (tick) checks wakeup queue.
  • Handling interrupts is costly.
  • Handling interrupt pollutes cache.
  • Cannot have very high frequency timer ticks.

What can we do?

Idea: soft timers rather than hardware interrupt

  • Check wakeup queues when cost of handling with them is low.
  • This is generally the case when in the kernel already.
  • Do it at a time where minimal state needs to be saved.
  • Suitable times:
    • just before returning from system call,
    • at the end of exception handling,
    • at the end of interrupt handling,
    • in idle loop.

Limitations of soft timers:

  • No absolute, only probabilistic accuracy.
  • Actual accuracy depends on frequency of trigger events.
  • Can enforce absolute upper bound on delay via timer tick.


next up previous
Next: The Return of the Up: 14-hot Previous: Hot Topics
Gernot Heiser 2002-11-07