qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 1/8] v2: introduce -numa command line option


From: Andre Przywara
Subject: [Qemu-devel] Re: [PATCH 1/8] v2: introduce -numa command line option
Date: Wed, 17 Dec 2008 00:31:48 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081105)

Anthony Liguori wrote:
+        if (i == numnumanodes) {
+            for (i = 0; i < smp_cpus; i++)
+                node_to_cpus[i % numnumanodes] |= 1<<i;

The way CPUs are allocate here seems strange? Each CPU is assigned round robin? Should you have node 0 contain 1..X, node 1 contain X..Y, node 2 contain Y..smp_cpus?
This is because an algorithm to do it this way is more complicated than this round-robin scheme (imagine distributing 8 CPUs over 3 nodes). Actually I know machines which do this natively (probably for the same reason, code simplicity in the BIOS). OSes can cope with my variant too, there is no guarantee that sequentially numbered CPUs belong to one node.
But if you insist, I fix it.

Regards,
Andre.

--
Andre Przywara
AMD-OSRC (Dresden)
Tel: x84917





reply via email to

[Prev in Thread] Current Thread [Next in Thread]