[tor-bugs] #23856 [Core Tor/Tor]: Reduce relay bandwidth stats interval to 24 hours

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Oct 31 12:25:55 UTC 2017


#23856: Reduce relay bandwidth stats interval to 24 hours
-----------------------------------+------------------------------------
 Reporter:  teor                   |          Owner:  (none)
     Type:  defect                 |         Status:  new
 Priority:  High                   |      Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor           |        Version:
 Severity:  Normal                 |     Resolution:
 Keywords:  guard-discovery-stats  |  Actual Points:
Parent ID:                         |         Points:  1
 Reviewer:                         |        Sponsor:  SponsorQ
-----------------------------------+------------------------------------

Comment (by teor):

 The relevant constants in tor are:

 NUM_SECS_BW_SUM_INTERVAL and maybe we will need to increase
 NUM_SECS_BW_SUM_IS_VALID to remember 2-4 days of daily bandwidth, rather
 than just one day:
 https://gitweb.torproject.org/tor.git/tree/src/or/rephist.c#n1242

 And maybe we should also change MAX_BANDWIDTH_CHANGE_FREQ, otherwise
 relays will report bandwidth spikes every 20 minutes in their descriptors.
 But we should be careful here, because this affects the bandwidth
 authority system. But it seems that at least an hour would be reasonable:
 https://gitweb.torproject.org/tor.git/tree/src/or/router.c#n2516

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


More information about the tor-bugs mailing list