[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: Wei Chen <Wei.Chen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 18 Jul 2022 10:10:27 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • 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=OLiRB3NPnmg89a3Id+CFH0yyvip2V4psLbTZNzRF7nI=; b=Kdm1ozieyFW1beb2WlOJurVrsae8veJw1RtQAVWphTuHJA45Qqn3DhYx1jk+nB+H7pl6Vb2DevgCZyaqmiHtunBhysFQiTwoaF5GePdPRFN4b9F2mPASePR/SOZRwqNHiToHomk6tU5VQ0hYgE/EI/65xTIOhoAuECZ5g4CDsUAv8RX9fs141l9sKXIbL5dJY7UwEdNcfYbnmuQYaWucXiDOXqroSgmXoNsIIXISvtDTz2il/ohlNriVyxWW61B7bSrNdZExy0OdZQWQH02DRTkfoetKXHNIopFqb0ikvrrC9EcdnZZJVRQKSB8FI+uUVWn1wO6lEMZDfEpEBqrFKQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AW2ab3VvzXWWig6m+FcdniguSnvIv2gQI+TWoxT8q0zYAkDx28rhdEl9RZC/DSuLFLFj8dO43KLNwbMxumrVMlQqA6qFKo4Kn1gj3AcNKlS9tfh3bGspWlMNYhkevKC/lPDHke6OcAIhfVcleAXswFTY7zAKsQYq/TQo8LqaH5gBgIosXUOV1QhVOPDmH05pNr9VJwrtQmeIFKxK4wWknBUanu0IeroUdCfOafiqAjNCjkh98qX7scyZHw7pl/1NiGxmhyo9hzURcSBupFD5D+vj5q4xOBN3DwtIX/fJWlXuNr/3L4G7FaQJKzkWIiaUC3PC6wvyAxGb2ZTFkxUKSg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.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>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Mon, 18 Jul 2022 08:10:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.07.2022 09:51, Wei Chen wrote:
>> From: Julien Grall <julien@xxxxxxx>
>> Sent: 2022年7月14日 19:27
>>
>> On 14/07/2022 12:10, Jan Beulich wrote:
>>> On 14.07.2022 12:14, Wei Chen wrote:
>>>>> From: Jan Beulich <jbeulich@xxxxxxxx>
>>>>> Sent: 2022年7月12日 22:34
>>>>>
>>>>> 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?

Personally I think we shouldn't allow unreasonably high node counts,
unless proven by real hardware existing. Which goes hand in hand with
me wanting the upper bound to be a power of 2 value, if for nothing
else than a hint that using power-of-2 values here is preferable.
Hence I'd like to propose 64 or 128 as upper bound, in this order of
(my personal) preference.

Jan



 


Rackspace

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