Re: /proc/config reducing kernel image size

From: DervishD (lkml_at_dervishd.net)
Date: 09/14/04

  • Next message: Deepak Saxena: "[PATCH] Document ARM pci=firmware option"
    Date:	Tue, 14 Sep 2004 19:26:46 +0200
    To: Tom Fredrik Blenning Klaussen <bfg-kernel@blenning.no>
    
    

        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 ;)

        Look at this example. You want to know if you have 'CONFIG_PNP'
    enabled, so you do something like 'grep CONFIG_PMP /proc/config' (the
    typo PNP->PMP is intended here). Of course that commands doesn't
    print anything due to the typo. If you store the disabled options as
    comments and a grep fails, you probably mispelled the config option,
    or you're referring to a config option not present in your old
    kernel, but if you remove them and you mispell the config option
    there is no (automatic) way of knowing if you made a typo or if the
    option is disabled. Any automatic search can, potentially, give you a
    false negative.

        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've also added the configuration option of how you want to compress it.

        Compression is always welcome, I suppose ;) Thanks for the idea.

        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/
    

  • Next message: Deepak Saxena: "[PATCH] Document ARM pci=firmware option"

    Relevant Pages

    • Re: [PATCH] consolidate in kernel configuration
      ... Being able to recover the configuration from a kernel is very ... to have the config available both from the image (using ... -/* This one is for extraction from the kernel binary file image. ... * extraction from a binary kernel image: ...
      (Linux-Kernel)
    • Re: [PATCH 2/6] percpu: Change Kconfig ARCH_SETS_UP_PER_CPU_AREA to HAVE_SETUP_PER_CPU_AREA
      ... approximately eight kilobytes to the kernel image. ... +config THREAD_ORDER ... int "Kernel stack size " ... bool "SMT scheduler support" ...
      (Linux-Kernel)
    • Re: Can the config file be encrypted?
      ... Why not just encrypt the UID and password before storing them in the config ...
      (microsoft.public.dotnet.framework.windowsforms)
    • Re: 2.6.18-rt1
      ... I got the following oops when trying to boot the above. ... Config is attached. ... maybe it's not the right kernel image: ...
      (Linux-Kernel)
    • Re: .config in bzImage ?
      ... > There was some talk of the .config file being included ... includes the .config in the kernel image (gzipped or ... you can get the patch for recent 2.4.x kernels from ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)