Re: Performance improvement inquiry

Benjamin Herrenschmidt (benh@kernel.crashing.org)
Sun, 13 Oct 2002 01:58:49 +0200


>> First question: Will compiling a kernel with
>> the network module resident (as opposed to a loadable
>> module) make network performance any better? From
>> the reading, it appears that resident modules are only
>> faster in initialization, not runtime. I'm new to
>> this, so please correct me if I'm wrong.
>
>Modules are very very fractionally slower than compiled in code due to
>TLB misses

Depends on which arch... on ppc32 (ahem... no bad joke pls ;),
function calls from modules to kernel or between modules has to
go through some "branch islands" as they don't fit within the
scope of a "short" branch PPC insn. So you also get a small
perf. loss there, but I bet it's barely measurable.

Ben.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/