Open
【OLK-6.6】【OLK-5.10】网络多路径RPS增强 #9102
lixiasongAdd on  May 7
lixiasong
lixiasong
May 7 Create

特性描述

对网络多路径(oenetcls模块)RPS功能进行增强,支持本地loopback网卡和物理网卡接收到的报文,按照配置的不同RPS策略分散到与网卡中断相同NUMA或Cluster上CPU核进行处理。
在报文处理多核CPU负载均衡的同时,兼顾NUMA、Cluster亲和性。

交付计划

版本分支 计划合入时间
OLK-6.6 2026-5-13
OLK-5.10 2026-5-13

背景和需求分析

网卡收包是由硬件将报文存放在指定的收包队列中,然后触发硬件中断通知系统从队列收包。而同一个硬件中断只能由一个CPU核进行处理,硬中断初步处理后触发软中断进行真正的报文处理流程。

对于单队列网卡、多核CPU而言,所有的报文都将在固定的CPU核上处理,而其他CPU核处于空闲状态,会导致单CPU核性能为报文处理瓶颈。

现有的Linux RPS、RFS机制,都是为了解决多核CPU间的负载均衡,以及内存亲和(RFS)。而在NUMA架构以及多Cluster情况下,需要重新考虑内存亲和对报文分发策略的变化。

NUMA Node(节点)
    └── Cluster(簇/集群)      ← 共享LLC或距离近
            └── Core(核心)
                    └── Thread(逻辑CPU)

在报文进行分发处理时,如果网卡中断(硬中断)处理所在CPU、软中断CPU(一般与硬中断相同)、内核网络处理所在CPU以及用户应用所在CPU,不在同一NUMA将会导致内存的跨NUMA访问,造成性能损耗。而不同Cluster间的访问也会带来L3 Cache miss,造成性能小幅下降。

问题现状:

  • RPS在选择处理CPU时,需要考虑亲和性、避免跨NUMA或Cluster;

技术方案设计

网络多路径功能(oenetcls模块)已经实现网卡中断和用户应用在同一NUMA或Cluster处理,在此基础之上做如下增强:

在报文接收后进行网络处理时,和RPS流程处理点一致。在处理点将不同流报文散列在不同CPU核进行处理,同时提供不同的策略,使之散列到同一Cluster或同一NUMA。

测试计划和验收标准

1.功能测试

2.性能测试

3.长稳测试

兼容性影响评估

无兼容性影响:
模块未编译、加载时,不影响原有的网络处理;
模块加载后,对之前版本模块参数兼容;

相关依赖和风险分析

无依赖和风险

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 7 Added label: sig/Kernel
openeuler-ci-bot
openeuler-ci-botCollaborators
May 7 Comments:

Welcome To openEuler Community

Hey @lixiasong , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: Kernel ,
and any of the maintainers: @hanjunguo, @oekernel, @sanglipeng, @zeng_zhaorong, @zhengzengkai ,
and any of the committers: @CTC-XiboWang, @Frank_Sae, @GongLei-, @LiuYongQiang0816, @SuperSix173, @Tankll2021, @TrueAI, @allen-shi, @baratta, @caixu-blue, @chenjiesong, @chenjunxin1992, @chenke2026, @chiqijun, @chriszjh, @duanqiangwen, @fangfeng123, @fanghaiqinghw, @gaojuxin09, @gouhao2022, @guzitao, @hanjunguo, @hanliyang, @hellotcc, @hewanhan, @hjx_gitff, @hongwu-wang, @htforge, @hu-chunzhi, @hunan4222, @jackknight, @jerry_lilijun, @junlong-zheng, @juntianlinux, @kailiu42, @kaitiandu, @kazero00, @kevinzhu1, @kile2009, @koishimind, @kongzizaixian, @kylin-mayukun, @leoliu-oc, @li-huisong, @linan888, @linyunsheng, @liulongfang, @lostway1, @luckky7, @lujialin2, @markyuan4ta21, @mingqian218472, @mufengyan, @pigalsofine, @qinirao, @robinorg, @rock_hw, @sanglipeng, @shu-shengming, @shuaijiakun, @sming56_admin, @stavewu, @stkid, @wangboe2022, @wenzhiwei11, @whoisxxx, @wkfxxx, @woqidaideshi, @wsoydl, @xingmz1, @xukuohai, @yeweihua999, @ygn-ndwd-official, @yonghu_4dc5, @young-sun, @yuehaibing_planb, @yuzenghui1, @zhang-changzhong, @zhangyi089, @zhujianwei001, @zichengqu, @zqiao216 .

likedislike
lixiasonglixiasong
May 7 Modify description of issue
16 event messages are collapsed here。 See more
openeuler-ci-botopeneuler-ci-botCollaborators
May 20 Close issue
openeuler-ci-bot
openeuler-ci-botCollaborators
May 20 Comments:

Notice

@ , this issue is linked to an open PR. Please merge the PR before closing this issue.

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 20 Reopen issue