[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: Mon, 18 Jul 2022 08:21:58 +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=4P3BF+AqsvyB7H/9sjXGoLW1vk2+/1oxAQaHmfCcm+Y=; b=lCF+Nq4wUELmNIlj+I9WtUTu0LMidnzW8zJ587BDevjVMirBU2WWfjcBHmHfgTjnW8CUYO/J4n3eBHpel06+oTM0l67Pv341S2ox32FJpdcB7bLYKxscWPNAq8LPjvECwwwda9spppjw4Hv0HlFKQw/DfrGh3ESiKu95nCCKT9szojwaL4UR8RyrAMLcdIGAL+UYenmf3Z5ujct8KplwSJ91t/INL/1R+JhHSC7zFhvxB6Oxl+TnUpQQVpZgDsaWzaeI9dpwttwXtMeNZu3R9nRQ895jbO0Az70uuqnhMaqoK8INlyVcpDx95rsCZy/r7cm5RVj1SdoGDNcKoJnWwA==
  • 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=4P3BF+AqsvyB7H/9sjXGoLW1vk2+/1oxAQaHmfCcm+Y=; b=I4ffz4RlSQupqPnNR6XiOo8AmNyTQOIB+hiCU6u8Bjyg5+kCIeL9lw1I7XxATAYwXs7tlreKbuLTQR1fQFQFWz1j28fTVqK9pjDieon1X3SMuzJ+peBUgAIIU8OT9SKPVMvftujeLq/Yl75cIS/z21aep0ImMEgjXrat7SsHSLKixBtckeK6FjGXW+ilimC5STVV8dVeOG46qSMwZU3luVlWwOW380zqx9FuBHM1S9ydrwPbFOOJleAPJbmt3DMddGjP32GkomdG7zJAgGEHhWTSH3LJMXIXmcLiAdZE3SOii+fXcW9DbUHhqwwuDQjSnVq/miOiLl29+oawVMjO6g==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Krddpn27Qh+4/K/MabD0yPdiDtH8N9s4HvgwyQn79WM3GgfXGlLdsK+g1BvK9z1LZFwHYEr33iHnAfYugplxfksjS8Nr+QL/FV1iSZt2udLOu+HOhyOKklU2txBKMwFVBYnV/BTGhl8eZYdCTZwGsIYr9dOLm0iqznwA6MZhbapozkwjrg84vqKBbVXeoS/7jvLaeUuA8oZpm4SIGn942KtunpnEbnxNhsUcj/0JeBcBKCVSnV02FPyqsP93WwmCYP7D/BIRZCp7xN6PvPLH+md/cWmxFYsamHY7gAmq1oRvscqcMSrjmNaW2xT2jcreeyM8m/UjGrfF/USG7YdsFw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TILqza8r9L0qGngyApp7aHwIvt8iLodUItZkj1G5DDZBXhK8/MRo+Bxd4EqgvHSIbX/v96nSKWZ+X00snFOZbucepa9XD8BsWptExi2r6AAj1T8OLo5hcuwfoKSZeQntvdjS9q3VBaFuPUUzv0PMgjcyOhHzPJFez4u+pTtpOQZCQz/4+/FHiAFiewxfxhpwCtAgE5LZcgcwX1jNi1AudgQ1MtZM/ClzS8jtpdnnJq+x4BO2TLllyepuMdTMb4YGql12KGTfKIaXl3Fn3OPlIpUQtPSXiaWjMwEnzaSOaK43GWy3Y2VvYI5g8gsVIeakbhZnwFi4nmiHIhZhE/09hQ==
  • 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>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Mon, 18 Jul 2022 08:22:15 +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+Ca160z2AgALXevCAABQigIAABL8AgAYMPgCAAAYhgIAAAsoQ
  • 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月18日 16:10
> To: 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; Julien Grall
> <julien@xxxxxxx>
> Subject: Re: [PATCH v2 9/9] xen: introduce a Kconfig option to configure
> NUMA nodes number
> 
> >>>>> 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.
> 

Thanks, I will use 64 in next version.

Wei Chen

> Jan

 


Rackspace

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