Re: Intel P6 vs P7 system call performance

From: bart@etpmod.phys.tue.nl
Date: Thu Dec 19 2002 - 08:22:36 EST


On 18 Dec, Linus Torvalds wrote:
>
> On Wed, 18 Dec 2002, Jamie Lokier wrote:
>>
>> That said, you always need the page at 0xfffe0000 mapped anyway, so
>> that sysexit can jump to a fixed address (which is fastest).
>
> Yes. This is important. There _needs_ to be some fixed address at least as
> far as the kernel is concerned (it might move around between reboots or
> something like that, but it needs to be something the kernel knows about
> intimately and doesn't need lots of dynamic lookup).
>
> However, there's another issue, namely process startup cost. I personally
> want it to be as light as at all possible. I hate doing an "strace" on
> user processes and seeing tons and tons of crapola showing up. Just for

So why not map the magic page at 0xffffe000 at some other address as
well?

Static binaries can just directly jump/call into the magic page.

Shared binaries do somekind of mmap("/proc/self/mem") magic to put a
copy of the page at an address that is convenient for them. Shared
binaries have to do a lot of mmap-ing anyway, so the overhead should be
negligible.

-- 
Bart Hartgers - TUE Eindhoven 
http://plasimo.phys.tue.nl/bart/contact.html
-
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 : Mon Dec 23 2002 - 22:00:23 EST