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

Re: [tor-dev] Fwd: [tor-relays] tcmalloc in FreeBSD



On Mon, Aug 6, 2012 at 2:06 PM, Jordi Espasa Clofent
<jespasac@xxxxxxxxxxxx> wrote:
> On 08/06/2012 07:03 PM, Nick Mathewson wrote:
>>
>> Hm.  Tor itself doesn't have a tcmalloc compilation option, so whatever
>> it's doing is something freebsd added.  To debug this kind of thing,
>> what I usually suggest is to rebuild and look carefully at which
>> compiler and linker options are used in building Tor, and see if they
>> include the appropriate options for tcmalloc.
>
>
> Thanks for your answer Nick, but I don't get you:
> https://lists.torproject.org/pipermail/tor-commits/2008-February/008381.html
>
> It seems tor has a configure option to support tcmalloc since 2008; I guess
> I could be wrong (again) but I understand that if the configure script
> supports the tcmalloc option is because, is some sense, the compilation will
> use as well the mentioned libraries.

Oops; I'd forgotten about that.  That's what I get for answering email
on vacation without checking the code.

I think my debugging advice still stands though:

>>  To debug this kind of thing,
>> what I usually suggest is to rebuild and look carefully at which
>> compiler and linker options are used in building Tor, and see if they
>> include the appropriate options for tcmalloc.

What line does the build process use when linking Tor?

yrs,
-- 
Nick
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev