Optimize the functions called in circuit_launch_by_extend_info()
Ref to https://trac.torproject.org/projects/tor/ticket/8902#comment:10
You can see that on a loaded HS, some functions are called quite a lot and they take a lot of CPU.
https://people.torproject.org/~dgoulet/tor-hs-perf-100-circ.png
They should be optimize to bring that CPU usage down.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- David Goulet changed milestone to %Tor: unspecified
changed milestone to %Tor: unspecified
Trac:
Keywords: SponsorR, tor-hs deleted, tor-hs SponsorR performance addedThese functions seem to be a maze of linear operations over the entire set of nodes: yuck. We need to look for better ways. One choice is to memoize results at some level; another is to precompute results at some level; another is to replace linear low-level ops with sublinear ones.
David suggest that optimizing nodelist_add_node_and_family() would suffice here. The expensive part of that is the linear iteration through the entire nodelist. What if we use freebsd's tree.h to build a red-black tree of nodes sorted by address, so that it's easy to get "all the nodes with the same prefix as X"?
Trac:
Cc: N/A to rob.g.jansen@nrl.navy.milTrac:
Parent: N/A to #15463 (moved)Bulk-replace SponsorR keyword with SponsorR sponsor field in Tor component.
Trac:
Keywords: tor-hs SponsorR performance deleted, tor-hs, performance added
Sponsor: N/A to SponsorR- Author
Move those from SponsorR to SponsorR-can.
Trac:
Sponsor: SponsorR to SponsorR-can Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.
Trac:
Milestone: Tor: 0.3.??? to Tor: unspecified
Keywords: N/A deleted, tor-03-unspecified-201612 addedRemove an old triaging keyword.
Trac:
Keywords: tor-03-unspecified-201612 deleted, N/A added- Author
Trac:
Sponsor: SponsorR-can to N/A
Severity: N/A to Normal
Reviewer: N/A to N/A Trac:
Keywords: N/A deleted, optimization, profile addedTrac:
Sponsor: N/A to Sponsor27Trac:
Sponsor: Sponsor27 to Sponsor27-canTrac:
Points: N/A to 3Trac:
Parent: #15463 (moved) to N/ATrac:
Parent: N/A to #30221 (moved)- Author
Closing in favor of the more complete #30291 (moved)
Trac:
Resolution: N/A to duplicate
Status: new to closed - Trac closed
closed
- Trac changed time estimate to 24h
changed time estimate to 24h
- Yawning Angel mentioned in issue #15463 (moved)
mentioned in issue #15463 (moved)
- George Kadianakis mentioned in issue #15516 (moved)
mentioned in issue #15516 (moved)
- David Goulet mentioned in issue #30291 (moved)
mentioned in issue #30291 (moved)
- Trac mentioned in issue #30221 (moved)
mentioned in issue #30221 (moved)
- Trac moved to tpo/core/tor#13739 (closed)
moved to tpo/core/tor#13739 (closed)
- Trac mentioned in issue tpo/core/tor#30291 (closed)
mentioned in issue tpo/core/tor#30291 (closed)