From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753246AbZBRJlR (ORCPT ); Wed, 18 Feb 2009 04:41:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751582AbZBRJlB (ORCPT ); Wed, 18 Feb 2009 04:41:01 -0500 Received: from crmm.lgl.lu ([158.64.72.228]:33714 "EHLO lll.lu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbZBRJlA (ORCPT ); Wed, 18 Feb 2009 04:41:00 -0500 Message-ID: <499BD795.6050602@knaff.lu> Date: Wed, 18 Feb 2009 10:40:37 +0100 From: Alain Knaff User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Jan Engelhardt CC: "H. Peter Anvin" , Ingo Molnar , the arch/x86 maintainers , linux-kernel@vger.kernel.org Subject: Re: tip: bzip2/lzma now in tip:x86/setup-lzma References: <200901042146.n04LkHgP005837@hitchhiker.hitchhiker.org.lu.hitchhiker.org.lu> <4961415C.1050708@zytor.com> <49614243.70102@knaff.lu> <496142E4.8040308@zytor.com> <49614491.7020903@knaff.lu> <49614D1F.8020900@zytor.com> <499B267E.2090509@zytor.com> <20090217220825.GA24337@elte.hu> <20090217233708.GA10756@elte.hu> <499B5BCA.8000905@zytor.com> <499BBD62.5090506@knaff.lu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jan Engelhardt wrote: > On Wednesday 2009-02-18 08:48, Alain Knaff wrote: >>> The sanest thing to do is to >>> compress with all the compressors that are configured into the kernel, >>> and then use the smallest image of the ones that can be produced, >>> *including the uncompressed image*. >> ... so, if I understood correctly, that would mean compressing the >> kernel 4 times, and keeping the smallest? >> Given the relatively low speed of compression, I feel that such a >> feature would really annoy people who compile their kernel often (such >> as kernel or module developers). > > I would expect of *module* developers to build their code by means of > an out-of-tree directory, thereby not causing regeneration of the > vmlinux binary or initramfs image. Even if they stayed within the > Linux srctree, they could take a shortcut by explicitly stating the > target (`make that/foo.ko`). modpost is still something that takes > much more time with allmodconfig than compressing the kernel and/or > changed modules over and over. You are right of course for modules inserted by insmod modprobe. But what about people who tune parts that must be compiled-in (VFS layer, etc.), or that investigate a bug in a module that only occurs when it is compiled into the kernel? >> Btw, what *is* the standard work flow of supplying your own built-in >> initramfs? Do such developers usually supply a directory tree, or do >> they already cpio it before supplying it to the kernel? Or do they even >> compress it themselves? > > As for me: a separate staging directory that is totally unrelated to > the Linux tree, and manually running the cpio command. And not > embodying it into the kernel because all bootloaders used so far > support reading an extra initramfs image. Interesting. If that is the case in general, for all developers of embedded systems, then we might be able to do away with compression of the built-in initramfs altogether, as proposed in the very early versions of my patch. Regards, Alain