[tor-bugs] #9403 [arm]: consider using PyPy with 'arm' where appropriate

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Aug 7 15:22:54 UTC 2013


#9403: consider using PyPy with 'arm' where appropriate
-------------------------------+--------------------------------------------
 Reporter:  gmorehouse         |          Owner:  atagar
     Type:  enhancement        |         Status:  new   
 Priority:  normal             |      Milestone:        
Component:  arm                |        Version:        
 Keywords:  arm, python, pypy  |         Parent:        
   Points:                     |   Actualpoints:        
-------------------------------+--------------------------------------------

Comment(by atagar):

 Try running 'arm --debug'. That will dump a debug log to '~/.arm/log'.

 > Also, are there common (eg POSIX) system calls that are wrapped/usable
 in Python that are the equivalent of querying /proc for the information
 you need?

 Not that I'm aware of. PSUtils, a python package that provides this kind
 of information, takes the same approach with regard to proc. Connection
 resolution is actually pretty portable due to the number of fallbacks arm
 uses...

  * Linux: /proc, netstat, sockstat, lsof, ss
  * OSX: lsof
  * FreeBSD: sockstat, procstat

 https://gitweb.torproject.org/arm.git/blob/HEAD:/src/util/connections.py

 > I'd think system calls would be just as fast if not faster, and maybe
 more portable, but I'm unsure what information you're reading.

 I'm not really sure of the alternative you're proposing. If you have a
 better approach then patches welcome.

 Did you have any other questions?

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


More information about the tor-bugs mailing list