Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758456AbXIYSZv (ORCPT ); Tue, 25 Sep 2007 14:25:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756111AbXIYSXR (ORCPT ); Tue, 25 Sep 2007 14:23:17 -0400 Received: from mx1.suse.de ([195.135.220.2]:43132 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509AbXIYSXB (ORCPT ); Tue, 25 Sep 2007 14:23:01 -0400 Message-Id: <20070925182259.856342893@strauss.suse.de> References: <20070925182257.900701776@strauss.suse.de> User-Agent: quilt/0.46-58 Date: Tue, 25 Sep 2007 20:23:04 +0200 From: Bernhard Walle To: kexec@lists.infradead.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: [patch 7/7] Add documentation for extended crashkernel syntax Content-Disposition: inline; filename=crashkernel-documentation Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2235 Lines: 68 This adds the documentation for the extended crashkernel syntax into Documentation/kdump/kdump.txt. Signed-off-by: Bernhard Walle --- Documentation/kdump/kdump.txt | 26 ++++++++++++++++++++++++++ Documentation/kernel-parameters.txt | 7 +++++++ 2 files changed, 33 insertions(+) --- a/Documentation/kdump/kdump.txt +++ b/Documentation/kdump/kdump.txt @@ -231,6 +231,32 @@ Dump-capture kernel config options (Arch any space below the alignment point will be wasted. +Extended crashkernel syntax +=========================== + +While the "crashkernel=size[@offset]" syntax is sufficient for most +configurations, sometimes it's handy to have the reserved memory dependent +on the value of System RAM -- that's mostly for distributors that pre-setup +the kernel command line to avoid a unbootable system after some memory has +been removed from the machine. + +The syntax is: + + crashkernel=:[,:,...][@offset] + range=start-[end] + +For example: + + crashkernel=512M-2G:64M,2G-:128M + +This would mean: + + 1) if the RAM is smaller than 512M, then don't reserve anything + (this is the "rescue" case) + 2) if the RAM size is between 512M and 2G, then reserve 64M + 3) if the RAM size is larger than 2G, then reserve 128M + + Boot into System Kernel ======================= --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -495,6 +495,13 @@ and is between 256 and 4096 characters. [KNL] Reserve a chunk of physical memory to hold a kernel to switch to with kexec on panic. + crashkernel=range1:size1[,range2:size2,...][@offset] + [KNL] Same as above, but depends on the memory + in the running system. The syntax of range is + start-[end] where start and end are both + a memory unit (amount[KMG]). See also + Documentation/kdump/kdump.txt for a example. + cs4232= [HW,OSS] Format: ,,,,, -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/