From: "Mahesh J. Salgaonkar" <mahesh@linux.vnet.ibm.com>
To: linuxppc-dev@ozlabs.org
Cc: linuxppc-dev@ozlabs.org, kexec@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v5 1/9] fadump: Add documentation for firmware-assisted dump.
Date: Fri, 25 Nov 2011 19:00:50 +0530 [thread overview]
Message-ID: <4ECF988A.1090203@linux.vnet.ibm.com> (raw)
In-Reply-To: <20111124223410.GB19828@bloggs.ozlabs.ibm.com>
On 11/25/2011 04:04 AM, Paul Mackerras wrote:
> On Tue, Nov 15, 2011 at 08:43:34PM +0530, Mahesh J Salgaonkar wrote:
>> From: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
>>
>> Documentation for firmware-assisted dump. This document is based on the
>> original documentation written for phyp assisted dump by Linas Vepstas
>> and Manish Ahuja, with few changes to reflect the current implementation.
>>
>> Change in v3:
>> - Modified the documentation to reflect introdunction of fadump_registered
>> sysfs file and few minor changes.
>>
>> Change in v2:
>> - Modified the documentation to reflect the change of fadump_region
>> file under debugfs filesystem.
>
> In general we don't want the changes between successive versions in
> the patch description; this information should go below the "---"
> line. The patch description should describe how the patch is now and
> give any information that will be useful to someone looking at the
> resulting git commit later on, but it doesn't need to tell us about
> previous versions of the patch that will never appear in the git
> history.
Sure will do that.
>
>> +-- Once the dump is copied out, the memory that held the dump
>> + is immediately available to the running kernel. A further
>> + reboot isn't required.
>
> I have a general worry about the system making allocations that are
> intended to be node-local while it is running with restricted memory
> (i.e. after the crash and reboot and before the dump has been written
> out and the dump memory freed). Those allocations will probably all
> come from one node and thus won't necessarily be on the desired node.
> So, for very large systems with significant NUMA characteristics, it
> may be desirable (though not required) to reboot after taking the
> dump.
I have been working on trying to integrate FADUMP with the kdump
infrastructure on distros, which will modify the existing kernel initrd
to capture the vmcore and release the memory at the very early stage
before the switch_root.
However, by default FADUMP will also reboot after capturing vmcore
unless user specifies 'noreboot' option through kdump configuration file.
>
> What happens about the NUMA information in the kernel -- all the
> memory sections, etc.? Do they get set up as normal even though the
> second kernel is booting with only a small amount of memory initially?
>
In FADUMP case, the booting of second kernel after crash is equivalent
to normal kernel bootup and it boots with the knowledge of entire system
RAM with NUMA information. The memblock structure does contain map for
entire system RAM. We just reserve the memory above the bootmem at the
very early stage in the second kernel, so that it remains untouched.
Thanks,
-Mahesh.
next prev parent reply other threads:[~2011-11-25 13:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-15 15:13 [RFC PATCH v5 0/9] fadump: Firmware-assisted dump support for Powerpc Mahesh J Salgaonkar
2011-11-15 15:13 ` [RFC PATCH v5 1/9] fadump: Add documentation for firmware-assisted dump Mahesh J Salgaonkar
2011-11-24 22:34 ` Paul Mackerras
2011-11-25 13:30 ` Mahesh J. Salgaonkar [this message]
2011-12-10 5:02 ` Mahesh Jagannath Salgaonkar
2011-11-15 15:13 ` [RFC PATCH v5 2/9] fadump: Reserve the memory for firmware assisted dump Mahesh J Salgaonkar
2011-11-24 23:02 ` Paul Mackerras
2011-11-28 6:21 ` Mahesh J. Salgaonkar
2011-11-15 15:13 ` [RFC PATCH v5 3/9] fadump: Register " Mahesh J Salgaonkar
2011-11-15 15:13 ` [RFC PATCH v5 4/9] fadump: Initialize elfcore header and add PT_LOAD program headers Mahesh J Salgaonkar
2011-11-15 15:14 ` [RFC PATCH v5 5/9] fadump: Convert firmware-assisted cpu state dump data into elf notes Mahesh J Salgaonkar
2011-11-15 15:14 ` [RFC PATCH v5 6/9] fadump: Add PT_NOTE program header for vmcoreinfo Mahesh J Salgaonkar
2011-11-15 15:14 ` [RFC PATCH v5 7/9] fadump: Introduce cleanup routine to invalidate /proc/vmcore Mahesh J Salgaonkar
2011-11-15 15:14 ` [RFC PATCH v5 8/9] fadump: Invalidate registration and release reserved memory for general use Mahesh J Salgaonkar
2011-11-15 15:14 ` [RFC PATCH v5 9/9] fadump: Invalidate the fadump registration during machine shutdown Mahesh J Salgaonkar
2011-11-21 12:03 ` [RFC PATCH v5 0/9] fadump: Firmware-assisted dump support for Powerpc Cong Wang
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=4ECF988A.1090203@linux.vnet.ibm.com \
--to=mahesh@linux.vnet.ibm.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mahesh.j.salgaonkar@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).