[tor-bugs] #9005 [Tor]: "Your computer is too slow" -> improving multithreading of "circuit creation requests"?

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jun 1 15:29:42 UTC 2013


#9005: "Your computer is too slow" -> improving multithreading of "circuit
creation requests"?
-----------------------------------------------+----------------------------
 Reporter:  elgo                               |          Owner:               
     Type:  enhancement                        |         Status:  new          
 Priority:  normal                             |      Milestone:               
Component:  Tor                                |        Version:  Tor: 0.2.3.25
 Keywords:  thread slow cpu circruit creation  |         Parent:               
   Points:                                     |   Actualpoints:               
-----------------------------------------------+----------------------------

Comment(by elgo):

 Replying to [comment:1 nickm]:
 > Circuit creations are already handled in parallel.  Tor 0.2.4.x
 introduces a faster algorithm for circuit creation crypto, and an adaptive
 queue that aims to ensure a maximum queue size in time rather than in
 lenth.

 Ok, but then if the parallelism is ok, how can we explain this "top"
 extract (4 cores):

 PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
 2277 debian-t  20   0  535m 353m  27m R  99,7 17,7   6117:27 tor
 2447 debian-t  20   0  535m 353m  27m S  13,6 17,7 429:43.70 tor
 2448 debian-t  20   0  535m 353m  27m S   8,0 17,7 217:40.87 tor
 2450 debian-t  20   0  535m 353m  27m S   4,3 17,7 127:57.62 tor
 2449 debian-t  20   0  535m 353m  27m S   3,0 17,7  85:47.48 tor

 PID 2277 is the main tor process, other 4 are tor threads (which is fine
 as this CPU has 4 cores). But obviously tor is struggling in 2277, which I
 suspect is the only one dealing with "circuit creation requests". 2277 is
 caped at 100% CPU (of course) and execution time shows a really uneven
 load balancing between all these gentlemen (at best, PID 2447 has only 7%
 of PID 2277 execution time).

 That, would explain why tor is complaing about a "slow computer" (which,
 in fact, it is, but not that slow :)), when CPU has so much more to offer.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9005#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list