摘要
目前,Linux操作系统被广泛应用在网络数据包收发系统中。这是因为,Linux采用中断机制来响应外部事件,保证了系统能够合理高效地利用CPU资源。但是,在高负荷网络环境下,大量的CPU资源将会被频繁到达的网卡中断占用,导致系统遭遇性能瓶颈,出现接收活锁1。为了避免在高负荷网络环境下系统性能下降,该文采用轮询机制处理网络数据的收发,而在低负荷网络环境中,仍然采用原有的中断机制。
Nowadays Linux operating system is widely used in packet forwarding systems .This is because Linux uses interface interrupts to schedule network tasks,it can ensure that CPU can be efficiently used to manage various I/O devices in o rdinary networks.But in high-speed networks,frequent response to network ta sks will use most of the CPU resources.So the system will definitely suffer fro m performance bottleneck and receive livelock.To alleviate this problem,this p aper uses polling threads during high network loads and interrupts during low ne twork loads.
出处
《计算机工程与应用》
CSCD
北大核心
2004年第11期134-138,共5页
Computer Engineering and Applications
关键词
接收活锁
中断机制
轮询机制
Receive livelock,Interrupt-driven,Polling