[tor-bugs] #23777 [Core Tor/Tor]: tor spends a lot of time in malloc/free

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Oct 23 18:31:33 UTC 2017


#23777: tor spends a lot of time in malloc/free
--------------------------+------------------------------------
 Reporter:  Hello71       |          Owner:  (none)
     Type:  enhancement   |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by Hello71):

 I tried heaptrack, which seems pretty useful, but I found that there are
 no obvious culprits for either number of allocations or peak memory usage.
 it looks like a lot of time is spent in memmove through
 connection_or_process_cells_from_inbuf though, and it seems plausible that
 that mallocs buffers. maybe it's possible to avoid those if the outgoing
 channel is unblocked? might be complicated... I can do another heaptrack
 profile if you want though.

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


More information about the tor-bugs mailing list