Modules in Kernel Compiling
Just some quick questions relating to compiling using modules as opposed to compiling within kernel.
Take usb support for example. Compiling usb into modules makes for a smaller kernel.
Should this translate to a faster booting system or do the extra modules for usb balance things out? Would one setup generally use more resources or memory? And do loaded modules listed in lsmod use system resources? (I would think so) More or less than when compiled into the kernel?
Tried it both ways. With usb as modules and with usb compiled into kernel. Kernel was about 6% smaller with usb as modules.
Checked system memory usage after restart using top and both were virtually the same after 1 minute as were load averages. Certain items such as dhcp and ntp had different pids, I guess by loading a little earlier or later with each setup, but all in all most things were very similar.
Am I correct that the general rule, if everything seems to be functioning, is to keep the kernel as small as possible, using modules when possible, or in these days of high memory & fast hard drives, it doesn't matter much anymore?!!
Thanks,
Gary
|