[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210824180555.GD623@arm.com>
Date: Tue, 24 Aug 2021 19:05:56 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: Pavel Tatashin <pasha.tatashin@...een.com>
Cc: jmorris@...ei.org, sashal@...nel.org, ebiederm@...ssion.com,
kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
corbet@....net, will@...nel.org,
linux-arm-kernel@...ts.infradead.org, maz@...nel.org,
james.morse@....com, vladimir.murzin@....com,
matthias.bgg@...il.com, linux-mm@...ck.org, mark.rutland@....com,
steve.capper@....com, rfontana@...hat.com, tglx@...utronix.de,
selindag@...il.com, tyhicks@...ux.microsoft.com,
kernelfans@...il.com, akpm@...ux-foundation.org,
madvenka@...ux.microsoft.com
Subject: Re: [PATCH v16 00/15] arm64: MMU enabled kexec relocation
Hi Pavel,
This series is still missing reviews from those who understand kexec
better than me.
On Mon, Aug 02, 2021 at 05:53:53PM -0400, Pavel Tatashin wrote:
> Enable MMU during kexec relocation in order to improve reboot performance.
>
> If kexec functionality is used for a fast system update, with a minimal
> downtime, the relocation of kernel + initramfs takes a significant portion
> of reboot.
>
> The reason for slow relocation is because it is done without MMU, and thus
> not benefiting from D-Cache.
The performance improvements are indeed significant on some platforms
(going from 7s to ~40ms), so I think the merging the series is worth it.
Some general questions so I better understand the impact:
- Is the kdump path affected in any way? IIUC that doesn't need any
relocation but we should also make sure we don't create the additional
page table unnecessarily (should keep as much memory intact as
possible). Maybe that's already handled.
- What happens if trans_pgd_create_copy() fails to allocate memory. Does
it fall back to an MMU-off relocation?
And I presume this series does not introduce any changes to the kexec
tools ABI.
Thanks.
--
Catalin
Powered by blists - more mailing lists