[tor-bugs] #23777 [Core Tor/Tor]: tor spends a lot of time in malloc/free
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Oct 7 02:54:33 UTC 2017
#23777: tor spends a lot of time in malloc/free
--------------------------+------------------------
Reporter: Hello71 | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+------------------------
Comment (by Hello71):
compression pegs the CPU (of course), but consensus updates are pretty
uncommon. malloc and free waste time I believe for every single packet
forwarded, probably mainly because AFAICT there is no fast path that
avoids memory allocation (or epoll waiting) in the case where the outgoing
channel is free.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23777#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list