首页> 外文期刊>IEEE/ACM Transactions on Networking >Hashed and hierarchical timing wheels: efficient data structures for implementing a timer facility
【24h】

Hashed and hierarchical timing wheels: efficient data structures for implementing a timer facility

机译:哈希和分层定时轮:用于实现计时器功能的高效数据结构

获取原文
获取原文并翻译 | 示例

摘要

The performance of timer algorithms is crucial to many network protocol implementations that use timers for failure recovery and rate control. Conventional algorithms to implement an operating system timer module take O(n) time to start or maintain a timer, where n is the number of outstanding timers: this is expensive for large n. This paper shows that by using a circular buffer or timing wheel, it takes O(1) time to start, stop, and maintain timers within the range of the wheel. Two extensions for larger values of the interval are described. In the first, the timer interval is hashed into a slot on the timing wheel. In the second, a hierarchy of timing wheels with different granularities is used to span a greater range of intervals. The performance of these two schemes and various implementation tradeoffs are discussed. We have used one of our schemes to replace the current BSD UNIX callout and timer facilities. Our new implementation can support thousands of outstanding timers without much overhead. Our timer schemes have also been implemented in other operating systems and network protocol packages.
机译:计时器算法的性能对于许多使用计时器进行故障恢复和速率控制的网络协议实现至关重要。实现操作系统计时器模块的常规算法需要O(n)的时间来启动或维护计时器,其中n是未完成的计时器的数量:对于大n而言,这是昂贵的。本文显示,通过使用圆形缓冲区或计时轮,启动,停止和维持计时器在轮范围内需要O(1)时间。描述了较大间隔值的两个扩展。首先,将计时器间隔散列到计时轮上的一个插槽中。在第二个中,具有不同粒度的计时轮的层次结构用于跨越更大的间隔范围。讨论了这两种方案的性能以及各种实现之间的权衡。我们使用一种方案来替换当前的BSD UNIX标注和计时器功能。我们的新实现可以支持数千个出色的计时器,而无需太多开销。我们的计时器方案也已在其他操作系统和网络协议包中实现。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号