From b998b9019740efcfb8c858fdcfb8f77ac2ad99d5 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Mon, 1 Jul 2019 19:48:13 +0800 Subject: [PATCH] kdump.sysconfig/x86_64: Disable HEST by default Some firmware will provide a ACPI HEST table with massive amount of entries, and the way how kernel handles these entries will consume a lot of memory which will lead to OOM issue in kdump kernel. During testing on certain machine, disable HEST saved ~60M of memory. Kdump is only for emergency use in case of a kernel panic, so temporarily disable hardware error report & recovery related feature is acceptable in general. So disable HEST support in kdump kernel to save memory. Currently such issue is only observed on x86_64, so limit this change to x86_64 only. Signed-off-by: Kairui Song Acked-by: Dave Young --- kdump.sysconfig.x86_64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdump.sysconfig.x86_64 b/kdump.sysconfig.x86_64 index 4a5ec1c..17ae5e6 100644 --- a/kdump.sysconfig.x86_64 +++ b/kdump.sysconfig.x86_64 @@ -21,7 +21,7 @@ KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet" # This variable lets us append arguments to the current kdump commandline # after processed by KDUMP_COMMANDLINE_REMOVE -KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr" +KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable" # Any additional kexec arguments required. In most situations, this should # be left empty