Improved INCLUDE_CONFIG_FILE

Eric Anderson anderson at freebsd.org
Mon Mar 26 14:44:03 UTC 2007


On 03/26/07 08:35, Alex Kozlov wrote:
> On Mon, Mar 26, 2007 at 08:12:33AM -0500, Eric Anderson wrote:
>>> Overall, having the config file loaded strikes me as a waste of RAM.
>>>
>> As Larry mentioned, the kernel config file (say GENERIC) is about 10k 
>> uncompressed.  If it's bzipped or gzipped, as it is (including comments, 
>> etc) it ends up ~4k.  My kernel, is about 7500k (not far from GENERIC), 
>> so the additional .05% is probably not noticeable by anyone.
> gzip is a bad idea. If You compress config, 
> strings kernel | grep ^___ | sed -e 's/^___//'
> would no longer work.


Good point.  So, leaving it uncompressed makes it 0.1% of the kernel. 
:)  Still ok by me.


Eric


More information about the freebsd-current mailing list