Re: Intel P6 vs P7 system call performance

Ulrich Drepper
2002-12-17T18:25:17Z

Linus Torvalds wrote:

> Thus glibc startup should be able to just do
>
> ptr = default_int80_syscall;
> if (AT_SYSINFO entry found)
> ptr = value(AT_SYSINFO)
>
> and then you can just do a
>
> call *ptr

This won't work as I just wrote but something similar I can make work.
I think the use of the TCB is the best thing to do. Replicating the
info in all thread new thread's TCBs doesn't cost much and with NPTL
it's even lower cost since we reuse old TCBs.

--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------