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

Re: [PATCH 02/37] xen: introduce a Kconfig option to configure NUMA nodes number


  • To: Wei Chen <Wei.Chen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 24 Sep 2021 12:47:57 +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; bh=KnO8Eali880/it8jdrwlJFiG2EqxzerrSYMMNelIrX4=; b=HpE7yRmy3WY37gQf3ECywwfcaK8drMhGplijhp/kkpXvI83ipwOBZkXvGHME1OsmhnlTtxUFY6KKPXwaZP8YC5cI1WrNOJr9vVAqtsaqlPEOybd5KwPHhoACMRsHL+xt0C1AH0Q2SKw07/libQL1QXWNJjXptaylGmBcYlbr4vz4J8uBreholF5ear7WaOLP2F0fz76+7OTyWgZz+K2f8ePU51Leb9u/hivRxUTeim/Xrrnk9Vs5aI0BSvwIEzoP6aTggXUayX9dsskchdg6Bhn2zBQ9fC8S4LNoLJ4W//2ZulDc5cIWdovK/37N0xZqrtJI0ci9rcLEP3ugMClbJg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DF+EyuRTUtRmdOebdCVfwMl+S2oy4chaSOfp/bZkpNXRkDIkfryxz/EtOdFOU/AoWtaltJ2OQ3YpL6PHcgdrZdkmhNwRIpo/uWYeNEeKBYok1dB5o2e0z75aVIX5l2qWDeZj7ULKk1d58ohQffVTQo96D3Tufcj8RQUfi3kS0rpuPONmrUgp2mC95IqRHLV5vzzLb6LIHJsJ0g9IsFknqUWr4f0cT5NEU4CcaGQfFV1LqdSPFUcbGeO3bFhB+5Rg6f/ni8M/yEiZ+i4XCKcWtAjk8jd41u6xMvEf2Gtl0rS3wmcvkz5LIGY5D+TUjmK5OdfNT0oYMNJ+fZFMCJv5iw==
  • Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=suse.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>
  • Delivery-date: Fri, 24 Sep 2021 10:48:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24.09.2021 12:33, Wei Chen wrote:
>> From: Jan Beulich <jbeulich@xxxxxxxx>
>> Sent: 2021年9月24日 16:56
>>
>> On 23.09.2021 14:02, 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 4095
>>
>> How was this upper bound established? Seeing 4095 is the limit of the
>> number of CPUs, do we really expect a CPU per node on such huge
>> systems? And did you check that whichever involved data types and
>> structures are actually suitable? I'm thinking e.g. of things like ...
>>
>>> --- a/xen/include/asm-x86/numa.h
>>> +++ b/xen/include/asm-x86/numa.h
>>> @@ -3,8 +3,6 @@
>>>
>>>  #include <xen/cpumask.h>
>>>
>>> -#define NODES_SHIFT 6
>>> -
>>>  typedef u8 nodeid_t;
>>
>> ... this.
>>
> 
> you're right, we use u8 as nodeid_t. 4095 for node number in this option
> is not reasonable. Maybe a 255 upper bound is good?

I think it is, yes, but you will want to properly check.

Jan




 


Rackspace

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