[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #27135 [Core Tor/sbws]: Write descriptor bandwidths average in raw results



#27135: Write descriptor bandwidths average in raw results
---------------------------+-------------------------------------
 Reporter:  juga           |          Owner:  juga
     Type:  defect         |         Status:  assigned
 Priority:  Medium         |      Milestone:  sbws 1.0 (MVP must)
Component:  Core Tor/sbws  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:  #27108         |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+-------------------------------------

Comment (by juga):

 i'm not sure we should get it every hour, i haven't find yet how
 frequently torflow does.
 Teor, do you know it?, i found when it reads it
 https://gitweb.torproject.org/pytorctl.git/tree/SQLSupport.py#n421, but
 not when it stores it.

 If we need to obtain the descriptor bws more frequently that once/day, i
 do would store them in the results files, as a list for relay, to keep the
 same logic we're doing with the rest of values and to avoid to have to
 read/write yet another file with its locks and so.
 Would not be possible to just obtained from somewhere as
 https://github.com/pastly/simple-bw-
 scanner/blob/master/sbws/core/scanner.py#L248?.

 Actually, i don't know right now why relay doesn't have the updated
 descriptor there. Because we called both `Relay` in resultdump and
 relaylist, i'm not sure where https://github.com/pastly/simple-bw-
 scanner/blob/master/sbws/lib/relaylist.py#L206 is being called.

 Maybe it's enough to store once per file, but for some reason i haven't
 figure yet, all days have the same descriptor bw.

 As an example, this are the descriptor bws from 4 files from 2 relays:
 relay 1: [9216000, 9216000, 9216000]
 relay 2: [1073741824, 1073741824, 1073741824]

 Since you know better this part of the code, would you feel like to check
 why is that?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27135#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs