Re: [PATCH 2.5] Retrieve configuration information from kernel

Chris Friesen (cfriesen@nortelnetworks.com)
Tue, 29 Oct 2002 14:30:22 -0500


Khalid Aziz wrote:
> Paul Clements wrote:
>
>>Have you considered compressing the config info in order to reduce
>>the space wastage in the loaded kernel image? Could easily be 10's of KB
>>(not that that's a lot these days). The info would then be retrieved via
>>"gunzip -c", et al. instead of a simple "cat".
>>
>
> I wanted to start with a simple implementation first. There are a couple
> of things that can be done in future to further improve meory usage: (1)
> Drop "CONFIG_" and "# CONFIG_" from each line and add it back when
> printing from /proc/ikconfig and extract-ikconfig script, (2) Compress
> the resulting configuration. Something to do in near future :)

Do we really need to store the ones that are not actually set to
something? You'll get a bunch of queries when doing a "make oldconfig",
but saying N to all of them should just work...after all its the ones
that are actually *set* that we care about.

Also, if you wanted to get cute, you could make use of the fact that the
config names only use ascii chars from '0' to 'Z' which can be
represented by 6 bits, then pack them together in memory. I don't know
how much difference this would make after zipping though.

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

- 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/