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

Re: [PATCH 05/22] x86/srat: vmap the pages for acpi_slit


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 31 Jan 2023 10:11:36 +0100
  • 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=c+Us/zrBz+sIWQ2aX9yjTegxSf9aX72zo+V5LClUWLw=; b=HxBeMtWsB4voVpEdM/7rDxx8ktxcN+fYPNdghx9KbULTdjlo+IBxlojnt7CfdEbHFF/ksfWHY8rEGFE3bh0N5t5wyhf8x+6i1/KlUHNAl2T5UN+9Z7biy7rMKO/emeSHuO1etuu4Y4fcrskLwX2gnusrDNKRNZ6f3w1E8LDq5/muoew46Tw6ibNqwz94Q8D7prmwBIS9SrJHCgnZzBbaPJOxZrR4YsVa7WhFhuJ3dNrRJDLh7zGNQrVnBWtu6UQn1BNtriQPNapDBYByEdxO+oMY2h/e3xcgSEZSrdL06RWE5V3b5v8ORrer6HPDMym80BCNKYoT6Q3Dn5qGwWlABw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E0E6leiZcuKNdXbzF6gJgocxZH35J42hvKn2Ke5oJarPqlRW+Co479bLZuSmI4U0kCaQHi9IdiuSNQ4AG7k7tulG4RSF3fTLiCbtR6GwGDFKf3sbH2UiBaSyZhV8mZfexPoygW+JuoIxezA9u9luNCWFSlPaqPhMDJbNIAmXRc+AJohEARrCXypGmEedJ1npfgj/89OYrNaAteGbdpYIutHxIqHPECqnDs+eJTNe1UWZBTjFX2DA63YXHxl7f6Sdknyv8cabunvFZ43xZYHBk3xlbM+ojYOFqis1u+WsNJnwk1/ZBzB3aWSmv+DrmWQl5PWOJEC6HuH3XKzUIKd6gw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Hongyan Xia <hongyxia@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Julien Grall <jgrall@xxxxxxxxxx>
  • Delivery-date: Tue, 31 Jan 2023 09:11:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30.01.2023 20:27, Julien Grall wrote:
> Hi Jan,
> 
> On 23/12/2022 11:31, Julien Grall wrote:
>> On 20/12/2022 15:30, Jan Beulich wrote:
>>> On 16.12.2022 12:48, Julien Grall wrote:
>>>> From: Hongyan Xia <hongyxia@xxxxxxxxxx>
>>>>
>>>> This avoids the assumption that boot pages are in the direct map.
>>>>
>>>> Signed-off-by: Hongyan Xia <hongyxia@xxxxxxxxxx>
>>>> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
>>>
>>> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
>>>
>>> However, ...
>>>
>>>> --- a/xen/arch/x86/srat.c
>>>> +++ b/xen/arch/x86/srat.c
>>>> @@ -139,7 +139,8 @@ void __init acpi_numa_slit_init(struct 
>>>> acpi_table_slit *slit)
>>>>           return;
>>>>       }
>>>>       mfn = alloc_boot_pages(PFN_UP(slit->header.length), 1);
>>>> -    acpi_slit = mfn_to_virt(mfn_x(mfn));
>>>> +    acpi_slit = vmap_contig_pages(mfn, PFN_UP(slit->header.length));
>>>
>>> ... with the increased use of vmap space the VA range used will need
>>> growing. And that's perhaps better done ahead of time than late.
>>
>> I will have a look to increase the vmap().
> 
> I have started to look at this. The current size of VMAP is 64GB.
> 
> At least in the setup I have I didn't see any particular issue with the 
> existing size of the vmap. Looking through the history, the last time it 
> was bumped by one of your commit (see b0581b9214d2) but it is not clear 
> what was the setup.
> 
> Given I don't have a setup where the VMAP is exhausted it is not clear 
> to me what would be an acceptable bump.
> 
> AFAICT, in PML4 slot 261, we still have 62GB reserved for future. So I 
> was thinking to add an extra 32GB which would bring the VMAP to 96GB. 
> This is just a number that doesn't use all the reserved space but still 
> a power of two.
> 
> Are you fine with that?

Hmm. Leaving aside that 96Gb isn't a power of two, my comment saying
"ahead of time" was under the (wrong, as it now looks) impression that
the goal of your series was to truly do away with the directmap. I was
therefore expecting a much larger bump in size, perhaps moving the
vmap area into space presently occupied by the directmap. IOW for the
time being, with no _significant_ increase of space consumption, we
may well be fine with the 64Gb range.

Jan



 


Rackspace

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