From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755422AbZHLCOR (ORCPT ); Tue, 11 Aug 2009 22:14:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754621AbZHLCOQ (ORCPT ); Tue, 11 Aug 2009 22:14:16 -0400 Received: from mx2.redhat.com ([66.187.237.31]:36661 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754485AbZHLCOQ (ORCPT ); Tue, 11 Aug 2009 22:14:16 -0400 Message-ID: <4A8225DB.8040008@redhat.com> Date: Wed, 12 Aug 2009 10:15:55 +0800 From: Amerigo Wang User-Agent: Thunderbird 2.0.0.22 (X11/20090719) MIME-Version: 1.0 To: "Eric W. Biederman" CC: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, Neil Horman , Andi Kleen , akpm@linux-foundation.org, Ingo Molnar Subject: Re: [RFC Patch 1/2] kexec: show memory info in /proc/iomem References: <20090811104144.5154.77871.sendpatchset@localhost.localdomain> <4A82182C.1080501@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric W. Biederman wrote: > Amerigo Wang writes: > > >>> Nacked-by: "Eric W. Biederman" >>> >>> We can inspect the image we are going to load to get this information. >>> In fact /sbin/kexec already inspects the image we are going to load >>> to get this information. Putting this in the kernel adds kernel >>> complexity for no gain. >>> >>> >> /sbin/kexec is supported to know this, of course. But this is not for >> /sbin/kexec, this is for user (or other programs) to observe the memory >> information, so that he can know the memory he reserved is too much or not. >> > > >> Without this, it is a little hard to use patch 2/2. >> > > So add on option to /sbin/kexec. > This can be another choice. > Furthermore none of this does a good job of predicting how much > memory /sbin/fsck will require to check the filesystem before we > write a crash dump. > No one actually knows this without testing... But if 128M on x86 is still not enough, that is probably a bug of fsck, not our fault.