Re: Intel P6 vs P7 system call performance

From: H. Peter Anvin (hpa@transmeta.com)
Date: Tue Dec 17 2002 - 15:10:38 EST


Matti Aarnio wrote:
> (cutting down To:/Cc:)
>
> On Tue, Dec 17, 2002 at 11:43:57AM -0800, H. Peter Anvin wrote:
>
>>Linus Torvalds wrote:
>>
>>>The thing is, gettimeofday() isn't _that_ special. It's just not worth a
>>>vsyscall of it's own, I feel. Where do you stop? Do we do getpid() too?
>>>Just because we can?
>>
>>getpid() could be implemented in userspace, but not via vsyscalls
>>(instead it could be passed in the ELF data area at process start.)
>
>
> After fork() or clone() ?
> If we had only spawn(), and some separate way to start threads...
>

fork() and clone() would have to return the self-pid as an auxilliary
return value. This, of course, is getting rather fuggly.

Anything that cares caches getpid() anyway.

        -hpa

-
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:17 EST