#6772: increase default ecl memory limits for maxima+ecl in sage
-------------------------+--------------------------------------------------
 Reporter:  was          |       Owner:  mabshoff  
     Type:  enhancement  |      Status:  new       
 Priority:  major        |   Milestone:  sage-4.1.2
Component:  packages     |    Keywords:            
 Reviewer:               |      Author:            
   Merged:               |  
-------------------------+--------------------------------------------------
 Example:
 {{{
 Here's a simpler example to get this error:

 sage: m = maxima(2*10^6)
 sage: time n=m.factorial()
 Maxima encountered a Lisp error:
 Memory limit reached. Please jump to an outer point or quit program.

 Or, directly in Maxima:

 (%i3) n : factorial(10^7);
 GC Warning: Out of Memory!  Returning NIL!
 Maxima encountered a Lisp error:
  Memory limit reached. Please jump to an outer point or quit program.
 Automatically continuing.
 To reenable the Lisp debugger set *debugger-hook* to nil.
 }}}

 And the response from the main ECL guy:

 {{{
 On Mon, Aug 17, 2009 at 10:57 AM, William Stein<[email protected]> wrote:
 > Note that Sage's Maxima uses ECL.  So the basic question is, how can
 > we increase the memory that Maxima + ECL can use?

 The limits ECL has are by default too small for big applications, but
 it is intentionally done so. However, changing them is pretty easy:
 add a call to ext:set-limit in any file of maxima that forms part of
 the final executable.

 The different memory limits that can be independently controlled are
 listed here
     http://ecls.sourceforge.net/new-manual/re34.html
 So for instance, in your case, which hits the dynamically allocated
 memory limit, you might add the following
     (ext:set-limit 'ext:heap-size (* 1024 1024 1024))
 to maxima/src/ecl-port.lisp in order get 1GB memory limit.

 Juanjo

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6772>
Sage <http://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