Re: /proc/config reducing kernel image size

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: 09/15/04

  • Next message: Ingo Molnar: "Re: [patch] sched: fix scheduling latencies for !PREEMPT kernels"
    Date:	Wed, 15 Sep 2004 12:11:10 +0200
    To: Tom Fredrik Blenning Klaussen <bfg-kernel@blenning.no>, linux-kernel@vger.kernel.org
    
    

    On Tue, Sep 14, 2004 at 08:01:24PM +0200, DervishD wrote:
    > Hi Tom :)
    >
    > * Tom Fredrik Blenning Klaussen <bfg-kernel@blenning.no> dixit:
    > > > > There is no point in storing all the comments and unused options in the
    > > > > kernel image. This typically reduces the config size to about 1/5th
    > > > > before compressing, and to about 1/4th after compressing.
    > > > I'm with you in that there is no point in storing the comments,
    > > > but I disagree about the unused options. Storing the unused options
    > > > as comments is more useful than it seems ;)
    > > This is why I added a config option.
    >
    > But removing the comments is a good idea. Even reformatting the
    > contents, or something like that.
    >
    > > > I'm not really sure about it, but I think that the unset options
    > > > are left as comments for the sake of automation. The space saving
    > > > doesn't (IMHO) worth the pain.
    > > I'm not sure either, but I don't know of any programs that uses this.
    >
    > Neither do I.

    well, the kernel config uses it, to decide if
    some option is known, or has to be defaulted/asked

    try to remove one of those 'comments' from a config
    and run 'make oldconfig', you'll get asked for this
    specific option ...

    best,
    Herbert

    > > Putting this config file inside the same source tree as it was compiled
    > > with, and then just starting and stopping menuconfig will restore it to
    > > it's original form.
    >
    > That's true.
    >
    > Raúl Núñez de Arenas Coronado
    >
    > --
    > Linux Registered User 88736
    > http://www.pleyades.net & http://raul.pleyades.net/
    > -
    > 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/
    -
    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/


  • Next message: Ingo Molnar: "Re: [patch] sched: fix scheduling latencies for !PREEMPT kernels"

    Relevant Pages

    • Re: 2.5/2.6 NVidia (was Re: 2.4 vs 2.6 version of ioport.h)
      ... NVIDIA: AGP 4X successfully initialized ... IIRC, but possibly not the case in the 2.6 .config yet, is that any ... Copyright 2003 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] make miniconfig (take 2)
      ... On Wednesday 23 November 2005 07:21, Pavel Machek wrote: ... removing each line makes a difference. ... Could you send me the .config you tried to shrink down? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2/2] ide: remove obsolete CONFIG_BLK_DEV_ADMA - cleanup arch
      ... Cleans up default config for various archs, removing ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12 Performance problems
      ... > The kernel is the standard kernel.org dowload ... > config with SMP turned off and the intel ethernet ... > card drivers as modules without any other ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12 Performance problems
      ... > The kernel is the standard kernel.org dowload ... > config with SMP turned off and the intel ethernet ... > card drivers as modules without any other ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)