[Tor-BSD] FreeBSD tor-devel config options

teor teor2345 at gmail.com
Fri Jan 9 18:18:52 EST 2015

On 9 Jan 2015, at 06:27 , Pete Wright <pete at nomadlogic.org> wrote:

> Hey All,
> I was doing some testing with my FreeBSD tor systems while poking around
> for potential optimizations.  I have found that setting the following
> compilation flags for the tor-devel FreeBSD port have lowered CPU load
> on my systems, and from the looks of things this may have lead to an
> increase of utilization of my circuit.

I'll describe the impact of these flags:


Don't call malloc as much, but keep our own free lists for buffers.


Instrument downloads. Probably causes a minor performance decrease.

> enable: MEMPOOLS

Don't call malloc as much, but keep our own memory pools for non-buffer usage.

> enable: THREADS [default]

Threads. Use these.

> enable: TRANSPARENT [default]

Transparent proxy support for clients. Can be disabled for relays. Unlikely to have any performance impact unless enabled in the torrc.

> My guess is that enabling the MEMEPOOLS and BUFFREELISTS options has
> helped on my end.  I attempted to enable BUFFREEEVENTS as well, but that

This option just logs extra stuff about buffer events, slowing tor down.

> generated lots of logging data.  I may attempt to re-enable that once I
> have more data with my current configuration.
> Cheers,
> -pete

Is malloc performance on *BSD worse than on Linux?
(For tor's usage pattern, which allocates lots of buffers temporarily.)


teor2345 at gmail dot com
pgp 0xABFED1AC

teor at blah dot im
OTR C3C57B23 349825DE 929A1DEF C3531C25 A32287ED

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.nycbug.org/pipermail/tor-bsd/attachments/20150110/a018b8c3/attachment.bin>

More information about the Tor-BSD mailing list