Received: from eggs.gnu.org ([2001:4830:134:3::10]:41388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwdZF-0005nd-Fx for qemu-devel@nongnu.org; Mon, 16 Jun 2014 16:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwdZ9-0004Yr-6o for qemu-devel@nongnu.org; Mon, 16 Jun 2014 16:31:49 -0400 Date: Mon, 16 Jun 2014 17:31:24 -0300 From: Eduardo Habkost Message-ID: <20140616203124.GC8629@otherpad.lan.raisama.net> References: <1402905233-26510-1-git-send-email-aik@ozlabs.ru> <1402905233-26510-8-git-send-email-aik@ozlabs.ru> <20140616161500.GD3222@otherpad.lan.raisama.net> <20140616184945.GI16644@linux.vnet.ibm.com> <20140616201140.GB8629@otherpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140616201140.GB8629@otherpad.lan.raisama.net> Subject: Re: [Qemu-devel] [PATCH 7/7] numa: Allow empty nodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nishanth Aravamudan Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Alexander Graf On Mon, Jun 16, 2014 at 05:11:40PM -0300, Eduardo Habkost wrote: [...] > Wait, is the node ID visible to the guest at all? I believe it is a > QEMU-internal thing, just to allow the NUMA nodes to be ordered in the > command-line. I would even claim that the parameter is useless and > shouldn't have been introduced in the first place. > > What I don't se is: why you need the command-line to look like: > -numa node,id=1,mem=X > when you can simply write it as: > -numa node,id=0 -numa node,id=1,mem=X Oh, I believe now I see it: the problem is not that you don't just need "memory-less nodes" (which could be simply defined explicitly like above), but that you need non-contiguous node IDs, which are visible to the guest. In this case, my example above with two -numa options would work, but it would be confusing as the user just wants one node with ID=1 (instead of two nodes). So, now your patch makes sense to me. But we first need something to make sure the following command-line: -numa node,id=3 -numa node,id=2 be different from: -numa node,id=0 -numa node,id=1 -numa node,id=2 -numa node,id=3 The former should divide the memory in half, between nodes 1 and 2. The latter should divide the memory in four, between nodes 0, 1, and 2. -- Eduardo