: Not sure why the file system behaves the way it does, but on kernel modules. . . : : Once a kernel module is loaded, it is in-memory for the duration - : Unless you forcable remove it of course (a rare thing, mostly done for debugging). : : I seem to recall that there are some modules that refer to external config files : during loading (don't recall which ones - this is a rare, usually optional situation). : : So the only modules that need to be visible are ones that support hotplug devices : that your user might plug in - the rest are either in memory or a waste of space. ;) : : If you are building for a specific machine(s) - you can go even further - just build-in : the modules (drivers) that you need into the kernel - this will make your image smaller : and load faster than running a "kitchen sink" style of distribution kernel.
Yeah, I have no problems with the modules being loaded in memory - I'm used to that with other systems. A little background - I'm running on a small footprint embedded system from an SD card. The filesystem is mounted readonly and, with aufs, a read-write ramdisk is loaded on top of it. Say I wanted to load the ipv6 module. I do a modprobe of it and it loads fine into memory. What I'm seeing, though, is that the .ko file of the module is copied from the readonly root filesystem over to the read-write ramdisk and then it's loaded into memory. There doesn't appear to be any difference between the .ko on the read-write partition and the .ko on the readonly partition so I'm not sure why the former is created and that's the one that I would like to remove if it's not going to cause a problem since now it's taking up twice the amount of memory more or less (half from the module loaded in memory and half from the copy of the .ko on the ramdisk) -- Matthew Harrell Programmer - a red-eyed mumbling Bit Twiddlers, Inc. mammal capable of conversing with [email protected] inanimate objects. ------------------------------------------------------------------------------
