[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: faster pthread_getspecific



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hong Zhang wrote:
>>Start using ELF TLS.  If NPTL is available TLS is, too.  It's the real
>>solution to any problem involving pthread_getspecific etc.
> 
> 
> I think pthread interface is much more popular than ELF TLS. At least
> it is new to me.

Of course it's more widely known because it's standardized.  The TLS
stuff (see http://people.redhat.com/drepper/tls.pdf) is a *much* faster
and more flexible way to handle thread-specific data.  Solaris 9 should
also have the support.


> On one platform I have tested, (I can not name for confidential reason),
> the pthread_getspecific() takes 1% of cpu time running Tomcat/JVM. The
> pthread_getspecific() used on this system takes less than 10 instructions
> in total. The current NPTL pthread_getspecific() is much slower than that.

Can you quantify "much".

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE93qdU2ijCOnn/RHQRAjA5AJ9mXigRgTBz92rZZ7Z6Hv+ad4py9wCeL4y7
4n2VB/UujWyS5TqIK1C8rJA=
=6u0B
-----END PGP SIGNATURE-----





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]