Re: DISABLE THREAD_TLS
--- On Tue, 6/2/09, Ming-Ching Tiew <mctiew@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.
Ming-Ching Tiew wrote:
What is the performance impact of disabling THREAD_TLS but USE_PTHREAD_FOR_TLS instead ?
You're likely running on an embedded system (because you're using ulibc rather than glibc). So performance is the least of your worries. If you plan on having the system do EAP, it will spend 90% of its CPU time doing cryptographic calculations. Alan DeKok.
participants (2)
-
Alan DeKok -
Ming-Ching Tiew