Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754556Ab0DWAtI (ORCPT ); Thu, 22 Apr 2010 20:49:08 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:58761 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754511Ab0DWAtF (ORCPT ); Thu, 22 Apr 2010 20:49:05 -0400 To: Vivek Goyal Cc: Vitaly Mayatskikh , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Haren Myneni , Neil Horman , Cong Wang , kexec@lists.infradead.org Subject: Re: [PATCH 0/5] Add second memory region for crash kernel References: <1271953392-6324-1-git-send-email-v.mayatskih@gmail.com> <20100422224525.GJ3228@redhat.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: Thu, 22 Apr 2010 17:48:53 -0700 In-Reply-To: <20100422224525.GJ3228@redhat.com> (Vivek Goyal's message of "Thu\, 22 Apr 2010 18\:45\:25 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=in01.mta.xmission.com;;;ip=76.21.114.89;;;frm=ebiederm@xmission.com;;;spf=neutral X-SA-Exim-Connect-IP: 76.21.114.89 X-SA-Exim-Rcpt-To: vgoyal@redhat.com, kexec@lists.infradead.org, amwang@redhat.com, nhorman@tuxdriver.com, hbabu@us.ibm.com, hpa@zytor.com, mingo@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, v.mayatskih@gmail.com X-SA-Exim-Mail-From: ebiederm@xmission.com X-SA-Exim-Scanned: No (on in01.mta.xmission.com); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2519 Lines: 56 Vivek Goyal writes: > On Thu, Apr 22, 2010 at 03:07:11PM -0700, Eric W. Biederman wrote: >> Vitaly Mayatskikh writes: >> > >> > This serie of patches realizes this approach. It requires also changes >> > in kexec utility to make this feature work, but is >> > backward-compatible: old versions of kexec will work with new >> > kernel. I will post patch to kexec-tools upstream separately. >> >> Have you tried loading a 64bit vmlinux directly into a higher address >> range? There may be a bit or two missing but you should be able to >> load a linux kernel above 4GB. I tested the basics of that mechanism >> when I made the 64bit relocatable kernel. > > I guess even if it works, for distributions it will become additional > liability to carry vmlinux (instead of relocatable bzImage). So we shall > have to find a way to make bzImage work. As Peter pointed out we actually have everything thing we need except a bit of documentation and the flag that says this is a 64bit kernel. >From a testing perspective a 64bit vmlinux should work today without changes. Once it is confirmed there is a solution with the 64bit kernel we just need a small patch to boot.txt and a few tweaks to /sbin/kexec to handle a 64bit bzImage. >> I don't buy the argument that there is a direct connection between >> the amount of memory you have and how much memory it takes to dump it. >> Even an indirect connections seems suspicious. > > Memory requirement by user space might be of interest though like dump > filtering tools. I vaguely remember that it used to first traverse all > the memory pages, create some internal data structures and then start > dumping. > > So memory required by filtering tool might be directly proportional to > amount of memory present in the system. Assuming your dump filtering tool creates a bitmap of pages to be dumped you get a ration of 32K to 1. Or 3MB for 100GB and 32MB for 1TB. Which is noticeable in the worst case but definitely not enough to push us past 2GB. > Vitaly, have you really run into cases where 2G upper limit is a concern. > What is the configuration you have, how much memory it has and how much > memory are you planning to reserve for kdump kernel? A good question. Eric -- 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/