引用本文: | 杨惠,陈一骄,李韬,等.面向多核网络分组处理系统的线程亲和缓冲区管理机制.[J].国防科技大学学报,2016,38(5):26-31.[点击复制] |
YANG Hui,CHEN Yijiao,LI Tao,et al.Thread affinity for buffer management mechanism based on multi-core network packet processing system[J].Journal of National University of Defense Technology,2016,38(5):26-31[点击复制] |
|
|
|
本文已被:浏览 8471次 下载 6015次 |
面向多核网络分组处理系统的线程亲和缓冲区管理机制 |
杨惠1, 陈一骄1, 李韬1, 李世星1, 戴幻尧2 |
(1.国防科技大学 计算机学院, 湖南 长沙 410073;2.中国洛阳电子装备试验中心, 河南 洛阳 471003)
|
摘要: |
基于通用多核架构的网络分组处理系统性能受到诸如分组IO开销高、多核共享内存及进程调度竞争大、页表缓冲表项失效率高等问题的困扰。为此提出一种基于通用多核网络分组处理系统、面向高速分组转发应用的线程亲和缓冲区硬件管理机制,并在网络专用协处理引擎上实现。该机制采用无中断的线程亲和调度策略,将包含控制信息与缓冲区地址信息的描述符和分组数据按照分组处理的线程号链式地对应加载在多个地址连续的共享缓冲区中。基于通用多核和现场可编程门阵列平台进行报文转发测试,实验结果表明,采用线程亲和缓冲区管理机制能使平均报文转发处理性能提升12.4%,有效地降低IO开销和TLB表项失效率。 |
关键词: 分组IO 线程亲和 缓冲区管理 分组转发 多核 |
DOI:10.11887/j.cn.201605005 |
投稿日期:2015-05-27 |
基金项目:国家自然科学基金资助项目(612024823,61301236) |
|
Thread affinity for buffer management mechanism based on multi-core network packet processing system |
YANG Hui1, CHEN Yijiao1, LI Tao1, LI Shixing1, DAI Huanyao2 |
(1. College of Computer, National University of Defense Technology, Changsha 410073, China;2. Luoyang Electronic Equipment Test Center, Luoyang 471003, China)
|
Abstract: |
The packet processing performance of the general multi-core architecture is plagued by many factors, including high packet IO cost, multi-core share memory and process scheduling competition, TLB entries failure rate, etc. Therefore, a TABM (thread affinity for buffer management mechanism) based on multi-core network packet processing system, which is oriented to high-speed packet forwarding application was proposed and completed on network dedicated co-processing engine. The TABM adopts thread affinity scheduling strategy with no interrupt, sends each packet data and descriptor which contains control and buffer address information to several successive shared buffers according to the corresponding thread ID, and organizes the packets and descriptors which processed in the same thread in the form of a chain. The packet forwarding performance was tested on the basis of general multi-core and field-programmable gate array platform. The experimental data show that the average packet forwarding performance is promoted by about 12.4% and the IO cost and the TLB entries failure rate are reduced by adopting the TABM. |
Keywords: packet IO thread affinity buffer management packet forwarding multi-core |
|
|