1 Star 0 Fork 32

fantaotao1/gazelle

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0242-send-recv-thread-bind-numa-only-app_bind_numa-set-to.patch 898 Bytes
一键复制 编辑 原始数据 按行查看 历史
jinag12 提交于 2023-06-14 14:34 . sync fix udp send/recv in muliple queue
From 0567322f373c084955d713dbf13459862a23e686 Mon Sep 17 00:00:00 2001
From: jiangheng12 <jiangheng14@huawei.com>
Date: Tue, 30 May 2023 20:45:47 +0800
Subject: [PATCH] send/recv thread bind numa only app_bind_numa set to 1
---
src/lstack/core/lstack_lwip.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lstack/core/lstack_lwip.c b/src/lstack/core/lstack_lwip.c
index f12bfdb..62b4838 100644
--- a/src/lstack/core/lstack_lwip.c
+++ b/src/lstack/core/lstack_lwip.c
@@ -950,6 +950,11 @@ static inline void thread_bind_stack(struct lwip_sock *sock)
return;
}
sock->already_bind_numa = 1;
+
+ if (get_global_cfg_params()->app_bind_numa == 0) {
+ return;
+ }
+
stack_sock_num[sock->stack->stack_idx]++;
if (stack_sock_num[sock->stack->stack_idx] > max_sock_stack) {
max_sock_stack = stack_sock_num[sock->stack->stack_idx];
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fantaotao1/gazelle.git
git@gitee.com:fantaotao1/gazelle.git
fantaotao1
gazelle
gazelle
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385