numa: Don't limit node count by smp count
PATCH 1/1 numa: Don't limit node count by smp count
It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs.
Signed-off-by Sasha Levin <[email protected]>
--- vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
vl.c +2 -2
@@ -3002,8 +3002,8 @@ int main(int argc, char **argv, char **envp)if (nb_numa_nodes >0 ) {int i; -if (nb_numa_nodes > smp_cpus) { - nb_numa_nodes = smp_cpus; +if (nb_numa_nodes >MAX_NODES ) { + nb_numa_nodes =MAX_NODES ; }/* If no memory size if given for any node, assume the default
case
Quoted 2 lines · Sasha Levin
It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs.
Patch seems fine; but please send to [email protected].
Signature · 1 line
error compiling committee.c: too many arguments to function