de-modularising for the win!

Peter Jones pjones at redhat.com
Fri Oct 3 17:06:57 UTC 2008


Kyle McMartin wrote:
> On Fri, Oct 03, 2008 at 11:25:49AM -0400, Peter Jones wrote:
>> Bill Nottingham wrote:
>>> See various and sundry plumber's conf discussions.
>>>
>>> Comments? (The netfilter stuff needs further investigation.)
>> Also, please add these, since they're nearly always loaded (patch is on
>> top of yours):
>>
>> diff --git a/config-generic b/config-generic
>> index 0f43c42..de33831 100644
>> --- a/config-generic
>> +++ b/config-generic
>> @@ -640,14 +640,14 @@ CONFIG_BLK_DEV_DM=y
>>  CONFIG_DM_CRYPT=m
>>  CONFIG_DM_DEBUG=y
>>  # CONFIG_DM_DELAY is not set
>> -CONFIG_DM_MIRROR=m
>> +CONFIG_DM_MIRROR=y
>>  CONFIG_DM_MULTIPATH=m
>>  CONFIG_DM_MULTIPATH_EMC=m
>>  CONFIG_DM_MULTIPATH_HP=m
>>  CONFIG_DM_MULTIPATH_RDAC=m
>> -CONFIG_DM_SNAPSHOT=m
>> +CONFIG_DM_SNAPSHOT=y
>>  CONFIG_DM_UEVENT=y
>> -CONFIG_DM_ZERO=m
>> +CONFIG_DM_ZERO=y
>>
> 
> Not that I object to this or anything of the sort, but it would be nice
> if when people were asking for things to be built-in, to see the size
> difference on vmlinux on a Fedora build with it enabled.

Well, I haven't done a build (on a slow laptop right now) but these 
modules don't have anything funny going wrt compiling differently when 
modular.  So that means:

-rwxr--r-- 1 root root  25K 2008-09-23 21:38 dm-mirror.ko
-rwxr--r-- 1 root root  25K 2008-09-23 21:38 dm-snapshot.ko
-rwxr--r-- 1 root root 7.0K 2008-09-23 21:38 dm-zero.ko

57kB or so max.  But at the same time, these are loaded on nearly every 
Fedora system, and loaded as modules they're taking up at least 64kB .

--
   Peter




More information about the kernel mailing list