From 773b2494518a957477d130dbc5187e2bb69e8eca Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sun, 18 Aug 2019 16:59:38 +0200 Subject: [PATCH 1/2] crashkernel: Change maxcpus=1 to nr_cpus=1 Use nr_cpus=1 instead of maxcpus=1 in the hope to save some memory. --- crashkernel/crashkernel.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crashkernel/crashkernel.service b/crashkernel/crashkernel.service index d5a944d..fc7ec4b 100644 --- a/crashkernel/crashkernel.service +++ b/crashkernel/crashkernel.service @@ -6,7 +6,7 @@ ConditionPathExists=/boot/bzImage.crash StandardOutput=kmsg StandardError=kmsg Type=oneshot -ExecStart=/usr/sbin/kexec -p /boot/bzImage.crash --initrd=/boot/grub/initramfs.igz --command-line="root=LABEL=root ro console=ttyS1,115200n8 console=tty0 irqpoll maxcpus=1 reset_devices panic=5 CRASH" +ExecStart=/usr/sbin/kexec -p /boot/bzImage.crash --initrd=/boot/grub/initramfs.igz --command-line="root=LABEL=root ro console=ttyS1,115200n8 console=tty0 irqpoll nr_cpus=1 reset_devices panic=5 CRASH" ExecStop=/usr/sbin/kexec -p -u RemainAfterExit=yes From 0179e8d54f72182c33528f67e8d0d08d7c7e0375 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 19 Aug 2019 22:25:15 +0200 Subject: [PATCH 2/2] Revert "mxgrub: Change crashkernel size to 512MB" This reverts commit 8b858666767fe53c160d15727bb6c553d2f95dbb. With nr_cpus=1 256M is enough even for kraios. --- mxgrub/mxgrub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxgrub/mxgrub b/mxgrub/mxgrub index 4d354c4..ec0f0be 100755 --- a/mxgrub/mxgrub +++ b/mxgrub/mxgrub @@ -239,7 +239,7 @@ sub scan_mariux { } } -our $KERNEL_PARAMETER="ro crashkernel=512M console=ttyS1,115200n8 console=tty0 init=/bin/systemd audit=0"; +our $KERNEL_PARAMETER="ro crashkernel=256M console=ttyS1,115200n8 console=tty0 init=/bin/systemd audit=0"; sub update_grub_cfg { my $kernellist='';