Re: Q: Thread local storage, thread IDs

Marc Lehmann (pcg@goof.com)
Tue, 27 Jul 1999 22:55:35 +0200


On Tue, Jul 27, 1999 at 10:59:27AM -0500, cd_smith@ou.edu wrote:
>
> > (on the other hand FS and GS are quite unused in i386-Linux)
>
> You don't know that. You mean that the *kernel* doesn't use them.

No, he means that nobody uses them. Ok, I haven't checked every program
but I bet that no program that uses threads currently or in the future
will use fs and gs on x86.

Using fs for some thread-specific pointer improves threaded perl speed
by over 9% consistently. (However, the next thread model of perl will
no longer rely on fast thread-specific data, which is an even better
solution).

--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/