Bug 27656 - CONFIG_NODES_SHIFT is too small
Summary: CONFIG_NODES_SHIFT is too small
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-08 11:12 UTC by MouseZhang
Modified: 2025-12-09 11:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MouseZhang 2025-12-08 11:12:52 UTC
Description of problem:
CONFIG_NODES_SHIFT is 6 now, but it's too small.
Such as, it will limit the length of e820 table, and cause the kernel to crash.

Version-Release number of selected component (if applicable):
ALL OF ANCK KERNEL

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2025-12-08 11:29:43 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6135
Comment 2 MouseZhang 2025-12-09 11:19:24 UTC
一、e820长度限制
在有错误被检测到的情况下,为了预防严重错误发生,BIOS能够提前对相关地址提前进行永久隔离。

导致e820表长度会超过320。

320来源:

#define E820_MAX_ENTRIES	(E820_MAX_ENTRIES_ZEROPAGE + 3*MAX_NUMNODES)

128 + 3 * (1 << 6) = 320 


二、MAX_NUMANODES限制

虚拟化场景下,存在CPU sockets超过64的情况,NUMA NODE数量也超过64,而 MAX_NUMNODES 为 64。