Eliminating receive livelock in an interrupt-driven kernel

被引:205
作者
Mogul, JC [1 ]
Ramakrishnan, KK [1 ]
机构
[1] AT&T BELL LABS, RES, FLORHAM PK, NJ 07932 USA
来源
ACM TRANSACTIONS ON COMPUTER SYSTEMS | 1997年 / 15卷 / 03期
关键词
interrupt-driven kernel; livelock; polling; scheduling;
D O I
10.1145/263326.263335
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Most operating systems use interface interrupts to schedule network tasks. Interrupt-driven systems can provide low overhead and good latency at low offered load, but degrade significantly at higher arrival rates unless care is taken to prevent several pathologies. These are various forms of receive livelock, in which the system spends all of its time processing interrupts, to the exclusion of other necessary tasks. Under extreme conditions, no packets are delivered to the user application or the output of the system. To avoid livelock and related problems, an operating system must schedule network interrupt handling as carefully as it schedules process execution. We modified an interrupt-driven networking implementation to do so; this modification eliminates receive livelock without degrading other aspects of system performance. Our modifications include the use of polling when the system is heavily loaded, while retaining the use of interrupts under lighter load. We present measurements demonstrating the success of our approach.
引用
收藏
页码:217 / 252
页数:36
相关论文
共 30 条
[1]  
[Anonymous], MITLCSTM528
[2]  
CHANG CH, 1993, DIGITAL TECH J, V5, P44
[3]  
CHEN JB, 1995, TR2695 HARV U CTR RE
[4]  
Druschel P, 1996, PROCEEDINGS OF THE SECOND SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION (OSDI '96), P261, DOI 10.1145/248155.238786
[5]  
EUSTACE A, 1995, PROCEEDINGS OF THE 1995 USENIX TECHNICAL CONFERENCE, P303
[6]  
Fall K., 1995, Proceedings of the 5th International Workshop on Network and Operating System Support for Digital Audio and Video, P179
[7]  
FALL K, 1994, THESIS U CALIFORNIA
[8]  
FERRARI D, 1991, 916 U CAL
[9]   Random Early Detection Gateways for Congestion Avoidance [J].
Floyd, Sally ;
Jacobson, Van .
IEEE-ACM TRANSACTIONS ON NETWORKING, 1993, 1 (04) :397-413
[10]  
JACOBSON V, 1990, ACM SIGCOMM 90 TUTOR