[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: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Thu, 14 Jul 2022 10:14:03 +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=Ts86O84BYfVQcArgHkycbUW2jS5wZqD15tgO5hh3g3U=; b=l1mfZ0q7A9ZhWze/F3vs3xxJlCKaLNS2URMigzJopeEqHkFMRfts8JK9FXvHALpp0kfGYD861SRjNrK6dc3bq6fhb+tAnEEE9kzTYPsFEt8+L80pltzGdB2QHvBgq1GEJW8eLqLECiaKwXQJ3uugz2txFF22sAnxe6yltGWpSFJKsG6EVelnGjhGyX3DHLNZAzyRSxo10TjihB8xUzpD3RW465YRPnalS3rghL7uzJxsdikPu44y4BCXbc3ZPOKa0vZkMQi13THYbO+ZmX6ktlUhibFPw3lCyPm4Q5vlRi6zp5m6CvfRwY332ID/UadRk+LisxAgO9ILyR5SiAT7ew==
  • 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=Ts86O84BYfVQcArgHkycbUW2jS5wZqD15tgO5hh3g3U=; b=dSNtiCQTP44qxeIJstBsswW+F95CG8raRv9V5gmjnYE22lAB3Ubm/VkscZb9UlsvL2y8KwmekzsA3M9thr49G8erEs3rpt7ep4TRhy7sjJB7ukyBuTKbl0FkE7nifI7GAAuYNSU/sto8X/aAf1/ZAkwjKR67dpv8geQX/QVelkrKcwHhPm5/vD6rA/moklUVqorS03qNvBZJjdNaD3ZZsGyGoXuNX/2Q+eey+tW80jJvaOai6YDuczNsdepARqb186zuoePFB4YxNiVmTC1weBLdUQmbZZ1eDX5fNtTJWCpUtG1bwZ4r7j5FAT9zJagtprkP3ueLnCyKS2H3o40/NQ==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=YWQphDKYG7AhVVMYL+Lc2lgcO+bBRvFDLKdfv6+y8DZWB2iZi57GUHzCyboD3PqVqtSSA4MbUIwNfn0tVv60JNGtC6AqO3GK+oSXAHW2n8/y4eP13R7B6xDDHCN7yBgvIWyK8U0AoAZ3RPKpbtug16ktVZID2Z8cAicIS69GaNPG6172QSX23DkZnrssJgMexHaYnOqNNKn7lT5VJlQgStKJal/Cg6w6o7OqEa5ZH+/aMZ1c9UW8lakU4iEZqhDirKTi0mY0abHqHUEzfEBmjuEQ541+SYxZ+Ucw8zEEhYqCRNnBz/g/5WZaexFxDkL0DaIqJ9eYJZ9jqFBjMMu55Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZwIJONM5qEXx8o0geu9u1xjcAlG674TIGbBbwH/czgbYmBJ6OIDZyfGooRYwtnOsOZzDgGE3tKO/S9wpRf+3gJ3a7GKRotSrygxmR4f6sIy+VHLOsFvCZ5wEiVbyu3n9SoqymNetZCmqq0GCw2NYlYQQOX4E2nfO8NGTAZf00gl08E+gZMBg5JE9ZHZ1cELMOFRcXB0Yx/Q9JWQ3m3s1+8C3a995tbkpSe3Ukkku40Wf7ydA84ihFSXxzvAsZwCRjDfegLp+D+uf5ZBuMaSuSLISUnCt434W3iCEwz1Z3+YARUcxQAhd1LP1cJEHmvL+UpbSLRQxkBo9Unk9MCeV+A==
  • 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>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 14 Jul 2022 10:14:16 +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+Ca160z2AgALXevA=
  • Thread-topic: [PATCH v2 9/9] xen: introduce a Kconfig option to configure NUMA nodes number

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.

> Why does the range end at a not-power-of-2 value? (I was actually
> going to suggest to have a shift value specified here, until
> spotting that NODES_SHIFT isn't used anywhere else, and hence
> you're rightfully deleting it.)
> 

I think we have discussed about the 255 in v1. Because Xen is using
u8 as nodeid_t, so 255 may be a upper bound.

And if use a shift value, from a user perspective, I don't like it.
It needs to be converted, not intuitive enough. It also limits my
input range, even though my numerical values are reasonable. Yes,
if a machine has 15 node, we can ask them to input 16, but why not
let the users decide? instead of being forced to enter 16 by the program?

> > +   help
> > +     Controls the build-time size of various arrays and bitmaps
> > +     associated with multiple-nodes management. It is the upper bound
> of
> > +     the number of NUMA nodes that the scheduler, memory allocation and
> > +          other NUMA-aware components can handle.
> 
> Nit: indentation.
> 

Ok.

Cheers,
Wei Chen

> Jan

 


Rackspace

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