Return-path: Received: from mx1.redhat.com ([66.187.233.31]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1Jto9f-0002o3-5m for kexec@lists.infradead.org; Wed, 07 May 2008 18:14:15 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m47IEEcM010045 for ; Wed, 7 May 2008 14:14:14 -0400 Date: Wed, 7 May 2008 14:14:14 -0400 From: Neil Horman Subject: Re: Reducing the size of kexec util Message-ID: <20080507181414.GA29032@hmsendeavour.rdu.redhat.com> References: <20080507171130.GB21888@nlxdcldnl2.cl.intel.com> <20080507172836.GC28246@hmsendeavour.rdu.redhat.com> <20080507175829.GC21888@nlxdcldnl2.cl.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20080507175829.GC21888@nlxdcldnl2.cl.intel.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Neil Horman , kexec@lists.infradead.org On Wed, May 07, 2008 at 10:58:29AM -0700, Lombard, David N wrote: > On Wed, May 07, 2008 at 01:28:36PM -0400, Neil Horman wrote: > > On Wed, May 07, 2008 at 10:11:30AM -0700, Lombard, David N wrote: > > > The current (20080324) kexec binary on x86 is 135KiB. While not a > > > problem on a normal distro or runtime environment, it's a chubster > > > in an embedded role. > > > > > > Has any thought been given to reducing its 'on-disk' footprint? > > > The rather obvious, non-default build-time options to only support > > > specific kernel types and capabilities, jumps to mind. > > > > > > Beyond build-time options, a Busybox applet would further minimize > > > size, but maintenance would be painful... > > > > > Busybox is precisely what I use to implement kdump in RHEL at the moment. Its > > still a bit bloated, since it is meant for enterprise servers, but it makes it > > very easy to customize very small initramfs files for specific purposes. > > Hmmm... Don't see a kexec or kdump in busybox-1.10.1. Is this in git? > > What did you do to reduce binary size? I don't really care about process > size, as I'm not working with memory-constrained systems. > You misunderstand me. I didn't add a kexec applet to busybox, I used busybox to outfit the initrd I build for use by kdump (it saves lots of space over having to go through the normal initscripts). Although, now that Iread it again, that doesn't help you too much. Sorry. If your goal is to simply reduce the size of the kexec binary, I think an old fashioned audit is in order. Theres plenty of space to be saved too, I think. In particular there are lots of error checks that are re-created that could be made common. Neil > -- > David N. Lombard, Intel, Irvine, CA > I do not speak for Intel Corporation; all comments are strictly my own. -- /*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *nhorman@redhat.com *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec