#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):
How about the following patch:
{{{
diff --git a/sage/misc/memory_info.py b/sage/misc/memory_info.py
--- a/sage/misc/memory_info.py
+++ b/sage/misc/memory_info.py
@@ -263,7 +263,10 @@
"""
info = self._parse_proc_meminfo()
try:
- return info['total_swap'] - info['Committed_AS']
+ dif = info['total_swap'] - info['Committed_AS']
+ if dif > 0:
+ return dif
+ return info['available_swap']
except KeyError:
return info['available_swap']
}}}
at least this fixes the doctests on the system in question
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13880#comment:20>
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.