[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #14177 [Torflow]: bwauth spends some 40 minutes "updating rank history". Every hour.
#14177: bwauth spends some 40 minutes "updating rank history". Every hour.
-------------------------+--------------------
Reporter: ln5 | Owner: aagbsn
Type: defect | Status: new
Priority: major | Milestone:
Component: Torflow | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
-------------------------+--------------------
Comment (by cypherpunks):
I am also seeing significant time spent updating rank history:
grep "Consensus change... Updating rank history" data/scanner.1/bw.log |
grep "Feb 03" | wc -l
113
{{{
import sys
import datetime
tdz = []
f = open(sys.argv[1])
while f:
line = f.readline()
if "Consensus change... Updating rank history" in line:
n = f.readline()
s = [datetime.datetime.strptime(y.split("]")[0][5:],"%a %b
%d %H:%M:%S %Y") for y in [line,n]]
td = s[1]-s[0]
tdz.append(td.total_seconds())
print sum(tdz)/len(tdz)
print "total %s" % sum(tdz)
f.close()
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14177#comment:5>
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