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

Re: [tor-bugs] #14056 [Tor]: IPredator complains that we call time() too much when running over 500Mbps



#14056: IPredator complains that we call time() too much when running over 500Mbps
------------------------+-----------------------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:  Tor: 0.2.5.10
   Resolution:          |   Keywords:  performance tor-relay lorax
Actual Points:          |  Parent ID:
       Points:          |
------------------------+-----------------------------------------

Comment (by mmcc):

 Conveniently, kdump gives the return value of system calls in the
 following form:

 {{{
 17991 tor      CALL  gettimeofday(0x34ee15caca0,0)
 17991 tor      STRU  struct timeval { 1420077862.124873 }
 17991 tor      RET   gettimeofday 0
 }}}

 As you can see, the value in the struct is the Unix timestamp, as you
 would expect.

 The kdump I had included all system calls from the second 1420077863, so I
 grepped and wc -l'ed those. There were 6,974 instances, which implies that
 the Tor process made 6,974 calls to `gettimeofday()` in a second.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14056#comment:10>
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