Received: from eggs.gnu.org ([2001:4830:134:3::10]:57087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUbC3-00084W-6d for qemu-devel@nongnu.org; Fri, 20 Jan 2017 10:33:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUbBy-0004IQ-9T for qemu-devel@nongnu.org; Fri, 20 Jan 2017 10:33:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33440) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUbBy-0004HN-3E for qemu-devel@nongnu.org; Fri, 20 Jan 2017 10:33:30 -0500 Date: Fri, 20 Jan 2017 16:33:24 +0100 From: Igor Mammedov Message-ID: <20170120163324.1b698d9a@nial.brq.redhat.com> In-Reply-To: <55000a0d-ee7a-1fbf-e88a-54c9cadcc344@redhat.com> References: <1484759609-264075-1-git-send-email-imammedo@redhat.com> <1484759609-264075-10-git-send-email-imammedo@redhat.com> <55000a0d-ee7a-1fbf-e88a-54c9cadcc344@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 09/13] numa: introduce '-numa cpu' cpu option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Dou Liyang , Andrew Jones , ehabkost@redhat.com, peter.maydell@linaro.org, fanc.fnst@cn.fujitsu.com, Thomas Huth , caoj.fnst@cn.fujitsu.com, stefanha@redhat.com, izumi.taku@jp.fujitsu.com, vilanova@ac.upc.edu, David Gibson On Fri, 20 Jan 2017 14:40:34 +0100 Paolo Bonzini wrote: > On 18/01/2017 18:13, Igor Mammedov wrote: > > It allows to specify mapping of a CPU to NUMA node on CLI. > > Option should be repeated for each present/possible CPU. > > Example for PC machine: > > -numa node,nodeid=0 -numa node,nodeid=1 \ > > -numa cpu,socket-id=0,core-id=0,thread-id=0,node-id=0 \ > > -numa cpu,socket-id=1,core-id=0,thread-id=0,node-id=1 > > > > Signed-off-by: Igor Mammedov > > What about making core-id/thread-id optional, like > > -numa cpu,socket-id=0,node-id=0 > > ? > > Also perhaps change it like this to make it less verbose and match > "-numa node": > > -numa node,nodeid=0 -numa cpus,nodeid=0,socket=0 \ > -numa node,nodeid=1 -numa cpus,nodeid=1,socket=1 the reason, I've made it strict/mandatory is that it's becomes trivial property setting and matches mandatory options for -device x86-foo-cpu,... we can always make it less strict afterwards but not other way around, but I can try to make it less strict on respin. > (Yeah, I know, bikeshedding). > > Paolo