From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Khalid Aziz <khalid_aziz@hp.com>
Cc: Paul.Clements@steeleye.com, Khalid Aziz <khalid@fc.hp.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.5] Retrieve configuration information from kernel
Date: Tue, 29 Oct 2002 14:30:22 -0500 [thread overview]
Message-ID: <3DBEE1CE.2060200@nortelnetworks.com> (raw)
In-Reply-To: 3DBED111.96A3A1E8@hp.com
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
next prev parent reply other threads:[~2002-10-29 19:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-29 16:24 [PATCH 2.5] Retrieve configuration information from kernel Khalid Aziz
2002-10-29 17:11 ` Paul Clements
2002-10-29 18:18 ` Khalid Aziz
2002-10-29 19:30 ` Chris Friesen [this message]
2002-11-05 17:27 ` Khalid Aziz
2002-10-30 10:42 ` Padraig Brady
2002-11-05 17:23 ` Khalid Aziz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DBEE1CE.2060200@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=Paul.Clements@steeleye.com \
--cc=khalid@fc.hp.com \
--cc=khalid_aziz@hp.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox