Re: Performance improvement inquiry

From: Benjamin Herrenschmidt (benh@kernel.crashing.org)
Date: Sat Oct 12 2002 - 18:58:49 EST


>> 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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:44 EST