Hi Baoquan,
Thanks for your review. Please see the comment inline.
On Tue, May 31, 2022 at 10:46 AM Baoquan He <bhe(a)redhat.com> wrote:
Hi Pingfan,
On 05/23/22 at 04:30pm, Pingfan Liu wrote:
> The arm64 platform supports either 64KB or 4KB page size. In the case of
> 4KB page size, the reserved memory size can be aligned to that on
> x86_64.
Does arm64 support 64KB page size on fedora or RHEL9 currently?
I didn't find the 64KB page size setting in fedora or rhel9, I might
miss something.
>
> Introducing a new formula for 4KB on arm64, which bases on x86_64 plus
> extra 64MB.
>
> Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
> ---
> gitlab:
https://gitlab.com/coxu/fedora-kexec-tools/-/merge_requests/8
> kdump-lib.sh | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/kdump-lib.sh b/kdump-lib.sh
> index b137c89..ef9bd64 100755
> --- a/kdump-lib.sh
> +++ b/kdump-lib.sh
> @@ -853,7 +853,13 @@ kdump_get_arch_recommend_crashkernel()
> if [[ $_arch == "x86_64" ]] || [[ $_arch == "s390x" ]];
then
> _ck_cmdline="1G-4G:192M,4G-64G:256M,64G-:512M"
> elif [[ $_arch == "aarch64" ]]; then
> - _ck_cmdline="2G-:448M"
This formula comes from 64KB page size.
> + # 64K page
> + if [[ $(getconf PAGE_SIZE) -eq 65536 ]]; then
> + _ck_cmdline="2G-:448M"
So here keeps the formula for 64KB page size in case it comes back again.
Thanks,
Pingfan
> + else
> + # based on x86 plus extra = 64M
> + _ck_cmdline="1G-4G:256M,4G-64G:320M,64G-:576M"
> + fi
> elif [[ $_arch == "ppc64le" ]]; then
> if [[ $_dump_mode == "fadump" ]]; then
>
_ck_cmdline="4G-16G:768M,16G-64G:1G,64G-128G:2G,128G-1T:4G,1T-2T:6G,2T-4T:12G,4T-8T:20G,8T-16T:36G,16T-32T:64G,32T-64T:128G,64T-:180G"
> --
> 2.31.1
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure