From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752516AbZH0DRl (ORCPT ); Wed, 26 Aug 2009 23:17:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751253AbZH0DRj (ORCPT ); Wed, 26 Aug 2009 23:17:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13893 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752045AbZH0DRg (ORCPT ); Wed, 26 Aug 2009 23:17:36 -0400 Date: Wed, 26 Aug 2009 23:16:53 -0400 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: Anton Vorontsov , tony.luck@intel.com, linux-ia64@vger.kernel.org, Neil Horman , "Eric W. Biederman" , Andi Kleen , Ingo Molnar , Michael Ellerman , "M. Mohan Kumar" , akpm@linux-foundation.org, bernhard.walle@gmx.de, Fenghua Yu , kamezawa.hiroyu@jp.fujitsu.com, Amerigo Wang Message-Id: <20090827031920.4534.9468.sendpatchset@localhost.localdomain> In-Reply-To: <20090827031800.4534.94868.sendpatchset@localhost.localdomain> References: <20090827031800.4534.94868.sendpatchset@localhost.localdomain> Subject: [Patch 7/8] doc: update the kdump document Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the document for kdump. Signed-off-by: WANG Cong --- Index: linux-2.6/Documentation/kdump/kdump.txt =================================================================== --- linux-2.6.orig/Documentation/kdump/kdump.txt +++ linux-2.6/Documentation/kdump/kdump.txt @@ -147,6 +147,15 @@ System kernel config options analysis tools require a vmlinux with debug symbols in order to read and analyze a dump file. +4) Enable "automatically reserve memory for kexec kernel" in + "Processor type and features." + + CONFIG_KEXEC_AUTO_RESERVE=y + + This will let you to use "crashkernel=auto", instead of specifying + numbers for "crashkernel=". Note, you need to have enough memory. + The threshold and reserved memory size are arch-dependent. + Dump-capture kernel config options (Arch Independent) ----------------------------------------------------- @@ -266,6 +275,26 @@ This would mean: 2) if the RAM size is between 512M and 2G (exclusive), then reserve 64M 3) if the RAM size is larger than 2G, then reserve 128M +Or you can use: + + crashkernel=auto + +if you have enough memory. The threshold is 4G on ia64 and x86, 2G on powerpc, +below which this won't work. + +The automatically reserved memory size would be 128M on x86_32, 128M or 256M +on ppc, 1/32 of your physical memory size on x86_64 and ppc64 (but it will not +grow if you have more than 128G memory). IA64 has its own policy, shown below: + + Memory size Reserved memory + =========== =============== + [4G, 12G) 256M + [12G, 128G) 512M + [128G, 256G) 768M + [256G, 378G) 1024M + [378G, 512G) 1536M + [512G, 768G) 2048M + [768G, ) 3072M Boot into System Kernel