#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.7
Component: cygwin | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------+-----------------------------------------------------
Comment(by drkirkby):
Replying to [comment:5 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
I don't know, but I thought the plan was to make an installer for Cygwin
which installed the perquisites, which would include top. So it should not
really fail.
As much as I don't like the idea of using 'top', I think in the short term
it is a OK. There are more significant issues causing problems on Cygwin.
I would have thought this one of the lower priority ones, but that's just
my opinion.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9170#comment:6>
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.