Re: module efficiency

Systemkennung Linux (linux@mailhost.uni-koblenz.de)
Mon, 13 Jan 1997 17:55:23 +0100 (MET)


> Linux Journal ran an article a few months ago saying that excessive use of
> modules can be a small waste of RAM. Something about modules allocating
> memory in 4kb blocks...so a 1kb module wastes 3kb that wouldn't be wasted
> if it was compiled in instead. Except for very low memory systems, this
> is probably insignificant.

Some architectures like MIPS have to use code generation options that make
slighly less efficient code. So there might be a _very_ small difference
in efficiency. Another reason why MIPS modules are less efficient than
compiled in code is that the kernel itself does never generate TLB faults
on MIPS. All in all I'd say the difference is neglegtible though I didn't
benchmark that yet.

Ralf