[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN RFC PATCH 14/40] xen/arm: set NUMA nodes max number to 64 by default
Hi Wei, On 11/08/2021 11:23, Wei Chen wrote: Today's Arm64 systems can reach or exceed 16 NUMA nodes, so we set the number to 64 to match with x86. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- xen/include/asm-arm/numa.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xen/include/asm-arm/numa.h b/xen/include/asm-arm/numa.h index 1162c702df..b2982f9053 100644 --- a/xen/include/asm-arm/numa.h +++ b/xen/include/asm-arm/numa.h @@ -5,7 +5,15 @@typedef u8 nodeid_t; -#if !defined(CONFIG_NUMA)+#if defined(CONFIG_NUMA) + +/* + * Same as x86, we set the max number of NUMA nodes to 64 and + * set the number of NUMA memory block number to 128. + */ Such comment can rot easily if x86 decides to bump there values. But given the value is the same, I think it would make sense to move the define to xen/numa.h. +#define NODES_SHIFT 6 + +#else/* Fake one node for now. See also node_online_map. */#define cpu_to_node(cpu) 0 Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |