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:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6135
一、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。