摘要
软中断在Linux内核中,作为一种对时间要求最为严格的中断下半部处理机制,在处理网络数据包的过程中发挥着无可替代的作用,而软中断处理函数采用固定的循环检测次数,以至于系统可能在网络负载高的情况下对数据包不能进行及时有效处理。提出了一种最大循环检测次数可动态变化的方法来优化软中断处理机制,实验表明,相比现有的软中断机制而言,在同样的环境下可以处理更多的软中断例程,表现为捕获更多的网络数据包,提升了系统处理软中断的能力,进而在系统级上优化了Linux网络处理性能。
As the most strict bottom half handling mechanism of interruption on time accuracy, soft interrupt mechanism plays an irreplaceable role in the process of handling network packet. However, unalterable circular check times taken by soft interruption handling function causes system unable to handle packets effectively under high traffic load. This paper presented a methodology of adaptive circular checking times to optimize soft interruption handling mechanism. Test shows that compared with the former mechanism, current soft interruption mechanism can handle more soft interruption routines in the same condition, i.e. capturing more network packets. The methodology improves the system's capacity to handle soft interruptions and optimizes the handling capability of Linux network.
出处
《计算机应用》
CSCD
北大核心
2010年第1期104-107,113,共5页
journal of Computer Applications
基金
重庆市信息产业发展专项资金资助项目(200811004)
关键词
软中断
下半部处理机制
LINUX内核
最大循环检测次数
软中断例程
soft interruption
bottom half handling mechanism
Linux kernel
max circular checking times
softinterruption routine