Skip to content

kdump: crashkernel parameter improvement

[email protected] kexec lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kdump: extend crashkernel=range:size to dynamically increase reservation sizeDocumentation/admin-guide/kernel-parameters.txt Documentation/kdump/kdump.txt kernel/crash_core.c+41 -112 replies
2/3X86/kdump: crashkernel=X try to reserve below 896M first then below 4G and MAXMEMarch/x86/kernel/setup.c+16 -03 replies
3/3kdump: round up the total memory size to 128M for crashkernel reservationkernel/crash_core.c+13 -43 replies
3/3kdump: round up the total memory size to 128M for crashkernel reservationkernel/crash_core.c+14 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] kdump: crashkernel parameter improvement

Hi,

Here is a try to improve current crashkernel kernel parameter

Patch 1/3 adds an extra functionality so that one can use like crashkernel=2G-:128M^12 to reserve 128M for 2G+ machine but also scale the size based on system memory, that means 128M + (total_mem - 128M) >> 12

Patch 2/3 is a resending of previous post to let crashkernel=xM to reserve first from below 896M, then <4G, then <MAXMEM

Patch 3/3 round up total system memory size because according to test the mem size from memblock api is usually smaller than actual size, this passed my tests on x86/arm/powerpc, it should work for most cases, but there might be exceptions, appreciated for any better idea.

Thanks
Dave