Re: [PATCH 1/2] kexec: Add quick kexec support for kernel

From: Eric W. Biederman
Date: Fri Aug 14 2020 - 11:20:37 EST


Sang Yan <sangyan@xxxxxxxxxx> writes:

> In normal kexec, relocating kernel may cost 5 ~ 10 seconds, to
> copy all segments from vmalloced memory to kernel boot memory,
> because of disabled mmu.

I haven't seen kexec that slow since I tested on my 16Mhz 386.

That machine has an excuse it really is slow. Anything else
that takes seconds is almost certainly slow because someone
has misconfigured things to not cache the data copied by kexec.

I humbly suggest that you fix the arm64 code so that the data gets
cached.

Eric