#9170: cygwin: get_memory_usage isn't implemented, e.g., because there's no top
----------------------+-----------------------------------------------------
   Reporter:  was     |       Owner:  tbd       
       Type:  defect  |      Status:  needs_work
   Priority:  major   |   Milestone:  sage-4.6  
  Component:  cygwin  |    Keywords:            
     Author:          |    Upstream:  N/A       
   Reviewer:          |      Merged:            
Work_issues:          |  
----------------------+-----------------------------------------------------

Comment(by gbe):

 Very true. I should have thought about what the code was doing, not just
 how to fix the breakage. As for top not being POSIX, I wasn't aware of
 that. I had always assumed it was. Since it's not POSIX it seems fine to
 let top() calls fail on Windows if top() is not installed, leaving an
 appropriately worded explanation.

 The only time top is called on linux is via a top() call. To get the
 memory usage under linux, the /proc/<pid>/status is inspected. While they
 don't seem to document how complete it is, cygwin does populate a /proc
 directory. I'll poke around to see if the cygwin /proc system has what is
 needed. As far as I can see this the closest Python has to a memory usage
 call without using external libraries.

 Geoff

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9170#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to