All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] kdump: crashkernel parameter improvement
@ 2017-10-24  5:31 ` dyoung
  0 siblings, 0 replies; 2+ messages in thread
From: dyoung @ 2017-10-24  5:31 UTC (permalink / raw)
  To: kexec, linux-kernel; +Cc: bhe, corbet, yinghai, akpm, dyoung, vgoyal

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


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 0/3] kdump: crashkernel parameter improvement
@ 2017-10-24  5:31 ` dyoung
  0 siblings, 0 replies; 2+ messages in thread
From: dyoung @ 2017-10-24  5:31 UTC (permalink / raw)
  To: kexec, linux-kernel; +Cc: akpm, bhe, vgoyal, yinghai, corbet, dyoung

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-24  5:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-24  5:31 [PATCH 0/3] kdump: crashkernel parameter improvement dyoung
2017-10-24  5:31 ` dyoung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.