代码拉取完成,页面将自动刷新
From c766c3d12b1bb5e791cff3f34c733f18ce5cdd18 Mon Sep 17 00:00:00 2001
From: jiangheng <[email protected]>
Date: Thu, 9 May 2024 21:57:54 +0800
Subject: [PATCH] require at least two segs per memseg lists in map-perfect
mode
---
lib/eal/common/eal_common_dynmem.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/eal/common/eal_common_dynmem.c b/lib/eal/common/eal_common_dynmem.c
index 89e2acd..7f270a0 100644
--- a/lib/eal/common/eal_common_dynmem.c
+++ b/lib/eal/common/eal_common_dynmem.c
@@ -229,8 +229,14 @@ eal_dynmem_memseg_lists_init(void)
"n_segs:%i socket_id:%i hugepage_sz:%" PRIu64 "\n",
n_seglists, n_segs, socket_id, pagesz);
- if (internal_conf->map_perfect)
+ if (internal_conf->map_perfect) {
need_n_segs = eal_sec_get_num_pages(used_hp, pagesz, socket_id);
+ /*
+ * commit 51a5a72e2a (eal/linux: fix legacy mem init with many segments) require
+ * at least 2 segs per memseg list
+ */
+ need_n_segs = RTE_MAX(2, need_n_segs);
+ }
else
need_n_segs = n_segs;
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。