Skip to contentSkip to conversation

numa: Don't limit node count by smp count

PATCH In review Sasha Levin 2 participants 2 messages Mar 29, 2011 – Mar 30, 2011 KVM

lore
Share & tools
lore
#0 lore raw

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.

---
 vl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
vl.c +2 -2
index 8bcf2ae..8cc1aa8 100644
@@ -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

#1 lore raw
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