Re: speed difference between using hard-linked and modular drives?

Keith Owens (kaos@ocs.com.au)
Fri, 09 Nov 2001 16:11:23 +1100


On Fri, 9 Nov 2001 10:59:21 +1100,
Anton Blanchard <anton@samba.org> wrote:
>
>> > Are there any speed difference between hard-linked device drivers and
>> > their modular counterparts?
>
>Its worse on some architectures that need to pass through a trampoline
>when going between kernel and module (eg ppc). Its even worse on ppc64
>at the moment because we have a local TOC per module which needs to be
>saved and restored.

Is that TOC save and restore just for module code or does it apply to
all calls through function pointers?

On IA64, R1 (global data pointer) must be saved and restored on all
calls through function pointers, even if both the caller and callee are
in the kernel. You might know that this is a kernel to kernel call but
gcc does not so it has to assume the worst. This is not a module
problem, it affects all indirect function calls.

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