It allocates 6K for holding the owner/group/permissions information
(1024 * (uid_t + gid_t + mode_t). The default is to allocate it at
mount time but you can say "insmod sockfs alloc_now=1" to allocate
it at module load time if you're worried about fragmentation. It's
all described in the included README. Apart from that 6K data, it's
just a tad over 5K of code:
[~]plutonium# objdump --headers /lib/modules/2.0.29/net/sockfs.o
/lib/modules/2.0.29/net/sockfs.o: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000698 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
1 .rodata 000000dc 00000000 00000000 000006cc 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 00000140 00000000 00000000 000007a8 2**2
CONTENTS, ALLOC, LOAD, RELOC, DATA
3 .bss 00000000 00000000 00000000 000008e8 2**2
ALLOC
4 .comment 00000028 00000000 00000000 000008e8 2**0
CONTENTS, READONLY
5 .note 00000028 00000028 00000028 00000910 2**0
CONTENTS, READONLY
--Malcolm
-- Malcolm Beattie <mbeattie@sable.ox.ac.uk> Unix Systems Programmer Oxford University Computing Services