代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/numactl 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 6587ed2e4b8ce6d1eb0812f89709101f2bfdd1f1 Mon Sep 17 00:00:00 2001
From: Ackerley Tng <ackerleytng@google.com>
Date: Wed, 15 Mar 2023 00:23:14 +0000
Subject: [PATCH] numactl.c: Fix merging of neighboring pages' policies in
dump_shm
In addition to checking that the policies are equal, also check that
the nodes are equal, since the policies may be the same but apply to
different nodes.
Fixes #170
Signed-off-by: buque <wuxu.wu@huawei.com>
---
shm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/shm.c b/shm.c
index 5d0d1ab..66dbea4 100644
--- a/shm.c
+++ b/shm.c
@@ -205,11 +205,12 @@ void dump_shm(void)
if (get_mempolicy(&pol, nodes->maskp, nodes->size, c+shmptr,
MPOL_F_ADDR) < 0)
err("get_mempolicy on shm");
- if (pol == prevpol)
+ if (pol == prevpol && numa_bitmask_equal(prevnodes, nodes))
continue;
if (prevpol != -1)
dumppol(start, c, prevpol, prevnodes);
- prevnodes = nodes;
+
+ copy_bitmask_to_bitmask(nodes, prevnodes);
prevpol = pol;
start = c;
}
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。