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

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs