From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC4IW-0007Ix-9i for qemu-devel@nongnu.org; Wed, 21 Aug 2013 05:01:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC4IQ-0006iT-4B for qemu-devel@nongnu.org; Wed, 21 Aug 2013 05:01:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC4IP-0006hi-Pp for qemu-devel@nongnu.org; Wed, 21 Aug 2013 05:01:41 -0400 Message-ID: <521481B9.9070604@redhat.com> Date: Wed, 21 Aug 2013 11:00:41 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1376960839-13033-1-git-send-email-gaowanlong@cn.fujitsu.com> <52137284.9070402@redhat.com> <52141657.1020209@cn.fujitsu.com> In-Reply-To: <52141657.1020209@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V8 00/11] Add support for binding guest numa nodes to host numa nodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: gaowanlong@cn.fujitsu.com Cc: aliguori@us.ibm.com, ehabkost@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, bsd@redhat.com, hutao@cn.fujitsu.com, y-goto@jp.fujitsu.com, peter.huangpeng@huawei.com, afaerber@suse.de Il 21/08/2013 03:22, Wanlong Gao ha scritto: > On 08/20/2013 09:43 PM, Paolo Bonzini wrote: >> Il 20/08/2013 03:07, Wanlong Gao ha scritto: >>> -numa node,nodeid=0,cpus=0, \ >>> -numa mem,size=1024M,policy=membind,host-nodes=0-1 \ >>> -numa node,nodeid=1,cpus=1 \ >>> -numa mem,size=1024M,policy=interleave,host-nodes=1 >> >> What nodes would the memory be in, for this command line? Does it just > > The original concept here is that if the nodeid is omitted, it will be > set node by node from node0. Here I also keep the original concept, so the > memory will be in node0 and node1. > >> compute the total and split it evenly across the nodes (so that the >> "-numa node" options could omit nodeid and cpus too)? > > If no memory size is given for any nodes, the memory will split across > all nodes like (ram_size / nb_numa_nodes). And yes nodeid and cpus options > can also be omitted from the original concept. > >> >> Also, do you still need a "-m" option if you use "-numa mem"? > > The "-m" options will be used to compute the memory size of each node > if the memory size of each node is not set by "-numa mem" option. This > is also be consistent with the original concept. Ok. You didn't answer my exact question though---could you run the above command line without "-m 2048"? (Of course with hotplug like in Igor's case you'll still need "-m maxmem=4096,slots=4" or something like that) Paolo