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

RE: [PATCH v2 9/9] xen: introduce a Kconfig option to configure NUMA nodes number


  • To: Julien Grall <julien@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Mon, 18 Jul 2022 07:51:40 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BjGx78bJnWHhRzsa/su5yBPTVwWm1/fIEMhsXv8gEOc=; b=i6UNPV3SIZKPQX+IW6cT/g6eivJywfmgU2kPFHn8BqKfSKdLIZGy1g3C/zGgsRuAk+Yo73Az+qcoVk346cq+iWYadEJj9Ecb8FC7OylUQBajDio/bjFfAsz20O/8f2ZPY+0OsJ9NqT9EB4g74ARzSy4rVrAZVQ/ME9Tdsr4Txeh0asIMImUFwOk7H7/5sl3I/buqX8KeDhFivLTvMSiUCUHnpr121KkUOWSc7SSNx8mXgV2bGLXuJiZGSiwrxWIOG0TQlspHgClKbnaJUeeyOlnmUWTOi6nPdhf+ec+0cKmqKGg+AGbxVZddPrksbX06saJ55Q/EEA0H9gSoLOfc2A==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BjGx78bJnWHhRzsa/su5yBPTVwWm1/fIEMhsXv8gEOc=; b=Bbev20bPVoxP35xu5H12PeHTGEOWitI53R7h9VKFtM5mPyEG6oD0YBP/INaOc26EUWwrM2ewG3df596+MJGDRxSdTrNiioYqnQ5LERHSxhVPXPadYMDsfERi4VbFnNnUMxPZFeXKrD0UyfxOtzs1Q9Gj5STxOMo/TdxT7Lkf9gAA5e8r+qLeHUpOdeZAerNd0hLNhX7WoThfiNHyaNc9eEf7hEpH+95NOddDi+c0GlPujI2vpJacbKFjmkL5Ni9xxG0QmfkpOfJL2w4Jd79hosha9Y6/x1vF5R+x7UpTXUeyjWIQmIl2rfau7Znqy702UhqOfhSm14Lwwmxf4ChUFw==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=A/a66/Cah+Fgtu9PZqo2fSCabBRv+/TxX0u5z7cncub41iGxWpnqkdf+CjccBzaw4w3we1OCAOqxJoLqtuo7XkNejP7JLEiMFHn3/iZHo2i1I8uVQIKkbCE/gmPGKckSzShQiQ2GCvwCFAwF9LgqjZwsB+9tIAfvwBRjl3lFcnGAdpXoKT5YOsamILrtCPCnUsiR1XNyXrCKRiZtxZIN9CqnTfQ4ru2rWzLmx9s9VdMGCnF3M02zVvxcUDoJ7sYt7iFOKWDz/Ojd5uTH9zC5iUEhVGZrxcDp3q3cuPqEsCZJfQkRUtYAA6ezRWA0t2cHEg3pQfVM3PhayUpqQk8aOw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bSlBcItPErkvBfYfUw6PzuRPhfU/L/hiKkTlG9dHYc8FRN1h8utnJTFJjAeKQ4HYx2g2YJTCIZm6+zxj/vqXtgld7Tgr8Num7E4TSEi5j6ueF0V+s0E1va+h5oLkr1myaxdr3PjeIvZvmRpGhCqbqvXUJ7b05tEpoxnykq62xUuACiwfs12SQJ6mwr7aUNTM4g9thfkp42z6oFayOcWxI3hOQ98URU3P6FWNbx/0aEu53uvvgaKW+xki4+h/mzHRAkL5uESd+nGmqseC/MG+q5tQ5T7Yl9keFD9btmtPxSqpfY+Rq2GQg1ldVKnafxEpV71LLh4VakNEXfdnoLbMTg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: nd <nd@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 18 Jul 2022 07:51:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYktrGRUcF8MDJDk6LN0+4egi+Ca160z2AgALXevCAABQigIAABL8AgAYMPgA=
  • Thread-topic: [PATCH v2 9/9] xen: introduce a Kconfig option to configure NUMA nodes number

Hi Julien, Jan,

> -----Original Message-----
> From: Julien Grall <julien@xxxxxxx>
> Sent: 2022年7月14日 19:27
> To: Jan Beulich <jbeulich@xxxxxxxx>; Wei Chen <Wei.Chen@xxxxxxx>
> Cc: nd <nd@xxxxxxx>; Andrew Cooper <andrew.cooper3@xxxxxxxxxx>; George
> Dunlap <george.dunlap@xxxxxxxxxx>; Stefano Stabellini
> <sstabellini@xxxxxxxxxx>; Wei Liu <wl@xxxxxxx>; Roger Pau Monné
> <roger.pau@xxxxxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2 9/9] xen: introduce a Kconfig option to configure
> NUMA nodes number
> 
> Hi Jan,
> 
> On 14/07/2022 12:10, Jan Beulich wrote:
> > On 14.07.2022 12:14, Wei Chen wrote:
> >> Hi Jan,
> >>
> >>> -----Original Message-----
> >>> From: Jan Beulich <jbeulich@xxxxxxxx>
> >>> Sent: 2022年7月12日 22:34
> >>> To: Wei Chen <Wei.Chen@xxxxxxx>
> >>> Cc: nd <nd@xxxxxxx>; Andrew Cooper <andrew.cooper3@xxxxxxxxxx>; George
> >>> Dunlap <george.dunlap@xxxxxxxxxx>; Julien Grall <julien@xxxxxxx>;
> Stefano
> >>> Stabellini <sstabellini@xxxxxxxxxx>; Wei Liu <wl@xxxxxxx>; Roger Pau
> Monné
> >>> <roger.pau@xxxxxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> >>> Subject: Re: [PATCH v2 9/9] xen: introduce a Kconfig option to
> configure
> >>> NUMA nodes number
> >>>
> >>> On 08.07.2022 16:54, Wei Chen wrote:
> >>>> --- a/xen/arch/Kconfig
> >>>> +++ b/xen/arch/Kconfig
> >>>> @@ -17,3 +17,14 @@ config NR_CPUS
> >>>>            For CPU cores which support Simultaneous Multi-Threading or
> >>> similar
> >>>>            technologies, this the number of logical threads which Xen
> will
> >>>>            support.
> >>>> +
> >>>> +config NR_NUMA_NODES
> >>>> +        int "Maximum number of NUMA nodes supported"
> >>>> +        range 1 255
> >>>> +        default "64"
> >>>> +        depends on NUMA
> >>>
> >>> Does 1 make sense? That's not going to be NUMA then, I would say.
> >>>
> >>
> >> Ok, we need at least 2 nodes to be a real NUMA.
> >>
> >>> Does the value being (perhaps far) larger than NR_CPUS make sense?
> >>>
> >>
> >> Arm has 128 default NR_CPUS (except some platforms) and x86 has 256.
> >> So I am not very clear about your comments about far larger? As my
> >> Understanding, one node has 2 or 4 cores are very common in a NUMA
> >> System.
> >
> > The defaults are fine. But does it make sense to have 255 nodes when
> > just 32 CPUs were selected? I'm afraid kconfig is going to get in the
> > way, but I think I'd like the upper bound to be min(NR_CPUS, 255).
>
> Looking around NUMA nodes with 0 CPUs exists. So I don't think we should
> tie the two.
> 

Yes, some nodes can only have RAM and some nodes can only have CPUs.
So is it ok to use 2-255 for node range?

> Cheers,
> 
> --
> Julien Grall

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.