DISABLE THREAD_TLS

Ming-Ching Tiew mctiew at yahoo.com
Wed Jun 3 04:15:59 CEST 2009




--- On Tue, 6/2/09, Ming-Ching Tiew <mctiew at yahoo.com> wrote:

> 
> I am trying to compile freeradius on uclibc, it complains
> of undefined symbol
>  __tls_get_addr. So I went to modify
> src/include/autoconf.h, and commented
> #define HAVE_THREAD_TLS 1, then the compilation was
> successful. My question is 
> what do I missed from disabling THREAD_TLS ? Does it mean
> performance impact ?
> Will it mean freeradius will be slower, consuming more
> memory or what ?
> 

Apparently src/lib/log.c is the only source which uses HAVE_THREAD_TLS,
and from the source I can see that once I disable HAVE_THREAD_TLS, in my 
case, the code will be USE_PTHREAD_FOR_TLS. Sorry this sounds 
like something for the developer folks but it remains as a 
user question:- 

What is the performance impact of disabling THREAD_TLS but
USE_PTHREAD_FOR_TLS instead ?

Thank you for your attention.
   


      



More information about the Freeradius-Users mailing list