From: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
To: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>,
kexec@lists.infradead.org
Subject: Re: makedumpfile: get_max_mapnr() from ELF header problem
Date: Wed, 12 Mar 2014 13:15:41 +0900 [thread overview]
Message-ID: <531FDF6D.5080901@jp.fujitsu.com> (raw)
In-Reply-To: <20140228134148.15b60ceb@holzheu>
(2014/02/28 21:41), Michael Holzheu wrote:
> Hello Atsushi,
>
> On s390 we have the following little problem:
>
> We use hypervisor or stand-alone dump tools to create Linux system
> dumps. These tools do not know the kernel parameter line and dump the
> full physical memory.
>
> We use makedumpfile to filter those dumps.
>
> If a Linux system has specified the "mem=" parameter, the dump tools
> still dump the whole phypsical memory.
>
> Unfortunately in "get_max_mapnr()" makedumpfile uses the ELF header to
> get the maxmimum page frame number. Since this is not the correct value
> in our case makedumpfile fails to filter the dump.
>
> We get the following error on s390 with makedumpfile version 1.5.3:
>
> makedumpfile -c -d 31 vmcore dump.kdump
> cyclic buffer size has been changed: 22156083 => 22156032
> Excluding unnecessary pages : [ 21 %] vtop_s390x: Address too big for the number of page table levels.
> readmem: Can't convert a virtual address(8000180104670) to physical address.
> readmem: type_addr: 0, addr:8000180104670, size:32768
> __exclude_unnecessary_pages: Can't read the buffer of struct page.
> Excluding unnecessary pages : [ 23 %] vtop_s390x: Address too big for the number of page table levels. readmem: Can't convert a
> virtual address(8000180104670) to physical address. readmem: type_addr:
> 0, addr:8000180104670, size:327681.5.5 __exclude_unnecessary_pages:
> Can't read the buffer of struct page.
>
> Since version 1.5.4 makedumpfile seems to loop in __exclude_unnecessary_pages().
>
> We thought about several ways to fix this problem but have not found a
> good solution up to now.
>
> Do you have an idea how we could fix that?
>
> Best Regards,
> Michael
>
At least on x86, makedumpfile appears to work well for dumps generated by sadump and virsh dump. In particular, virsh dump --memory-only generates dump in ELF, whose PT_LOAD entries are generated from RAM list managed by qemu, not managed by kernel.
Looking into source code a little, max_mapnr is used only for calculating a size of two bitmaps. I guess there's any s390-specific issue.
--
Thanks.
HATAYAMA, Daisuke
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2014-03-12 4:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 12:41 makedumpfile: get_max_mapnr() from ELF header problem Michael Holzheu
2014-03-03 3:11 ` Atsushi Kumagai
2014-03-03 9:44 ` Michael Holzheu
2014-03-11 6:22 ` Atsushi Kumagai
2014-03-11 11:35 ` Michael Holzheu
2014-03-12 4:15 ` HATAYAMA Daisuke [this message]
2014-03-12 6:01 ` Atsushi Kumagai
2014-03-12 16:18 ` Michael Holzheu
2014-03-14 8:54 ` Atsushi Kumagai
2014-03-14 14:19 ` Michael Holzheu
2014-03-19 7:14 ` Atsushi Kumagai
2014-03-19 18:29 ` Michael Holzheu
2014-03-20 10:23 ` Michael Holzheu
[not found] ` <20140319180903.2c6e2b72@holzheu>
2014-03-25 1:14 ` Atsushi Kumagai
2014-03-25 15:24 ` Michael Holzheu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=531FDF6D.5080901@jp.fujitsu.com \
--to=d.hatayama@jp.fujitsu.com \
--cc=holzheu@linux.vnet.ibm.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox