From 9abc77e540d0ddf03755f8dcc1c942f0e4ebcdca Mon Sep 17 00:00:00 2001 From: Yuanhe Shu Date: Wed, 22 Mar 2023 10:37:26 +0800 Subject: [PATCH] spec: increase crashkernel for arm64 ANBZ: #4253 For 4G and 8G arm64 machine, crashkernel=192M could not generate vmcore. Increase crashkernel to crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M. Signed-off-by: Yuanhe Shu --- kernel.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index 7f22c72..e9d58ad 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1524,7 +1524,7 @@ fi\ %{expand:%%posttrans %{?1:%{1}-}modules}\ /bin/kernel-install add %{KVERREL}%{?1:+%{1}} /lib/modules/%{KVERREL}%{?1:+%{1}}/vmlinuz || exit $?\ %ifarch aarch64 \ -grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M iommu.passthrough=1 iommu.strict=0"\ +grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0"\ %else \ grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M"\ %endif \ @@ -1542,7 +1542,7 @@ then\ fi\ /bin/kernel-install add %{KVERREL}%{?1:+%{1}} /lib/modules/%{KVERREL}%{?1:+%{1}}/vmlinuz || exit $?\ %ifarch aarch64 \ -grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M iommu.passthrough=1 iommu.strict=0"\ +grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0"\ %else \ grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M"\ %endif \ -- Gitee