Linux 多核环境下网卡驱动是影响网络性能的重要因素。网卡接收数据包首先通过硬件中断响应,然后NAPI机制调度,启用软件中断把数据包向网络层传递。通过分析网卡接收数据的过程,对网卡驱动做了优化,做了相应实验并对结果数据进行分析,在一定程度上提高了网络性能,达到预期效果。%In Linux multi-core environment, network driver adapter is an important factor that affects network performance. When receiving a data package, network driver adapter responses with hardware interrupt firstly. Then it schedules with NAPI mechanism and uses software interrupt to forward the data package upward to the network layer. By analyzing to know the data receiving process of network driver adapter, this paper tries to optimize the network driver adapter. Furthermore, it designs appropriate experiments, and the experiment result approves the network performance is improved to a certain extent.
展开▼