> Less file system overhead on the flash side and no memory used to manage
> the structures needed to insmod / rmmod.

Exactly.  Maybe also a tighter memory layout since each module doesn't
have to be in its own set of ELF sections, IIUC.

Also, the linkage would be (presumably) static rather than dynamic.
I don't think gcc will take much advantage of it, but it could otherwise
also enable further code optimizations.

> Regardless, I would guess that the overhead is quite minimal.

Could be.  But my OpenWRT router has 48 modules, half of which claim to
use 2KB or less.  The total of the sizes reported by lsmod is
968928 bytes, whereas the corresponding total of the sizes of the
module files in /lib/modules is 1970768.

Those numbers don't guarantee anything (I don't know what the lsmod
numbers mean, really), but they seem to indicate that there's at least
the potential for a significant gain.


        Stefan

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to