1 / 31

Soft Timers: Efficient Microsecond Software Timer Support for Network Processing

Soft Timers: Efficient Microsecond Software Timer Support for Network Processing. Paper by: Mohit Aron and Peter Druschel of Rice University Presenter: Billy Cheung. Outline. Background: ScalaServer Timers Key Principles Motivation for Soft Timers Applications in Network setting

slade
Télécharger la présentation

Soft Timers: Efficient Microsecond Software Timer Support for Network Processing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Soft Timers: Efficient Microsecond Software Timer Support for Network Processing Paper by: Mohit Aron and Peter Druschel of Rice University Presenter: Billy Cheung

  2. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  3. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  4. ScalaServer: System Support for Scalable Network Servers http://www.cs.rice.edu/CS/Systems/ScalaServer/

  5. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  6. Periodic Timer

  7. Soft Timer

  8. One-Shot Timer

  9. One Timer

  10. Two Timers

  11. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  12. Based on Convenience/Laziness

  13. Trigger States

  14. Timing Wheels

  15. Keep a large timing wheel A curser in the timing wheel moves one location every time unit (just like a seconds hand in the clock) If the timer interval is within a rotation from the current curser position then put the timer in the corresponding location Requires exponential amount of memory Simple Timing Wheel 0 1 7 2 6 3 5 4 START_TIMER = O(1) STOP_TIMER = O(1) PER_TICK_BOOKKEEPING = O(1) Taken from http://ieeexplore.ieee.org/iel4/90/14085/00650142.pdf?arnumber=650142

  16. Disadvantages?

  17. Maximum Bound Time: Governed by periodic interrupt

  18. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  19. Why do we need them?

  20. Interrupts and context switches are expensive

  21. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  22. Rate-based Clocking

  23. Problem: ACK Compression

  24. Problem: big ACKs

  25. Problem: Slow start is slow

  26. Network Polling

  27. Problem: Transmit/Receiver Interrupts common

  28. Problem: Polling can cause horrible latency problems (especially with anything you need real-time)

  29. Outline • Background: • ScalaServer • Timers • Key Principles • Motivation for Soft Timers • Applications in Network setting • Rate-Based Clocking • Network Polling • Summary/Discussion

  30. Soft Timers work.

  31. References: ScalaServer: http://www.cs.rice.edu/CS/Systems/ScalaServer/ Hashed and hierarchical timing wheels: Data structures for the efficient implementation of a timer facility: http://portal.acm.org/citation.cfm?id=37504 Anticipatory scheduling: a disk scheduling framework to overcome deceptive idleness in synchronous I/O: http://portal.acm.org/ft_gateway.cfm?id=502046&type=pdf&coll=portal&dl=ACM&CFID=11111111&CFTOKEN=2222222

More Related