#13880: Respect ulimit -v for GAP memory pool size
--------------------------------+-------------------------------------------
Reporter: vbraun | Owner: jason
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-5.6
Component: misc | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Volker Braun | Merged in:
Dependencies: | Stopgaps:
--------------------------------+-------------------------------------------
Comment (by dimpase):
Replying to [comment:24 vbraun]:
> The problem is that I don't know an easy way to report "available swap".
how about {{{self._parse_proc_meminfo()['available_swap']}}} ?
As it is now, this value can be different from
{{{MemoryInfo().available_swap()}}}, and this is rather confusing.
> It could all be reserved by some other gap session for all we know.
but we also know that this might be a huge overestimate.
> So `Total-Committed_AS` is a good approximation.
at least it should be named differently, not
{{{MemoryInfo().available_swap()}}}, to avoid the clash with
{{{self._parse_proc_meminfo()['available_swap']}}}
Yes it can go negative if the kernel is overcommitting, but one could
argue that it is then to be expected that a negative number is returned.
In any case, it works as I intended it. If you have a better metric for
available swap that doesn't involve going through the VM allocations of
every process then I'd be happy to implement that. But in its present
state it is good enough for starting GAP; if `Committed_AS > Total` then
you probably want the minimial sized pool for GAP.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13880#comment:26>
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.