Hi ,
kdump need 2 kernel primary and secondary. Primary will be panicked, then secondary will do capture coredump.
In boot loader/ kernel command line specify crashkernel=256MB or more, ensure secondary kernel is small in size so that it can be boot within this memory, oom should not happen.
Primary config:
CONFIG_SYSFS=y
CONFIG_KEXEC=y
CONFIG_DEBUG_INFO=y
Secondary Config:
CONFIG_PHYSICAL_START=0x100000
CONFIG_RELOCATABLE=y
CONFIG_CRASH_DUMP=y
load secondary kernel using
kexec -p <>
After kernel panic, secondary kernel will be invoked. The secondary kernel should save core from /proc/vmcore and reboot again.
Thanks,
Satya