From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8tcJ-0002PM-Bt for qemu-devel@nongnu.org; Mon, 21 Nov 2016 13:47:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8tcG-0001Ja-6P for qemu-devel@nongnu.org; Mon, 21 Nov 2016 13:46:59 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8tcF-0001IS-TW for qemu-devel@nongnu.org; Mon, 21 Nov 2016 13:46:56 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uALIhp9W078535 for ; Mon, 21 Nov 2016 13:46:52 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 26v54dcq3t-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 21 Nov 2016 13:46:52 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 21 Nov 2016 18:46:51 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 78E33219004D for ; Mon, 21 Nov 2016 18:46:01 +0000 (GMT) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uALIkmtJ32243772 for ; Mon, 21 Nov 2016 18:46:48 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uALIkmpA011790 for ; Mon, 21 Nov 2016 11:46:48 -0700 Date: Mon, 21 Nov 2016 19:46:44 +0100 From: Greg Kurz In-Reply-To: References: <1479312176-224580-1-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20161121194644.6da0a005@bahia> Subject: Re: [Qemu-devel] [PATCH RFC 0/2] numa: allocate CPUs masks dynamically List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Igor Mammedov , qemu-devel@nongnu.org, David Gibson , Eduardo Habkost , Paolo Bonzini On Thu, 17 Nov 2016 17:27:20 +1100 Alexey Kardashevskiy wrote: > On 17/11/16 03:02, Igor Mammedov wrote: > > This series removes global MAX_CPUMASK_BITS constant > > so that it won't inderectly influence maximum CPUs count > > supported by different targets. > > > > It replaces statically allocated bitmasks with dynamically > > allocated ones using '-smp maxcpus' value for setting > > bitmasks size. > > That would allocate just enough memory to handle all > > CPUs indexes that a QEMU instance would ever have. > > > > CC: Alexey Kardashevskiy > > CC: Greg Kurz > > CC: David Gibson > > CC: Eduardo Habkost > > CC: Paolo Bonzini > > > > > > Igor Mammedov (2): > > add bitmap_free() wrapper > > numa: make -numa parser dynamically allocate CPUs masks > > Nice, with "ulimit -n 3072", guest kernel with CONFIG_NR_CPUS=2048, > "mc->max_cpus = 2048;" in hw/ppc/spapr.c, and "-smp 2048,threads=8" in > QEMU cmdline, I get all 2048 CPUs in the guest. > Nice ! And mc->max_cpus in hw/ppc/spapr.c no longer depends on MAX_CPUMASK_BITS since commit 079019f2e319b, so it is already possible to bump that value (1024 ? 2048 ?). Will you send a patch ? > > Tested-by: Alexey Kardashevskiy > > > > > > include/qemu/bitmap.h | 5 +++++ > > include/sysemu/numa.h | 2 +- > > include/sysemu/sysemu.h | 7 ------- > > numa.c | 19 ++++++++++++------- > > vl.c | 5 ----- > > 5 files changed, 18 insertions(+), 20 deletions(-) > > > >