[tor-dev] Have the Tor daemon use more cores

David Goulet dgoulet at ev0ke.net
Tue Dec 1 14:35:08 UTC 2015


On 01 Dec (09:19:45), Jeremy wrote:
> I've been working on the volunteer project described here
> https://www.torproject.org/getinvolved/volunteer.html.en#useMoreCores but
> can't spend much more time on it.
> 
> Right now, I have refactored circuit_receive_relay_cell() in relay.c (which
> calls relay_crypt() and eventually the AES crypt routines) to use the
> workqueue.c infrastructure similar to cpuworker.c.
> 
> When the refactored code runs in single threaded mode, all seems good.  Once
> I activate the thread pool and start sending it work with
> threadpool_queue_work(), it Bootstraps 100% okay and runs for several
> minutes before crashing on cells it doesn't handle properly.
> 
> I'm happy to share my code with anyone interested.

Hi Jeremy!

This is great! Thanks for this. You should definitely post your code (link to
branch or .diff) to ticket #7572 [1] so someone at some point can take a look
at it and help you out.

Thanks!
David

[1] https://trac.torproject.org/projects/tor/ticket/7572

> 
> Thanks.
> _______________________________________________
> tor-dev mailing list
> tor-dev at lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: Digital signature
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20151201/c06fe246/attachment.sig>


More information about the tor-dev mailing list