Default 192MB crashkernel reservation is never enough (kdump fails on 20.04)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdump-tools (Ubuntu) |
Confirmed
|
Medium
|
Trent Lloyd |
Bug Description
When linux-crashdump (5.4.0.58.61) is enabled on Ubuntu 20.04 LTS, everything appears to be in good working order, according to "systemctl status kdump-tools" and "kdump-config status". However, upon an actual crash, the system hangs, and no crash files are produced. I've investigated and have learned that the capture kernel does indeed start, but it is unable to unpack the rootfs/initrd, and thus fails and hangs.
[ 1.070469] Trying to unpack rootfs image as initramfs...
[ 1.333182] swapper/0 invoked oom-killer: gfp_mask=
[ 1.335074] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-26-generic #30-Ubuntu
[ 1.336396] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-
[ 1.336396] Call Trace:
[ 1.336396] dump_stack+
[ 1.336396] dump_header+
[ 1.336396] out_of_
[ 1.336396] out_of_
...
[ 1.413202] ---[ end Kernel panic - not syncing: System is deadlocked on memory ]---
On this system with 8G of memory, the crash memory as specified on the kernel command line is "crashkernel=
Not sure how the 192M value is chosen, but it does not work. I think this used value used to work for 16.04 and maybe 18.04 (I didn't try), but is no longer useful for 20.04.
affects: | kexec-tools (Ubuntu) → kdump-tools (Ubuntu) |
hello, may I ask how did you capture the log? My kdump also stuck but unfortunately does not print anything. the system looks dead though. the vm got a memory size of 4GiB