Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to free memory in SAGE?
For the last few months, I have continued my tradition of exiting SAGE whenever memory gets eaten up. When I need to solve a particularly large matrix system, I definitely exit and restart.

Well, I had been naively blaming the problem on SAGE, but now that I know a little better, it would appear that the problem is in python. Therefore, the real question is, how do I force python to free memory? There are lots of articles I've found in a Google search that seem to address the issue, so now I just need to find a solution. It may be as simple as a python upgrade, or it may be more complex. I did find mention of a garbage collection scheme, which I'm hoping I can access from the SAGE prompt. (One thing I did notice is that lists supposedly are handled relatively efficiently, and I tend to make use of vectors, so perhaps I need to rethink my strategy?)

For now, I'm sticking with the old standby: restarting often.
~ Jay Daniel Fox

Messages In This Thread
How to free memory in SAGE? - by jaydfox - 09/20/2007, 05:15 PM
RE: How to free memory in SAGE? - by jaydfox - 12/21/2007, 06:06 PM
RE: How to free memory in SAGE? - by andydude - 12/21/2007, 06:38 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Sage Question? rsgerard 1 4,165 05/09/2010, 11:40 AM
Last Post: bo198214
  SAGE code for computing flow matrix for exp(z)-1 jaydfox 4 8,629 08/21/2009, 05:32 PM
Last Post: jaydfox
  SAGE code implementing slog with acceleration jaydfox 4 7,423 10/22/2007, 12:59 AM
Last Post: jaydfox
  Complete SAGE code for tetration eyu100 4 6,407 10/18/2007, 03:55 AM
Last Post: jaydfox
  How to force precision in SAGE? jaydfox 2 5,433 08/18/2007, 11:08 PM
Last Post: jaydfox

Users browsing this thread: 1 Guest(s)