[PATCH] ppc64: Reduce number of ELF LOAD segments
Simon Horman
horms at verge.net.au
Tue Jan 24 05:29:38 PST 2017
On Thu, Jan 19, 2017 at 06:37:09PM +0100, Petr Tesarik wrote:
> The number of program header table entries (e_phnum) is an Elf64_Half,
> which is a 16-bit entity, i.e. the limit is 65534 entries (one entry is
> reserved for NOTE). This is a hard limit, defined by the ELF standard.
> It is possible that more LMBs (Logical Memory Blocks) are needed to
> represent all RAM on some machines, and this field overflows, causing
> an incomplete /proc/vmcore file.
>
> This has actually happened on a machine with 31TB of RAM and an LMB size
> of 256MB.
>
> However, since there is usually no memory hole between adjacent LMBs, the
> map can be "compressed", combining multiple adjacent into a single LOAD
> segment.
>
> Signed-off-by: Petr Tesarik <ptesarik at suse.com>
Thanks, applied.
More information about the kexec
mailing list